gitbook-plugin-theme-cqbook

0.0.2 • Public • Published

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

/gitbook-plugin-theme-cqbook/

    Package Sidebar

    Install

    npm i gitbook-plugin-theme-cqbook

    Weekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    36.5 kB

    Total Files

    11

    Last publish

    Collaborators

    • 0xfourdim