update plugins

This commit is contained in:
Neucrack
2018-05-10 15:21:20 +08:00
parent 56f1d0e08d
commit 15d81b0ca4
2 changed files with 74 additions and 40 deletions

3
.gitignore vendored
View File

@@ -0,0 +1,3 @@
.build
node_modules
_book

111
book.json
View File

@@ -1,41 +1,72 @@
{
"title":"GPRS C SDK DOC",
"description": "GPRS C SDK 文档",
"author":"Ai-Thinker",
"language": "zh-hans",
"root":".",
"plugins": [
"github",
"splitter",
"github-buttons",
"ad",
"-search",
"search-pro",
"simple-page-toc"
],
"pluginsConfig": {
"github": {
"url": "https://github.com/Ai-Thinker-Open/GPRS_C_SDK_DOC"
},
"github-buttons": {
"buttons": [{
"user": "Ai-Thinker-Open",
"repo": "GPRS_C_SDK",
"type": "star",
"size": "large"
}]
},
"ad": {
"contentTop": "<div><style>.lang{background: #222 url(overlay.png) repeat-x; display: inline-block; padding: 5px 10px 6px;color: #fff; text-decoration: none;-moz-border-radius: 6px; -webkit-border-radius: 6px;-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.6);-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.6);text-shadow: 0 -1px 1px rgba(0,0,0,0.25);border-bottom: 1px solid rgba(0,0,0,0.25);position: relative;cursor: pointer;background-color: #bdbdbd;font-size: 14px;padding: 8px 14px 9px; } .lang:hover{background-color: #9c9c9c; }</style> <a class='lang'>English</a></div>",
"contentBottom": ""
},
"search-pro": {
"cutWordLib": "nodejieba",
"defineWord" : ["Gitbook Use"]
},
"simple-page-toc": {
"maxDepth": 3,
"skipFirstH1": true
}
}
{
"title":"GPRS C SDK DOC",
"description": "GPRS C SDK 文档",
"author":"Ai-Thinker",
"language": "zh-hans",
"root":".",
"plugins": [
"github",
"splitter",
"fontsettings",
"-search",
"search-pro",
"edit-link",
"page-toc-button",
"sharing",
"my-toolbar"
],
"pluginsConfig": {
"github": {
"url": "https://github.com/Ai-Thinker-Open/GPRS_C_SDK_DOC"
},
"search-pro": {
"cutWordLib": "nodejieba",
"defineWord" : ["Gitbook Use"]
},
"simple-page-toc": {
"maxDepth": 4,
"skipFirstH1": false
},
"edit-link": {
"base": "https://github.com/Ai-Thinker-Open/GPRS_C_SDK_DOC/blob/master",
"label": ""
},
"page-toc-button": {
"maxTocDepth": 2,
"minTocSize": 2
},
"sharing": {
"weibo": true,
"facebook": true,
"twitter": true,
"google": false,
"instapaper": false,
"vk": false,
"all": [
"weibo",
"facebook",
"twitter",
"google",
"instapaper",
"vk"
]
},
"my-toolbar": {
"buttons": [
{
"label": "English",
"text":"English",
"icon": "fa fa-language",
"position": "left",
"target": "_self",
"url": "https://ai-thinker-open.github.io/GPRS_C_SDK_DOC/en"
}
]
},
"fontsettings": {
"theme": "white",
"family": "sans",
"size": 2
}
}
}