You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Increase or decrease the padding around your diagrams
25
-
# (data-border)
25
+
# Border size / padding around diagrams
26
26
border: 5
27
27
28
-
# Control if edit button will be shown in the lightbox view
29
-
# (data-edit)
28
+
# Enable opening the editor for diagrams
30
29
edit: true
31
30
32
-
#Control if darkmode is supported
31
+
#Enable dark mode support
33
32
# When activated the color scheme for your diagrams is automatically toggled
34
33
# based on the selected theme. Supports classic mkdocs and mkdocs-material.
35
34
darkmode: true
36
35
37
-
#Set the color of hyperlink highlighting
36
+
#Highlight color for hyperlinks
38
37
# When a diagram element has a hyperlink on it, the element is highlighted
39
38
# on mouse hover over to better indicate a hylerlink is present. This
40
39
# parameter controls the color of the highlight boarder. If omitted, no
41
40
# highlighting happens.
42
41
highlight: "#0000FF"
43
-
```
44
-
## HTML Attributes
45
-
For each global configuration option you can also use the attribute in the diagram itself. This will override the global configuration. Here is an example:
To use these attributes you need to enable the markdown extension `attr_list` in your `mkdocs.yml`:
43
+
# Enable to open the lightbox on click
44
+
lightbox: true
51
45
52
-
```yaml
53
-
markdown_extensions:
54
-
- attr_list
46
+
# Toolbar specific options
47
+
toolbar:
48
+
# Display the page selector
49
+
pages: true
50
+
51
+
# Display the tags selector
52
+
tags: true
53
+
54
+
# Display the zoom controls
55
+
zoom: true
56
+
57
+
# Display the layer controls
58
+
layers: true
59
+
60
+
# Display the tags control
61
+
tags: true
62
+
63
+
# Display the lightbox / fullscreen button
64
+
lightbox: true
65
+
66
+
# Position of the toolbar (top/bottom)
67
+
position: "top"
68
+
69
+
# Do not hide the toolbar when not hovering over diagrams
70
+
no_hide: false
55
71
```
72
+
56
73
## Material Integration
57
74
58
75
If you are using the Material Theme and want to use the [instant-loading](https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/?h=instant#instant-loading) feature. You will have to configure the following:
0 commit comments