0.0.2 • Published 3 years ago

gitbook-plugin-theme-cqbook v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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',
      },
    },
  },
}