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
* feat: configurable toolbar
Co-authored-by: Yves Chevallier <yves.chevallier@heig-vd.ch>
Signed-off-by: Jan Larwig <jan@larwig.com>
* bump to v1.13.0 and attribution for another author
Signed-off-by: Jan Larwig <jan@larwig.com>
---------
Signed-off-by: Jan Larwig <jan@larwig.com>
Co-authored-by: Yves Chevallier <yves.chevallier@heig-vd.ch>
# 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
-
# on mouse hover over to better indicate a hylerlink is present. This
40
-
# parameter controls the color of the highlight boarder. If omitted, no
41
-
# highlighting happens.
38
+
# on mouse hover over to better indicate a hyperlink is present.
42
39
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`:
41
+
# Enable to open the lightbox on click
42
+
lightbox: true
51
43
52
-
```yaml
53
-
markdown_extensions:
54
-
- attr_list
44
+
# Toolbar specific options
45
+
toolbar:
46
+
# Display the page selector
47
+
pages: true
48
+
49
+
# Display the tags selector
50
+
tags: true
51
+
52
+
# Display the zoom controls
53
+
zoom: true
54
+
55
+
# Display the layer controls
56
+
layers: true
57
+
58
+
# Display the lightbox / fullscreen button
59
+
lightbox: true
60
+
61
+
# Position of the toolbar (top/bottom)
62
+
position: "top"
63
+
64
+
# Do not hide the toolbar when not hovering over diagrams
65
+
no_hide: false
55
66
```
67
+
56
68
## Material Integration
57
69
58
70
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