docs: fix mermaid theme options typo (#8272)

Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
This commit is contained in:
Nathaniel Tucker 2022-11-02 08:31:53 -05:00 committed by GitHub
parent 96eab89c52
commit 7387aabbdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -68,13 +68,13 @@ See the [Mermaid theme documentation](https://mermaid-js.github.io/mermaid/#/the
## Mermaid Config {#configuration} ## Mermaid Config {#configuration}
Options in `mermaid.mermaidOptions` will be passed directly to `mermaid.initialize`: Options in `mermaid.options` will be passed directly to `mermaid.initialize`:
```js title="docusaurus.config.js" ```js title="docusaurus.config.js"
module.exports = { module.exports = {
themeConfig: { themeConfig: {
mermaid: { mermaid: {
mermaidOptions: { options: {
maxTextSize: 50, maxTextSize: 50,
}, },
}, },

View file

@ -68,13 +68,13 @@ See the [Mermaid theme documentation](https://mermaid-js.github.io/mermaid/#/the
## Mermaid Config {#configuration} ## Mermaid Config {#configuration}
Options in `mermaid.mermaidOptions` will be passed directly to `mermaid.initialize`: Options in `mermaid.options` will be passed directly to `mermaid.initialize`:
```js title="docusaurus.config.js" ```js title="docusaurus.config.js"
module.exports = { module.exports = {
themeConfig: { themeConfig: {
mermaid: { mermaid: {
mermaidOptions: { options: {
maxTextSize: 50, maxTextSize: 50,
}, },
}, },