Skip to content

Commit

Permalink
fix(sidebar): links do not get replaced correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
stfsy committed May 15, 2022
1 parent 3ee56f7 commit c524096
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/.vuepress/configs/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const getAllFiles = function (dirPath, arrayOfFiles) {
if (fs.statSync(dirPath + "/" + file).isDirectory()) {
arrayOfFiles = getAllFiles(join(dirPath, file), arrayOfFiles)
} else {
const link = join('/', dirPath, file)
.replace('docs\\', '')
const link = join(dirPath, file)
.replace('docs', '')
.replace('.md', '.html')
.replace(/\\/g, '/')

Expand Down

0 comments on commit c524096

Please sign in to comment.