Skip to content

Commit d454b1c

Browse files
committed
docs(cn): add tip for built-in search (#262)
1 parent a6fe10e commit d454b1c

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

docs/guide/deploy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ You can also run the above script in your CI setup to enable automatic deploymen
6868

6969
3. Create a file called `.gitlab-ci.yml` in the root of your project with the content below. This will build and deploy your site whenever you make changes to your content.
7070

71-
```yaml
71+
``` yaml
7272
image: node:9.11.1
7373

7474
pages:

docs/zh/default-theme-config/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ module.exports = {
255255
}
256256
```
257257

258+
::: tip
259+
内置搜索只会为页面的标题、`h2``h3` 构建搜索索引,如果你需要全文搜索,你可以使用 [Algolia 搜索](#Algolia-搜索)
260+
:::
261+
258262
### Algolia 搜索
259263

260264
你可以通过 `themeConfig.algolia` 选项来用 [Algolia DocSearch](https://community.algolia.com/docsearch/) 替换内置的搜索框。要启用 Algolia 搜索,你需要至少提供 `apiKey``indexName`

docs/zh/guide/deploy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ cd -
6767
2.`.vuepress/config.js` 中将 `dest` 设置为 `public`
6868
3. 在你项目的根目录下创建一个名为 `.gitlab-ci.yml` 的文件,无论何时你提交了更改,它都会帮助你自动构建和部署:
6969

70-
```yaml
70+
``` yaml
7171
image: node:9.11.1
7272

7373
pages:

docs/zh/guide/using-vue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ yarn add -D sass-loader node-sass
137137

138138
然后你就可以在 Markdown 或是组件中使用如下代码:
139139

140-
```vue
140+
``` vue
141141
<style lang="sass">
142142
.title
143143
font-size: 20px

0 commit comments

Comments
 (0)