Readers search your docs from a dialog that opens over the page. Results from the product they are reading come first, and a match in a heading takes them straight to that part of the article.
Open the search
- Click the search field in the sidebar or on the docs home.
- Press ⌘K on a Mac, or Ctrl+K on Windows and Linux.
- Press
/when the cursor is not in a text field.
Use the keyboard in the dialog
| Key | Does |
|---|---|
| ↑ and ↓ | Move between results |
| Enter | Open the selected result |
| Esc | Close the dialog |
| ⌘K or Ctrl+K | Close the dialog |
Tab stays inside the dialog while it is open.
Results
- Results show while you type.
- On a product page, the first group is In and the product name. Matches from other products follow, grouped by product.
- Each group shows up to five articles.
- When the words match a heading, the result shows the article title and the heading, and opens the article at that heading.
Search covers the title and text of published articles. Private articles show only to readers who can read them. Password protected articles show only to people who can edit them.
When nothing matches
The dialog says that no articles match, and lists the collections of the current product, or the products on the docs home, so the reader can browse instead.
Change the search
Go to Docs > Settings > Single Document and select an option in Display Search:
- Enable uses the DocsPress search described here. This is the default.
- DocSearch by Algolia uses your own Algolia DocSearch index.
- Disable hides search.
Leave a Reply