-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Add a config validator and organise global configs #3397
Comments
Key points
flowchart
Old["{Old Config+New Config}"] -->Validate
Validate --> Transform
Transform --> InternalConfig
|
Let us not forget about the decoupled diagrams. With a decoupled diagram I mean a diagram built outside of Mermaid (core) that is registering itself as a diagram that Mermaid can render. These diagrams will likly have additional configuration parameters etc. |
@knsv and @sidharthv96 I've posted my thoughts on Themes and configuration in a discussion. I think that figuring out how Themes will work & be implemented will answer many of the questions for how Configurations should work & be implemented. |
@sidharthv96 Is this issue considered resolved with the merge of the two 10.0 PR listed above? |
I don't think so. |
I have a pending PR that will change the We would then have a single file where:
Once that gets merged, we can make the following breaking changes:
Footnotes |
@aloisklink, now that #4112 is merged, should we create separate issues for the 2 breaking changes mentioned? |
I think, after talking to @Yokozuna59, we can do be both of these things, without having any breaking changes.
I think, after talking with @Yokozuna59 (see https://github.com/orgs/mermaid-js/discussions/4710#discussioncomment-6709156), it probably makes more sense to make everything in the After we make that change, adding |
Add a config validator to make sure config is passed in right place & format. (It should also handle transforming legacy config). This would make the internal code a lot cleaner.
All global configs should be grouped together as mentioned in #3337
Related #1172
The text was updated successfully, but these errors were encountered: