Skip to content

Commit d173253

Browse files
committed
ci: update doc script to allow sub dirs
1 parent b23aba9 commit d173253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/publish/docs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function readFiles(directory, filelist) {
3737
const originalPath = directory + file;
3838
const newPath = path.join(outputPath, originalPath
3939
.replace(documentationPath + `${path.sep}`, '')
40-
.replace(`${path.sep}`, '-'));
40+
.replace(new RegExp(`${path.sep}`, 'g'), '-'));
4141

4242
filelist.push({ originalPath, newPath });
4343
}

0 commit comments

Comments
 (0)