书籍配置文件(book.json)

使用不同的gitbook版本

如果我们需要使用不同的版本,需要自己安装,或者通过 book.json 配置 gitbook 版本。比如:

{
    "gitbook": "~2.x.x"
}

这样在含有 book.json 的目录下运行 gitbook 相关命令,就是基于指定的版本了。

本书的book.json文件

{ "title": "GitBook 使用教程", "description": "记录 GitBook 的配置和一些插件的使用", "author": "wiliam", "output.name": "site", "language": "zh-hans", "gitbook": "3.2.2", "root": ".", "structure": { "readme": "introduction.md" }, "links": { "sidebar": { "我的主页": "http://wiliam.top" } }, "plugins": [ "-lunr", "-search", "-highlight", "-livereload", "search-plus@^0.0.11", "simple-page-toc@^0.1.1", "github@^2.0.0", "github-buttons@2.1.0", "edit-link@^2.0.2", "disqus@^0.1.0", "prism@^2.1.0", "prism-themes@^0.0.2", "advanced-emoji@^0.2.1", "anchors@^0.7.1", "include-codeblock@^3.0.2", "ace@^0.3.2", "emphasize@^1.1.0", "katex@^1.1.3", "splitter@^0.0.8", "tbfed-pagefooter@^0.0.1", "expandable-chapters-small@^0.1.7", "sectionx@^3.1.0", "local-video@^1.0.1", "anchor-navigation-ex@0.1.8", "favicon@^0.0.2", "todo@^0.1.3" ], "pluginsConfig": { "theme-default": { "showLevel": true }, "disqus": { "shortName": "gitbookuse" }, "prism": { "css": [ "prism-themes/themes/prism-base16-ateliersulphurpool.light.css" ] }, "github": { "url": "https://github.com/wiliam2015/gitbook-use" }, "github-buttons": { "repo": "wiliam2015/gitbook-use", "types": [ "star" ], "size": "small" }, "include-codeblock": { "template": "ace", "unindent": true, "edit": true }, "sharing": { "weibo": true, "facebook": false, "twitter": false, "google": false, "instapaper": false, "vk": false, "all": [ "weibo" ] }, "tbfed-pagefooter": { "copyright": "Copyright © wiliam.me 2017", "modify_label": "该文件修订时间:", "modify_format": "YYYY-MM-DD HH:mm:ss" }, "simple-page-toc": { "maxDepth": 3, "skipFirstH1": true }, "edit-link": { "base": "https://github.com/wiliam2015/gitbook-use/edit/master", "label": "编辑本页" }, "anchor-navigation-ex": { "isRewritePageTitle": false, "tocLevel1Icon": "fa fa-hand-o-right", "tocLevel2Icon": "fa fa-hand-o-right", "tocLevel3Icon": "fa fa-hand-o-right" }, "sectionx": { "tag": "b" }, "favicon": { "shortcut": "favicon.ico", "bookmark": "favicon.ico" } } }
Copyright © wiliam.me 2017 all right reserved,powered by Gitbook该文件修订时间: 2017-08-31 14:47:11

results matching ""

    No results matching ""