Skip to content

Commit

Permalink
docs: document the search.indexPreload parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed May 6, 2023
1 parent ece5f95 commit ae5fabb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions exampleSite/content/docs/layouts/search/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ title = "Search"
| `search` | Object | - | Search configuration.
| `search.paginate` | Integer | `10` | Pagination.
| `search.indexPaginate` | Integer | `1000` | Index file pagination.
| `search.indexPreload` | Boolean | `true` | Whether to preload the search indices.
| `search.maxResults` | Number | `100` | The max number of search results.
| `search.resultContentCharactersCount` | Integer | `240` | The maximum characters count of result content for displaying.
| `search.shortcut` | Array | `["/"]` | The search shortcut, i.e. `["Control", "/"]`, disable it by a empty array `[]`.
Expand Down
1 change: 1 addition & 0 deletions exampleSite/content/docs/layouts/search/index.zh-hans.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ title = "Search"
| `search` | Object | - | 搜索配置。
| `search.paginate` | Integer | `10` | 分页。
| `search.indexPaginate` | Integer | `1000` | Index file pagination.
| `search.indexPreload` | Boolean | `true` | 是否预加载搜索索引。
| `search.maxResults` | Number | `100` | 至多返回的搜索结果数目。
| `search.shortcut` | Array | `["/"]` | 搜索快捷键,比如 `["Control", "/"]`,空数组 `[]` 则禁用。
| `search.resultContentCharactersCount` | Integer | `240` | 搜索结果内容最大字符数。
Expand Down
1 change: 1 addition & 0 deletions exampleSite/content/docs/layouts/search/index.zh-hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ title = "Search"
| `search` | Object | - | 搜尋配置。
| `search.paginate` | Integer | `10` | 分頁。
| `search.indexPaginate` | Integer | `1000` | Index file pagination.
| `search.indexPreload` | Boolean | `true` | 是否預加載搜索索引。
| `search.maxResults` | Number | `100` | 至多返回的搜索結果數目。
| `search.shortcut` | Array | `["/"]` | 搜索快捷鍵,比如 `["Control", "/"]`,空數組 `[]` 則禁用。
| `search.resultContentCharactersCount` | Integer | `240` | 搜尋結果內容最大字符數。
Expand Down

0 comments on commit ae5fabb

Please sign in to comment.