diff --git a/packages/mermaid/src/docs.mts b/packages/mermaid/src/docs.mts index 04424b950..a22dc59e2 100644 --- a/packages/mermaid/src/docs.mts +++ b/packages/mermaid/src/docs.mts @@ -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}.`;