提交 9581756a 编写于 作者: D DCloud_LXH

chore: createSidebar

上级 2c96c622
......@@ -37,7 +37,7 @@ function parseBar(file, options) {
break;
}
})
if (!hasComment) {
if (link && !isExternal(link)) {
link = path.join('/', link.replace(/\.md\b/, '')
.replace(/\bREADME\b/, '')
......@@ -55,7 +55,6 @@ function parseBar(file, options) {
...config
})
}
}
})
return createMarkdownArray(contents, options.children)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册