fix: Remove hard coded Path separator

This commit is contained in:
Sidharth Vinod
2022-10-08 10:45:42 +08:00
parent c99fd2baa9
commit ab5111e84f
7 changed files with 31 additions and 31 deletions

View File

@@ -43,7 +43,7 @@ import flatmap from 'unist-util-flatmap';
// These paths are from the root of the mono-repo, not from the
// mermaid sub-directory
const SOURCE_DOCS_DIR = 'packages/mermaid/src/docs';
const SOURCE_DOCS_DIR = join(...'packages/mermaid/src/docs'.split('/'));
const FINAL_DOCS_DIR = 'docs';
const AUTOGENERATED_TEXT = `# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT. Please edit the corresponding file in ${SOURCE_DOCS_DIR}.`;