Skip to content

TSS-Document/DocServerManual

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

文档自动部署手册

该手册是为了说明如何创建一个可以自动部署的gitbook项目.即接收到提交之后,将gitbook编译为网页并部署至http://115.29.184.56:10000/html

本文档github地址为https://github.com/TSS-Document/DocServerManual

环境

  1. git
  2. npm
  3. gitbook
  4. 你喜欢的markdown编辑器.推荐atomgitbook editor

步骤

  1. 在TssRequirement的organization中创建仓库

  2. 本地clone仓库,在 .git同级目录执行gitbook init

  3. 创建.gitignore文件,写入内容

    /_book
    

    可选,建议这样做,就像maven项目要ignore /target一样

  4. 创建styles文件夹,在其中添加website.css文件,内容为

  .book .book-summary, .book .book-body,code{
    font-family:"Microsoft YaHei UI",
                "Microsoft Yahei",
                "PingFang SC",
                "Lantinghei SC",
                "Hiragino Sans GB",
                "WenQuanYi Micro Hei",
                "WenQuanYi Zen Hei",
                "Noto Sans CJK SC",
                "Microsoft JhengHei UI",
                "Microsoft JhengHei",
                "PingFang TC",
                "Lantinghei TC",
                "Noto Sans CJK TC",
                "Helvetica Neue",
                Helvetica,
                Arial,
                sans-serif;
  }

可选,这样做是为了让字体变好看

  1. commit and push
  2. 约20秒后,http://115.29.184.56:10000/html 中可查看与repository同名的文件夹,点击可查看编译好的网页
  3. 若上一步成功,则自动部署配置成功,之后的commit都会触发文档部署

About

Document server manual

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages