ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

【Vegas原创】Gitbook的docker安装配置

2021-06-03 11:36:25  阅读:242  来源: 互联网

标签:info gitbook loading OK version ... Gitbook Vegas docker


1.创建目录:/gitbook/gitbook 和 /gitbook/html

2. /gitbook/gitbook目录下,touch新建README.md  SUMMARY.md

image

3. docker安装gitbook

docker run --name gitbook \
-p 4000:4000  \
-v /gitbook/gitbook:/srv/gitbook \
-v /gitbook/html:/srv/html \
fellah/gitbook

4.docker进入gitbook,进行初始化

[root@it ]# docker exec -it 9c9a975c58b8 /bin/sh
# ls
README.md  SUMMARY.md  _book
# gitbook

  Usage: gitbook [options] [command]


  Commands:

    ls                        List versions installed locally
    current                   Display currently activated version
    ls-remote                 List remote versions available for install
    fetch [version]           Download and install a <version>
    alias [folder] [version]  Set an alias named <version> pointing to <folder>
    uninstall [version]       Uninstall a version
    update [tag]              Update to the latest version of GitBook
    help                      List commands for GitBook
    *                         run a command with a specific gitbook version

  Options:

    -h, --help               output usage information
    -v, --gitbook [version]  specify GitBook version to use
    -d, --debug              enable verbose error
    -V, --version            Display running versions of gitbook and gitbook-cli
# gitbook init
info: create SUMMARY.md 
info: initialization is finished

5.每次改动md源文件后,都要重新构建,命令:

[root@it gitbook]# docker exec gitbook gitbook build . /srv/html
info: 7 plugins are installed 
info: 6 explicitly listed 
info: loading plugin "highlight"... OK 
info: loading plugin "search"... OK 
info: loading plugin "lunr"... OK 
info: loading plugin "sharing"... OK 
info: loading plugin "fontsettings"... OK 
info: loading plugin "theme-default"... OK 
info: found 1 pages 
info: found 0 asset files 
info: >> generation finished with success in 0.9s ! 
[root@it gitbook]#

标签:info,gitbook,loading,OK,version,...,Gitbook,Vegas,docker
来源: https://www.cnblogs.com/amadeuslee/p/14844455.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有