最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【记录】gitbook安装支持中文和多国语言的搜索插件

gitbook crifan 5374浏览 0评论

折腾:

【记录】给Gitbook添加更多配置和功能

期间,去安装,支持中文,以及更多的其他语言的搜索插件。

看到了两个:

search-plus | GitBook Plugins

-》

lwdgit/gitbook-plugin-search-plus: gitbook powerful search plugin

12 star

search-pro | GitBook Plugins

感觉是search-plus貌似更好。

所以去试试:

“plugins”: [

  “-lunr”,

  “-search”,

  “search-plus”

],

安装:

➜  htttp_summary git:(master) gitbook install

info: installing 1 plugins using [email protected]

info:

info: installing plugin “search-plus”

info: install plugin “search-plus” (*) from NPM with version 1.0.3

/Users/crifan/GitBook/Library/Import/htttp_summary

├── [email protected]

├── [email protected]

└─┬ [email protected]

  └── [email protected]

info: >> plugin “search-plus” installed with success

效果:

【总结】

有两个插件,用:

search-plus | GitBook Plugins

即可。

配置:

<code>"plugins": [
  "-lunr",
  "-search",
  "search-plus"
],
</code>

安装:

<code>gitbook install
</code>

即可使用。

转载请注明:在路上 » 【记录】gitbook安装支持中文和多国语言的搜索插件

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.165 seconds, using 22.11MB memory