Skip to content

Commit 7d6248d

Browse files
committed
Update the docs for new setting property
1 parent 98058f8 commit 7d6248d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@ the `MERMAID_THEME` variable.
7676
{% startmermaid "dark" %}graph LR; A--B;{% endmermaid %}
7777
```
7878

79+
### Mermaid use CDN
80+
81+
By default, Django Mermaid uses the local copy of mermaid from staticfiles. However, if you want to use the CDN version
82+
directly, you can set the `MERMAID_USE_CDN` variable in your Django project's **settings.py** file.
83+
84+
```python
85+
MERMAID_USE_CDN = True
86+
```
87+
7988
### Mermaid theme variables
8089

8190
You can define your custom theme by overriding the `MERMAID_THEME_VARIABLES` variable. You will need to use

0 commit comments

Comments
 (0)