提交 6258d917 编写于 作者: D DCloud_LXH

fix: createSidebar 时添加 .html

上级 9c3d4d0e
...@@ -46,7 +46,7 @@ function parseBar(tab, file, options) { ...@@ -46,7 +46,7 @@ function parseBar(tab, file, options) {
} }
} }
link = path.join('/', link.replace(/\.md\b/, '') link = path.join('/', link.replace(/\.md\b/, '.html')
.replace(/\bREADME\b/, '') .replace(/\bREADME\b/, '')
.replace(/\/index/, '/') .replace(/\/index/, '/')
.replace(/\?id=/, '#')) .replace(/\?id=/, '#'))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册