创建gitbook

  1. 作者QQ:67065435 QQ群:821635552

  2. 本站内容全部为作者原创,转载请注明出处!

  3. 安装node

  4. 安装gitbook

    通过npm安装gitbook命令行
    npm install gitbook-cli -g
    
  5. 创建文件夹gitbook并打开

    gitbook init
    gitbook install
    
  6. 修改SUMMARY.md

    # Summary
    * [链接按钮](文件路径)
    * [sql](sqlnotebook.md)
    
  7. 搭建并运行

    gitbook build
    gitbook serve
    
  8. 配置示例

    {
      "title": "学习笔记",
      "author": "豆包嘿嘿~",
      "description": "学习笔记,好记性不如烂笔头,研发与运维。",
      "direction": "ltr",
      "language": "zh-CN",
      "structure": {
        "readme": "readme.md",
        "summary": "summary.md"
      },
      "theme-default": {
        "showLevel": true
      },
      "plugins": [
        "-lunr",
        "-search",
        "custom-js-css",
        "fontsettings",
        "highlight",
        "local-pagefooter",
        "search-pro",
        "sharing",
        "sitemap",
        "splitter",
        "toggle-chapters"
      ],
      "pluginsConfig": {
        "custom-js-css": {
          "js": [
            "main.js"
          ],
          "css": [
            "main.css"
          ]
        },
        "fontsettings": {
          "size": 2,
          "theme": "night",
          "family": "sans"
        },
        "local-pagefooter": {
          "islocal": true,
          "modify_label": "修订:",
          "modify_format": "YYYY-MM-DD HH:mm:ss",
          "copyright": "豆包嘿嘿~ 2012-∞ <a href='http://www.beian.miit.gov.cn/'>冀ICP备17033181号</a>"
        },
        "sharing": {
          "vk": false,
          "google": false,
          "twitter": false,
          "facebook": false,
          "instapaper": false,
          "all": [
            "vk",
            "google",
            "twitter",
            "facebook",
            "instapaper"
          ]
        },
        "sitemap": {
          "hostname": "https://note.so1234.top/"
        }
      }
    }
    
Copyright © 豆包嘿嘿~ 2012-∞ 冀ICP备17033181号 all right reserved,powered by Gitbook修订: 2020-08-19 14:05:41

results matching ""

    No results matching ""