mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-15 06:03:33 -06:00
enables mermaid
in docs (#935)
Short and sweet PR that addresses the follow-up in #909: enabling `mermaid` on our docs site, but making it clear that users still need to opt-in to use it. I've also added an example in-action. To test: [see the Netlify deploy](https://deploy-preview-935--just-the-docs.netlify.app/docs/ui-components/code/#mermaid-diagram-code-blocks).
This commit is contained in:
17
_config.yml
17
_config.yml
@@ -51,14 +51,15 @@ search:
|
||||
# Supports true or false (default)
|
||||
button: false
|
||||
|
||||
# To enable support for mermaid diagrams (https://mermaid-js.github.io/mermaid/),
|
||||
# uncomment the `mermaid` and `version` keys below
|
||||
# mermaid:
|
||||
# # Version of mermaid library
|
||||
# # Pick an available version from https://cdn.jsdelivr.net/npm/mermaid/
|
||||
# version: "9.1.3"
|
||||
# # Put any additional configuration, such as setting the theme, in _includes/mermaid_config.js
|
||||
# # See also docs/ui-components/code
|
||||
# To disable support for mermaid diagrams (https://mermaid-js.github.io/mermaid/),
|
||||
# comment out the `mermaid` and `version` keys below
|
||||
# By default, consuming the theme as a gem leaves mermaid disabled; it is opt-in
|
||||
mermaid:
|
||||
# Version of mermaid library
|
||||
# Pick an available version from https://cdn.jsdelivr.net/npm/mermaid/
|
||||
version: "9.1.6"
|
||||
# Put any additional configuration, such as setting the theme, in _includes/mermaid_config.js
|
||||
# See also docs/ui-components/code
|
||||
|
||||
# Enable or disable heading anchors
|
||||
heading_anchors: true
|
||||
|
Reference in New Issue
Block a user