-
Notifications
You must be signed in to change notification settings - Fork 102
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
add table of content in vertx core #29
base: dev
Are you sure you want to change the base?
Conversation
加目录挺好的,core 这个文档确实太长了。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议改成用 gitbook toc 插件来实现。
https://www.npmjs.com/package/gitbook-plugin-atoc
core/Core.md
Outdated
- [启动器子类](#启动器子类) | ||
- [启动器和退出代码](#启动器和退出代码) | ||
- [配置 Vert.x 缓存](#配置-vertx-缓存) | ||
- [或者](#或者) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
跟前面一样类似的问题
core/Core.md
Outdated
- [执行打包成 fat-jar 的Vert.x 应用](#执行打包成-fat-jar-的vertx-应用) | ||
- [显示Vert.x的版本](#显示vertx的版本) | ||
- [其他命令](#其他命令) | ||
- [or](#or) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个目录应该是不存在的吧?or不表示任何东西
采用 TOC 指令吧。另外是不是把所有的翻译的文档 都需要均添加这个指令 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同意,建议直接用 GitBook 的 toc 插件。
@guoyu511 好主意。目前只改了 Core.md 里面的,尚未全部改,正则替换有些 在代码里面。 Find: 上述替换假设前提:每个 gitbook-atoc 效果图 |
…kdown-toc due to the previous one's auto-gen feature
自动 toc@guoyu511 gitbook-plugin-etoc 不用加 "plugins": ["etoc"],
"pluginsConfig": {
"etoc": {
"mindepth": 2,
"maxdepth": 4,
"notoc": false
}
} 展示效果不及 gitbook-plugin-atoc没有浮层效果 |
@downgoon 就用 gitbook-plugin-atoc 那个吧,目录可以浮在侧面操作容易一些。 |
添加目录
添加了一个目录,以方便读者阅读。
维护目录
后续编辑的人员如何维护目录呢?
使用
atom
编辑器(github开源),安装markdown-toc
插件,文档保存时,它会自动更新目录。