Skip to content

Commit

Permalink
ci: update doc script to allow sub dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl committed May 3, 2018
1 parent b23aba9 commit d173253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/publish/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function readFiles(directory, filelist) {
const originalPath = directory + file;
const newPath = path.join(outputPath, originalPath
.replace(documentationPath + `${path.sep}`, '')
.replace(`${path.sep}`, '-'));
.replace(new RegExp(`${path.sep}`, 'g'), '-'));

filelist.push({ originalPath, newPath });
}
Expand Down

0 comments on commit d173253

Please sign in to comment.