book.json的配置说明
变量 | 描述 |
---|---|
root | 包含所有图书文件的根文件夹的路径,除了 book.json |
structure | 指定自述文件,摘要,词汇表等的路径 |
title | 您的书名,默认值是从 README 中提取出来的。在 GitBook.com 上,这个字段是预填的。 |
description | 您的书籍的描述,默认值是从 README 中提取出来的。在 GitBook.com 上,这个字段是预填的。 |
author | 作者名。在GitBook.com上,这个字段是预填的。 |
isbn | 国际标准书号 ISBN |
language | 本书的语言类型 —— ISO code 。默认值是 en |
direction | 文本阅读顺序。可以是 rtl (从右向左)或 ltr (从左向右),默认值依赖于 language 的值。 |
gitbook | 应该使用的GitBook版本,并接受类似于 >=3.0.0 的条件。 |
links | 在左侧导航栏添加链接信息 |
plugins | 要加载的插件列表(官网插件列表) |
pluginsConfig | 插件的配置 |
{
"gitbook": "2.3.2",
"plugins": ["favicon", "yahei", "github", "autotheme", "-lunr", "-search",
"search-plus", "prism", "-highlight", "github-buttons", "splitter",
"-sharing", "sharing-plus", "tbfed-pagefooter", "expandable-chapters-small",
"book-summary-scroll-position-saver", "ga", "baidu", "donate",
"anchors", "anchor-navigation-ex", "sitemap-general",
"copy-code-button", "mygitalk", "multipart"
],
"pluginsConfig": {
"theme-default": {
"showLevel": true
},
"fontSettings": {
"family": "serif",
"size": 2
},
"github": {
"url": "https://github.com/3293172751"
},
"autotheme": {
"white": [9, 10, 11, 12, 13, 14, 15, 16, 17],
"sepia": [6, 7, 8, 18, 19],
"night": [20, 21, 22, 23, 0, 1, 2, 3, 4, 5]
},
"prism": {
"css": [
"prismjs/themes/prism-tomorrow.css"
]
},
"github-buttons": {
"buttons": [{
"user": "JoeyBling",
"repo": "myBook",
"type": "star",
"size": "small",
"count": true
}]
},
"sharing": {
"douban": false,
"facebook": false,
"google": true,
"hatenaBookmark": false,
"instapaper": false,
"line": true,
"linkedin": true,
"messenger": false,
"pocket": false,
"qq": false,
"qzone": true,
"stumbleupon": false,
"twitter": false,
"viber": false,
"vk": false,
"weibo": true,
"whatsapp": false,
"all": [
"facebook", "google", "twitter",
"weibo", "instapaper", "linkedin",
"pocket", "stumbleupon"
]
},
"tbfed-pagefooter": {
"copyright": "Copyright © <a href='https://zhousiwei.gitee.io' target='_blank'>試毅-思伟</a> 2019",
"modify_label": "修订时间:",
"modify_format": "2022-06-09"
},
"ga": {
"token": "UA-142790104-1"
},
"baidu": {
"token": "f1f256f18b7899e11647d6ec1f3ded2f"
},
"donate": {
"wechat": "/assets/weixin.png",
"alipay": "/assets/alipay.jpeg",
"title": "",
"button": "赏",
"alipayText": "支付宝打赏",
"wechatText": "微信打赏"
},
"anchor-navigation-ex": {
"showLevel": true,
"associatedWithSummary": false,
"printLog": false,
"multipleH1": true,
"mode": "float",
"showGoTop": true,
"float": {
"floatIcon": "fa fa-navicon",
"showLevelIcon": false,
"level1Icon": "fa fa-hand-o-right",
"level2Icon": "fa fa-hand-o-right",
"level3Icon": "fa fa-hand-o-right"
},
"pageTop": {
"showLevelIcon": false,
"level1Icon": "fa fa-hand-o-right",
"level2Icon": "fa fa-hand-o-right",
"level3Icon": "fa fa-hand-o-right"
}
},
"sitemap-general": {
"prefix": "https://zhousiwei.gitee.io/myBook/"
},
"favicon": {
"shortcut": "/assets/images/favicon.ico",
"bookmark": "/assets/images/favicon.ico",
"appleTouch": "/assets/images/apple-touch-icon.png",
"appleTouchMore": {
"120x120": "/assets/images/apple-touch-icon-120x120.png",
"180x180": "/assets/images/apple-touch-icon-180x180.png"
}
},
"mygitalk": {
"clientID": "608e351b48e4d0a3a528",
"clientSecret": "***加密***",
"repo": "myBook",
"owner": "JoeyBling",
"admin": ["JoeyBling"],
"distractionFreeMode": false
}
},
"pdf": {
"pageNumbers": true,
"fontFamily": "Arial",
"fontSize": 12,
"paperSize": "a4",
"margin": {
"right": 62,
"left": 62,
"top": 56,
"bottom": 56
}
},
"title": "我的gitbook学习",
"description": "学习使用git book",
"author": "xiongxinwei",
"language": "zh-hans",
"root": ".",
"structure": {
"readme": "introduction.md"
},
"links": {
"sidebar": {
"GitHub": "https://github.com/3293172751",
"个人博客": "http://nsddd.top"
}
}
}