Add the theme to your book's configuration book.json
or book.js
:
{
"plugins": [
"theme-cap"
],
"variables": {
"themeCAP":{
"nav":[
{
"url":"http://...",
"target":"_blank",
"name": "简易教程"
}
]
},
},
"pluginsConfig": {
"theme-cap":{
"search-placeholder":"Search in the docs",
"logo":"./logo.png", //logo
"favicon": "./favicon.ico" //ico
}
}
},
Install by command:
gitbook install
plugins: [
'-sharing',
"-fontsettings",
'back-to-top-button',
"copy-code-button",
"cuav-chapters",
"heading-anchors",
"theme-cap"
//...
]
Enjoy!