gitBook的安裝和使用

HSHSHnode

一,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

內容hgit

ssnpm

圖二

圖二

圖一

百度json

相關文章
相關標籤/搜索