diff --git a/docs/.vuepress/markdown/createSidebar.js b/docs/.vuepress/markdown/createSidebar.js index 961c16776ca0053526ea4690aa1229a9def704ab..a572ae8909405029861fe8e2075e8d87fc9688bb 100644 --- a/docs/.vuepress/markdown/createSidebar.js +++ b/docs/.vuepress/markdown/createSidebar.js @@ -37,24 +37,23 @@ function parseBar(file, options) { break; } }) - if (!hasComment) { - if (link && !isExternal(link)) { - link = path.join('/', link.replace(/\.md\b/, '') - .replace(/\bREADME\b/, '') - .replace(/\/index/, '/') - .replace(/\?id=/, '#')) - .replace(/\\/g, '/') - links.push(link) - } + if (link && !isExternal(link)) { + link = path.join('/', link.replace(/\.md\b/, '') + .replace(/\bREADME\b/, '') + .replace(/\/index/, '/') + .replace(/\?id=/, '#')) + .replace(/\\/g, '/') - contents.push({ - level: token.level, - [textName]: text, - [linkName]: link, - ...config - }) + links.push(link) } + + contents.push({ + level: token.level, + [textName]: text, + [linkName]: link, + ...config + }) } })