gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

第一步: 配置git lab

Git lab 安装后配置步骤

  1. 安装Git-2.11-64-bit.exe

[email protected] MINGW64 /d/gitCode

$ git --version

git version 2.11.1.windows.1

 

  1. 登录git lab服务器

http://172.32.12.202/Sycro/docs

Git lab ssh配置步骤,进入Profile settings

 

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

 

3.SSH Keys 点击 generate it.

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

4.目录>>右键>>git bush here>>

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

5.输入

ssh-****** -t rsa -C "[email protected]"

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

6.输入 生成SSH的路径

D:\gitCode\zhy.ssh

 

7.然后把公钥 zhy.ssh.pub 的内容注册到SSH Key

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

 

 

 

 

 

第二步:Git Book editor 安装步骤(git version 2.11.1 /node v4.0.0)

 

先安装node.js

C:\Program Files\nodejs>node -v

v4.0.0

再下载安装

file://172.32.12.236/h/Software/GitBook.Editor/GitBook.Editor.Setup.exe

 

 

 

安装NPM  在任意处,CMD下

$ npm install gitbook-cli –g

 

cd  /d/gitCode/docs

 

gitbook build

打开 gitbook软件,不用log in ,直接 Do that later,就可以进行编辑上传,  编辑好后,需要发布,告诉我,我统一发布.

 

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

 

 

 

 

发布步骤:

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

注意是HTTP

gitBook 安装配置和发布流程(git version 2.11.1 /node v4.0.0)

 

Git bash

 

 

Git clone http://172.32.12.202/Sycro/docs.git

 

Git pull origin master

Git commit –am “update 20180913”

 

Git push origin master

 

 

拷贝D:\GitLab\docs  到 241 D:\Nginx_32\MES_docs\html

http://172.32.12.241:5000/shu-ju-ku-xiang-mu.html