Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Configuration of Mermaid via .js file #232

Merged
merged 4 commits into from
Aug 10, 2023
Merged

feat: Configuration of Mermaid via .js file #232

merged 4 commits into from
Aug 10, 2023

Conversation

keonik
Copy link
Owner

@keonik keonik commented Aug 10, 2023

Ability to configure more of mermaid and force .js file to support type importing

close #199 by passing

// mermaid-config.js
/** @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,
    },
};

module.exports = config;

@keonik
Copy link
Owner Author

keonik commented Aug 10, 2023

Also closes #208 by the following

// mermaid-config.js
/** @type {import('mermaid').MermaidConfig} */
const config = {
    deterministicIds: true,
    maxTextSize: 90000,
    er: {
        useMaxWidth: true,
    },
   theme: 'forest'
};

module.exports = config;

@keonik keonik merged commit 46d6ad5 into alpha Aug 10, 2023
0 of 6 checks passed
@keonik keonik deleted the 199 branch August 10, 2023 19:10
@github-actions
Copy link

🎉 This PR is included in version 1.10.0-alpha.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

keonik added a commit that referenced this pull request Aug 22, 2023
* 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

* fix: Documentation for mermaid configuration and note about theme setting via env variable

* feat: Add disable flag to prisma config options  (#233)

close issue #202 by adding an environment variable friendly approach to disabling the generator

* fix: Default puppeteer-config to not set executable path unless OS is… (#235)

* fix: Default puppeteer-config to not set executable path unless OS is anything but Windows

* attempt to remove setting default executable path to troubleshoot mac os test failure in github actions

* .

* cross-env use for windows

* fix: Move puppeteer args to arm64 darwin only
@github-actions
Copy link

🎉 This PR is included in version 1.12.0-alpha.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant