From d206d448c9c19e5e707aad447073066e6e948fbe Mon Sep 17 00:00:00 2001 From: ULIVZ <472590061@qq.com> Date: Tue, 19 Feb 2019 23:55:56 +0800 Subject: [PATCH] docs($cn): docs: disable Search per Page (#1293) --- packages/docs/docs/zh/theme/default-theme-config.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/docs/docs/zh/theme/default-theme-config.md b/packages/docs/docs/zh/theme/default-theme-config.md index 6c9953cf64..67638c4dd4 100644 --- a/packages/docs/docs/zh/theme/default-theme-config.md +++ b/packages/docs/docs/zh/theme/default-theme-config.md @@ -314,6 +314,14 @@ module.exports = { } ``` +你可以通过 `YAML front matter` 来对单独的页面禁用内置的搜索框: + +```yaml +--- +search: false +--- +``` + ::: tip 内置搜索只会为页面的标题、`h2` 和 `h3` 构建搜索索引,如果你需要全文搜索,你可以使用 [Algolia 搜索](#Algolia-搜索)。 :::