Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitbook #11

Open
topcss opened this issue Jan 25, 2019 · 0 comments
Open

gitbook #11

topcss opened this issue Jan 25, 2019 · 0 comments

Comments

@topcss
Copy link
Owner

topcss commented Jan 25, 2019

安装
npm install gitbook-cli -g

使用
在 SUMMARY.md 文件中定义目录结构有两种方法。

  • 先定义好目录结构,通过 gitbook init 自动生成目录结构对应的文件夹和 Markdown 文件。
  • 先创建好文件夹和 Markdown 文件再来编辑目录结构。

SUMMARY.md 的目录结构长什么样?看下面:

# Summary

* [项目简介](README.md)
* [快速开始](docs/快速开始.md)
 * [环境搭建](docs/环境搭建.md)
 * [简单使用](docs/简单使用.md)
* [学入学习](docs/深入学习) 

启动服务 gitbook serve
打开一个 Web 服务器 gitbook serve

参照:https://www.cnblogs.com/QianChia/p/8537180.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant