Merge pull request #3534 from aloisklink/build/fix-docsbuild-script

Fix `docs:build` and `docs:verify` scripts
This commit is contained in:
Knut Sveidqvist
2022-09-30 09:06:13 +02:00
committed by GitHub
44 changed files with 46 additions and 44 deletions

View File

@@ -41,7 +41,9 @@ import { remark } from 'remark';
// @ts-ignore No typescript declaration file
import flatmap from 'unist-util-flatmap';
const SOURCE_DOCS_DIR = 'src/docs';
// 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 FINAL_DOCS_DIR = 'docs';
const AUTOGENERATED_TEXT = `# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT. Please edit the corresponding file in ${SOURCE_DOCS_DIR}.`;