123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276 |
- <!DOCTYPE HTML>
- <html lang="en" >
- <head>
- <title>Introduction · GitBook</title>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
- <meta name="description" content="">
- <meta name="generator" content="GitBook 3.2.0">
-
-
-
-
- <link rel="stylesheet" href="gitbook/style.css">
-
-
-
- <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
-
-
-
- <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
-
-
-
- <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <meta name="HandheldFriendly" content="true"/>
- <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
- <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
-
-
- </head>
- <body>
-
- <div class="book">
- <div class="book-summary">
-
-
- <div id="book-search-input" role="search">
- <input type="text" placeholder="Type to search" />
- </div>
-
- <nav role="navigation">
-
- <ul class="summary">
-
-
-
-
-
-
-
- <li class="chapter active" data-level="1.1" data-path="./">
-
- <a href="./">
-
-
- Introduction
-
- </a>
-
-
- </li>
-
- <li class="chapter " data-level="1.2" >
-
- <span>
-
-
- 项目架构
-
- </span>
-
-
- <ul class="articles">
-
-
- <li class="chapter " data-level="1.2.1" data-path="项目架构/开发流程.html">
-
- <a href="项目架构/开发流程.html">
-
-
- 开发流程
-
- </a>
-
-
- </li>
-
- </ul>
-
- </li>
-
-
- <li class="divider"></li>
- <li>
- <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
- Published with GitBook
- </a>
- </li>
- </ul>
- </nav>
-
-
- </div>
- <div class="book-body">
-
- <div class="body-inner">
-
-
- <div class="book-header" role="navigation">
-
- <!-- Title -->
- <h1>
- <i class="fa fa-circle-o-notch fa-spin"></i>
- <a href="." >Introduction</a>
- </h1>
- </div>
- <div class="page-wrapper" tabindex="-1" role="main">
- <div class="page-inner">
-
- <div id="book-search-results">
- <div class="search-noresults">
-
- <section class="normal markdown-section">
-
- <h1 id="hippo-book">hippo-book</h1><h2 id="docker安装使用">docker安装使用</h2><ol><li>下载docker image docker pull fellah/gitbook
- </li>
- <li><p>进入项目根目录下,运行gitbook容器命令</p><pre><code>docker rm gitbook</code></pre>
- <pre><code>docker run --name gitbook \
- -p 4000:4000 \
- -v $(pwd):/srv/gitbook \
- -v $(pwd)/.html:/srv/html \
- fellah/gitbook</code></pre>
- <p>说明</p></li>
- <li><p>/srv/gitbook 是gitbook工作目录,用来存放源文件,映射到了本地的/home/woods/gitbook/gitbook</p></li>
- <li>/srv/html 是构建后的html文件,可在WEB服务中查看,映射到了本地的/home/woods/gitbook/html
- </li>
- <li>请确保本地的gitbook目录中包含至少README.md和SUMMARY.md两个文件
- </li>
- <li><p>访问:<a href="http://localhost:4000/" target="_blank">http://localhost:4000/</a></p></li>
- <li><p>重新构建命令</p><pre><code>docker exec gitbook gitbook build . /srv/html</code></pre>
- </li></ol>
- <h2 id="自动生成summary">自动生成SUMMARY</h2><p><a href="https://github.com/imfly" target="_blank">imfly</a>/<strong>gitbook-summary</strong></p><p>github地址:<a href="https://github.com/imfly/gitbook-summary" target="_blank">https://github.com/imfly/gitbook-summary</a></p><p>安装</p><pre><code class="lang-css"><span class="hljs-selector-tag">npm</span> <span class="hljs-selector-tag">install</span> <span class="hljs-selector-tag">-g</span> <span class="hljs-selector-tag">gitbook-summary</span></code></pre>
- <p>简单使用:</p><pre><code class="lang-bash"><span class="hljs-built_in">cd</span> /path/to/your/book/
- book sm</code></pre>
-
- </section>
-
- </div>
- <div class="search-results">
- <div class="has-results">
-
- <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
- <ul class="search-results-list"></ul>
-
- </div>
- <div class="no-results">
-
- <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
-
- </div>
- </div>
- </div>
- </div>
- </div>
-
- </div>
-
-
-
-
-
- </div>
- <script>
- var gitbook = gitbook || [];
- gitbook.push(function() {
- gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"项目架构","level":"1.2","depth":1,"ref":"","articles":[{"title":"开发流程","level":"1.2.1","depth":2,"path":"项目架构/开发流程.md","ref":"项目架构/开发流程.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"language":"en","gitbook":"*"},"file":{"path":"README.md","mtime":"2022-08-10T07:25:16.000Z","type":"markdown"},"gitbook":{"version":"3.2.0","time":"2022-08-10T07:27:34.606Z"},"basePath":".","book":{"language":""}});
- });
- </script>
- </div>
-
- <script src="gitbook/gitbook.js"></script>
- <script src="gitbook/theme.js"></script>
-
-
- <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
-
-
-
- <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
-
-
-
- <script src="gitbook/gitbook-plugin-search/search.js"></script>
-
-
-
- <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
-
-
-
- <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
-
-
-
- <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
-
-
-
- <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
-
-
- </body>
- </html>
|