Fir站长导航 > 站长资讯 > 教程分享 >

Docusaurus 修改设定目录名称及排序

2022-06-30

设定文档的目录名字,默认是用的创建的文件夹名字。

如果想自定义文件夹在文档上的名字可以新建一个_category_.json的文件。并添加代码:

{
"label": "文档名",
"position": 1
}

文档顺序排序

每个markdown文件的头部,先输入 --- 然后回车,出现编辑区域,输入:sidebar_position: 1

数字越小,排序越靠前。

相关标签: Docusaurus

We use cookies in our website to improve our customer experience, we will not share these information to third party. By using this website you need to accept our Cookies and Privacy Policy. If you don't want to accept these Cookies, please change your browser setting. Find more.