gitBook的安装和使用

目录

  • 一,gitbook安装
    • 1.安装
    • 2.gitbook的使用
    • 3.gitbook插件
    • 4. book.json
    • hhhhh

HSHSH

一,gitbook安装

1.安装

  • 安装node.js
  • npm install -g gitbook-cli

2.gitbook的使用

    * gitbook init  生成文件
    * gitbook build    生成静态文件
    * gitbook serve     开启服务,并执行了  bitbook build

3.gitbook插件

  • book.json

4. book.json

{
    "title": "前端开发",
    "author": "Eddie",
    "description": "Python全栈-前端开发",
    
    "plugins": [
        "splitter",
        "expandable-chapters-small",
        "-sharing",
        "donate",
        "anchor-navigation-ex",
        "sidebar-style"
    ],
    "pluginsConfig": {
        "theme-default": {
        },
        "donate": {
            "wechat": "http://unclealan.cn/usr/themes/seventeen/dist/images/weixin.JPG",
            "alipay": "http://unclealan.cn/usr/themes/seventeen/dist/images/alipay.JPG",
            "button": "打赏",
            "alipayText": "支付宝打赏",
            "wechatText": "微信打赏"
        },
        "anchor-navigation-ex": {
            "tocLevel1Icon": "fa fa-hand-o-right",
            "tocLevel2Icon": "fa fa-hand-o-right",
            "tocLevel3Icon": "fa fa-hand-o-right",
            "multipleH1": false,
            "multipleH2": false,
            "multipleH3": false,
            "multipleH4": false,
            "showLevelIcon": false,
            "showLevel": false
        },
        "disqus": {
            "shortName": "gitbookuse"
        }
    }
}

hhhhh

内容h

ss

gitBook的安装和使用_第1张图片

gitBook的安装和使用_第2张图片

百度

转载于:https://www.cnblogs.com/clove7/p/11353008.html

你可能感兴趣的:(gitBook的安装和使用)