OpenDocumenter is a automatic documentation generator for OpenAPI v3 schemas. Simply provide your schema file in JSON or YAML, then sit back and enjoy the documentation.
This version brings with it a system for dynamic and integrated configuration of the diagram themes.
The objective of this is to increase the customizability of mermaid and the ease of Styling, with the customization of themes through the %%init%% directive and initialize calls.
Themes follow and build upon the Levels of Configuration and employ directives to modify and create custom configurations, as they were introduced in Version 8.6.0.
These Theming Configurations, similar to directives, will also be made applicable in the Live-Editor, for easier styling.
Site-wide Themes
Site-wide themes are still declared via initialize by site owners.
Notes: Only site owners can use the mermaidAPI.initialize call, to set values. Site-Users will have to use %%init%% to modify or create the theme for their diagrams.
Themes at the Local or Current Level
When Generating a diagram using on a webpage that supports mermaid.
It is also possible to override site-wide theme settings locally, for a specific diagram, using directives, as long as it is not prohibited by the secure array.
Following is an example:
%%{init: {'theme':'base'}}%%
graph TD
a --> b
Making a Custom Theme with themeVariables
The easiest way to make a custom theme is to start with the base theme, and just modify theme variables through themeVariables, via %%init%%.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/ouropencode/OpenDocumenter/network/alerts).
Bumps mermaid from 8.6.4 to 8.13.8.
Release notes
Sourced from mermaid's releases.
... (truncated)
Changelog
Sourced from mermaid's changelog.
... (truncated)
Commits
65592e0
Adding security page to the docsf4c335a
Fix for XSS vulnerability in url sanitization6f800be
Fix for issue with links from actors52af047
Merge branch 'develop' of github.com:mermaid-js/mermaid into developb4fbe1b
Adding an test file835ae17
Update Browserslist1127ce7
Update update-browserlist.yml9d82737
Bump lint-staged from 12.1.2 to 12.1.3 (#2577)0f97223
Bump eslint from 8.4.1 to 8.5.0 (#2572)e2bb847
Bump eslint-plugin-jsdoc from 37.2.0 to 37.3.0 (#2573)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/ouropencode/OpenDocumenter/network/alerts).