创建gitbook

  1. Linux下安装

     cd /root
     wget https://npm.taobao.org/mirrors/node/v8.9.1/node-v8.9.1-linux-x64.tar.gz
     tar -zxvf node-v8.9.1-linux-x64.tar.gz
     mv node-v8.9.1-linux-x64 /usr/local/node
     vim /etc/profile
    
     export PATH=$PATH:/usr/local/node/bin
    
     ESC
     :wq
    
  2. windows下安装

     下载地址:
     https://nodejs.org/dist/v8.9.1/node-v8.9.1-x64.msi
     安装即可.
    
  3. 安装测试,及扩展安装

     查看nodejs版本
     node -v
    
     全局安装npm,修改安装源为taobao
     npm config set registry https://registry.npm.taobao.org -g
     npm config get registry
    
     通过node安装gitbook命令行
     npm install gitbook-cli -g
    
  4. 创建文件夹gitbook并打开

     gitbook init
     gitbook install
    
  5. 修改SUMMARY.md

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

     gitbook build
     gitbook serve
    
@耿志环 2012-∞ 冀ICP备17033181号, powered by Gitbook修订: 2019-07-08 16:49:59

results matching ""

    No results matching ""