2014-09-15 22:08:52 -05:00
|
|
|
如何用 Markdown 方便地整理和写作多章节文档。
|
2014-09-15 22:05:36 -05:00
|
|
|
|
2014-09-15 22:08:52 -05:00
|
|
|
* 使用目录来区分各个章节
|
|
|
|
* 章节的标题、介绍用目录里 _ 开头的文件来保存
|
2014-09-15 22:05:36 -05:00
|
|
|
|
2014-09-15 22:08:52 -05:00
|
|
|
```
|
|
|
|
- 1-introduction/
|
|
|
|
|- _title.md
|
|
|
|
|- _description.md
|
|
|
|
|- 1-what_is_iredmail.md
|
|
|
|
|- 2-why_choose_iredmail.md
|
|
|
|
|- 3-price.md
|
|
|
|
- 2-faq/
|
|
|
|
- 3-install/
|
|
|
|
```
|
2014-09-15 22:05:36 -05:00
|
|
|
|
2014-09-15 22:08:52 -05:00
|
|
|
最后使用脚本 convert.sh 自动生成电子书的 index.html 文件。这个脚本的作用是:
|
2014-09-15 22:05:36 -05:00
|
|
|
|
2014-09-15 22:08:52 -05:00
|
|
|
* 将章节按照顺序排列
|
|
|
|
* 生成完整的索引,并列出章节目录内的所有文章
|