gitbook-plugin-theme-cqbook
v0.0.2
Published
A Gitbook theme
Downloads
1
Readme
DIY A Gitbook theme for cqhook
使用方法
安装您的插件使用:
$ gitbook install
OR
$ npm i -D gitbook-plugin-theme-cqhook
将主题添加到您的图书配置 book.json
或者 book.js
中:
{
plugins: ['theme-cqbook'],
}
配置
整体配置
{
plugins: ['theme-cqbook'],
variables: {
themeHqbook: {
nav: [
{
url: 'https://www.baidu.com',
target: '_blank',
name: '百度一下',
},
// { ... }
],
},
},
pluginsConfig: {
'theme-hqbook': {
favicon: './favicon.ico',
logo: './logo.png',
'search-placeholder': '输入关键字搜索',
copyButtons: true,
copyLines: true,
dragSplitter: true,
'hide-elements': ['.summary .gitbook-link'],
'flexible-linkcard': {
title: 'flexible-linkcard',
hrefUrl: 'xxx',
target: '_blank',
imgSrc: './book/logo.png',
imgClass: 'rect',
},
},
},
}