-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Configuration of Mermaid via .js file (#232)
* feat: Enable override of mermaid configuration via a .js file * fix: Move theme to mermaid config and out of cli extensions * remove mermaid types stub * fix theme for readme erd
- Loading branch information
Showing
8 changed files
with
3,617 additions
and
2,290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** @type {import('mermaid').MermaidConfig} */ | ||
const config = { | ||
deterministicIds: true, | ||
maxTextSize: 90000, | ||
er: { | ||
/** | ||
* When this flag is set to `true`, the height and width is set to 100% | ||
* and is then scaled with the available space. | ||
* If set to `false`, the absolute space required is used. | ||
* | ||
*/ | ||
useMaxWidth: false, | ||
}, | ||
theme: 'default', | ||
}; | ||
|
||
module.exports = config; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"skipLibCheck": true, | ||
"target": "es2019", | ||
"baseUrl": "src", | ||
"outDir": "dist", | ||
|