zoukankan      html  css  js  c++  java
  • gitbook的插件配置

    原生的gitbook样式比较单一,美观度和功能欠佳,可通过相关插件进行拓展。

    插件地址:https://plugins.gitbook.com/

    主目录下新建book.json:

    {
    "author": "yonguo",
    "description": "...",
    "extension": null,
    "generator": "site",
    "title": "CSM GitBook",
    "variables": {},
    "links": {
    "sharing": {
    "all": null,
    "facebook": null,
    "google": null,
    "twitter": null,
    "weibo": null
    },
    "sidebar": {
    "Go to CSM": "https:baidu.com/"
    }
    },
    "output": null,
    "pdf": {
    "fontSize": 12,
    "footerTemplate": null,
    "headerTemplate": null,
    "margin": {
    "bottom": 36,
    "left": 62,
    "right": 62,
    "top": 36
    },
    "pageNumbers": false,
    "paperSize": "a4"
    },
    "plugins": [
    "-livereload",
    "theme-comscore",
    "-lunr", "-search","search-plus@^0.0.11",
    "simple-page-toc@^0.1.1",
    "prism@^2.1.0",
    "prism-themes@^0.0.2",
    "advanced-emoji@^0.2.1",
    "anchors@^0.7.1",
    "include-codeblock@^3.0.2",
    "ace@^0.3.2",
    "emphasize@^1.1.0",
    "katex@^1.1.3",
    "splitter@^0.0.8",
    "mermaid-gb3@2.1.0",
    "tbfed-pagefooter@^0.0.1",
    "expandable-chapters-small@^0.1.7",
    "donate@^1.0.2",
    "favicon@^0.0.2",
    "todo@^0.1.3",
    "terminal@^0.3.2",
    "alerts@^0.2.0",
    "include-csv@^0.1.0",
    "markdown-video",
    "anchor-navigation-ex",
    "embed-pdf",
    "chart@^0.2.0"
    ],
    "pluginsConfig": {
    "theme-default": {
    "showLevel": true
    },
    "prism": {
    "css": [
    "prism-themes/themes/prism-base16-ateliersulphurpool.light.css"
    ]
    },
    "include-codeblock": {
    "template": "ace",
    "unindent": true,
    "edit": true
    },
    "tbfed-pagefooter": {
    "copyright": "Copyright © 项目组 2018",
    "modify_label": "该文件修订时间:",
    "modify_format": "YYYY-MM-DD HH:mm:ss"
    },
    "donate": {
    "wechat": "./pics/pay.jpg",
    "title": "",
    "button": "赏",
    "wechatText": "微信打赏"
    },
    "simple-page-toc": {
    "maxDepth": 3,
    "skipFirstH1": true
    },
    "sectionx": {
    "tag": "b"
    },
    "favicon": {
    "shortcut": "favicon.ico",
    "bookmark": "favicon.ico"
    },
    "terminal": {
    "copyButtons": true,
    "fade": false,
    "style": "flat"
    }
    }
    }
  • 相关阅读:
    Linux如何同步时间/更新时间
    Linux关机/重启/及注销命令
    Linux如何查看别名和取消别名
    Linux查看历史记录
    Linux命令行快捷键有哪些
    win10产品密钥 win10永久激活密钥(可激活win10所有版本 )
    Xshell如何连接
    Xshell6 优化
    逻辑运算符
    可变类型与不可变类型
  • 原文地址:https://www.cnblogs.com/yonguo123/p/9524024.html
Copyright © 2011-2022 走看看