-
Notifications
You must be signed in to change notification settings - Fork 234
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
[需求]能否支持自动生成文章导航,而不需要配置呢? #54
Comments
docs.js blog.js可以如下配置:
|
或者更简单点,每个markdown目录下面有一个meta.yaml, 如果有这个文件就读这个文件里面的信息
每个语言目录下自己写,如果没有的话就直接默认是open=false, name就是目录名,我感觉后面这个方案更简单,后面维护者只需要关心目录和markdown @purple-force |
关于菜单的问题我近期考虑下 |
@purple-force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
现在每次增加文章都需要写个markdown, 然后还要配置一下docs.js或者blog.js,有点太痛苦。
我有个建议,如下:
1、docs.js blog.js只配置目录结构,配置目录路径对应的名字,好像只需要这个,也不需要配置层级。
2、markdown编写的,头部包含元信息,order表示顺序,越小越排在前面,title表示导航名字。
3、目录结构靠文件目录结构区分。
这样做的好处是毕竟目录结构调整是低频的,偶尔修改可以接受。对于文章增加,这个是高频的,如果目录不变的话,根本不需要其他操作,我只关心叫啥名,顺序是啥,所以统一放到markdown里比较合适
The text was updated successfully, but these errors were encountered: