app.templates.helpPage = -> ctrlKey = if $.isMac() then 'cmd' else 'ctrl' navKey = if $.isMac() then 'cmd' else 'alt' aliases_one = {} aliases_two = {} keys = Object.keys(app.models.Entry.ALIASES) middle = Math.ceil(keys.length / 2) - 1 for key, i in keys (if i > middle then aliases_two else aliases_one)[key] = app.models.Entry.ALIASES[key] _ app.templates.helpPage, { aliases_one: ("#{key}#{value}" for key, value of aliases_one).join(''), aliases_two: ("#{key}#{value}" for key, value of aliases_two).join(''), ctrlKey, navKey } app.templates.helpPage.en = """

User Guide

Managing Documentations

Documentations can be enabled and disabled in the Preferences. Alternatively, you can enable a documentation by searching for it in the main search and clicking the "Enable" link in the results. For faster and better search, only enable the documentations you plan on actively using.

Once a documentation is enabled, it becomes part of the search and its content can be downloaded for offline access — and faster page loads when online — in the Offline area.

The search is case-insensitive and ignores whitespace. It supports fuzzy matching (e.g. bgcp matches background-clip) as well as aliases (full list below).

The search can be scoped to a single documentation by typing its name (or an abbreviation) and pressing tab (space on mobile). For example, to search the JavaScript documentation, enter javascript or js, then tab.
To clear the current scope, empty the search field and hit backspace or esc.
The search can be prefilled from the URL by visiting devdocs.io/#q=keyword. Characters after #q= will be used as search query.
To search a single documentation, add its name (or an abbreviation) and a space before the keyword: devdocs.io/#q=js date.
DevDocs supports OpenSearch. It can easily be installed as a search engine on most web browsers:

Note: the above search features only work for documentations that are enabled.

Keyboard Shortcuts

Sidebar

Move selection
Show/hide sub-list
enter
Open selection
{ctrlKey} + enter
Open selection in a new tab
alt + r
Reveal current page in sidebar

Browsing

{navKey} + ← {navKey} + →
Go back/forward
alt + ↓ alt + ↑
shift + ↓ shift + ↑
Scroll step by step

space shift + space
Scroll screen by screen
{ctrlKey} + ↑ {ctrlKey} + ↓
Scroll to the top/bottom
alt + f
Focus first link in the content area
(press tab to focus the other links)

App

ctrl + ,
Open preferences
esc
Clear search field / reset UI
?
Show this page

Miscellaneous

alt + o
Open original page
alt + g
Search on Google
alt + s
Search on Stack Overflow

Tip: If the cursor is no longer in the search field, press / or continue to type and it will refocus the search field and start showing new results.

Search Aliases

Word Alias {aliases_one}
Word Alias {aliases_two}

Feel free to suggest new aliases on GitHub. """ app.templates.helpPage.ja = """

ユーザーガイド

ドキュメント管理

ドキュメントは設定で有効・無効にできます。 もしくは、検索結果の「有効」リンクをクリックすることでもドキュメントを有効にできます。 速く、よい検索には、ドキュメントを有効だけ 行う使い方で計画。 For faster and better search, only enable the documentations you plan on actively using.

一度ドキュメントを有効にしたら、検索の一部になります。また、内容はオフラインアクセスのためにダウンロードできるようになります。-オンラインの時ページを速く読み込めます-オフラインで。 Once a documentation is enabled, it becomes part of the search and its content can be downloaded for offline access — and faster page loads when online — in the Offline area.

検索は空白を無視します。曖昧なサポートします。 The search is case-insensitive and ignores whitespace. It supports fuzzy matching (e.g. bgcp matches background-clip) as well as aliases (full list below).

名前(または略語)を入力することによって、一つのドキュメント内を検索できます。 The search can be scoped to a single documentation by typing its name (or an abbreviation) また、タブ (モバイルではスペース )を押します。 and pressing tab (space on mobile). 例えば、JavaScriptのドキュメントを検索するには、javascriptjsと入れるよりも、タブ
For example, to search the JavaScript documentation, enter javascript or js, then tab.
正確な範囲で、空のサーチ部分にバックスペースまたは、 esc。 To clear the current scope, empty the search field and hit backspace or esc.
The search can be prefilled from the URL by visiting devdocs.io/#q=keyword. #q=以降はサーチクエリが使用されています。 一つのドキュメント内の検索で、名前(または、略語)を追加したり、キーワードの前にスペースを入れます: devdocs.io/#q=js date.
DevDocsはオープンサーチをサポートしています。webブラウザのサーチエンジンのように、簡単にインストールできます。

ノート:サーチは有効なドキュメントでのみ動作します。 Note: the above search features only work for documentations that are enabled.

キーボードショートカット

サイドバー

セレクションの移動
サブリストの表示/非表示
enter
セレクションを開く
{ctrlKey} + enter
セレクションを新しいタブで開く
alt + r
Reveal current page in sidebar

ブラウジング

{navKey} + ← {navKey} + →
戻る/進む
alt + ↓ alt + ↑
shift + ↓ shift + ↑
順にスクロールする

space shift + space
Scroll screen by screen
{ctrlKey} + ↑ {ctrlKey} + ↓
上部/下部にスクロールする
alt + f
内容内の最初のリンクにフォーカスする
(press tab to focus the other links)

アプリ

ctrl + ,
設定を開く
esc
サーチフィールドをクリア/UIリセット
?
このページを見る

その他

alt + o
オリジナルページを開く
alt + g
Googleで検索する
alt + s
Stack Overflowで検索する

Tip:サーチフィールドでカーソルが たら、/を押すか、 タイプを続けてサーチフィールドにリフォーカスすると新しい検索結果が表示されます。 Tip: If the cursor is no longer in the search field, press / or continue to type and it will refocus the search field and start showing new results.

Search Aliases

Word Alias {aliases_one}
Word Alias {aliases_two}

新しいエイリアスはGitHubで自由に提案できます。

Feel free to suggest new aliases on GitHub. """