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
Copy file name to clipboardExpand all lines: docs/options.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ You can customize the plugin by setting options in `mkdocs.yml`. For example:
8
8
plugins:
9
9
- charts:
10
10
vega_width: container
11
-
vega_theme: default
11
+
vega_theme_light: default
12
12
vega_theme_dark: dark
13
13
vega_renderer: svg
14
14
use_data_path: True
@@ -22,9 +22,9 @@ You can customize the plugin by setting options in `mkdocs.yml`. For example:
22
22
```
23
23
24
24
- `vega_width` (default is `container`). When not specified explicitly in the JSON schema, the `width` to use (see [vegalite customizing size](https://vega.github.io/vega-lite/docs/size.html)). When set to `container` width will be 100%.
25
-
- `vega_theme`(default is `default`). Specify one of the available [vegalite themes](https://vega.github.io/vega-themes/).
26
-
- `vega_theme_dark`(default is `dark`). When using the [mkdocs-material](https://squidfunk.github.io/mkdocs-material) theme with a dark mode or the user's preferred color scheme in the browser or OS is "dark", automatically render charts using this theme. Dark mode toggle is also supported. Specify one of the available [vegalite themes](https://vega.github.io/vega-themes/).
27
-
- `vega_renderer`(default is `svg`). Specify one of the available [vegalite renderers](https://vega.github.io/vega-themes/).
25
+
- `vega_theme_light`(default is `default`). Specify one of the available [vegalite themes](https://vega.github.io/vega-themes/) to use when in light mode. When using the [mkdocs-material](https://squidfunk.github.io/mkdocs-material) theme with a light mode or the user's preferred color scheme in the browser or OS is "light", automatically render charts using this theme. [Color pallete toggle](https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#color-palette-toggle) is also supported.
26
+
- `vega_theme_dark`(default is `dark`). Specify one of the available [vegalite themes](https://vega.github.io/vega-themes/) to use when in dark mode. When using the [mkdocs-material](https://squidfunk.github.io/mkdocs-material) theme with a dark mode or the user's preferred color scheme in the browser or OS is "dark", automatically render charts using this theme. [Color pallete toggle](https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#color-palette-toggle) is also supported.
27
+
- `vega_renderer`(default is `svg`). Specify one of `canvas` or `svg`. See the [demo vegalite renderers](https://vega.github.io/vega-themes/).
28
28
- `use_data_path`(default is `True`). When `True`, any relative urls used in the JSON schema are relative to the `data_path`. When `False`, relative urls should be relative to the URL of the page.
29
29
- `data_path`(default is `""`). When `use_data_path` is enabled, the base path relative to the `docs/` folder.
30
30
- `integrations.mkdocs_material.themes_light`(default is `[default]`). When using the [mkdocs-material](https://squidfunk.github.io/mkdocs-material) theme, specify the light [color schemes](https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#color-scheme).
See https://www.mkdocs.org/user-guide/plugins/#on_config.
50
51
"""
52
+
ifself.config.get("vega_theme") !="deprecated":
53
+
raisePluginError(
54
+
"[mkdocs_charts_plugin]: 'vega_theme' is deprecated and has been renamed to 'vega_theme_light'. Together with 'vega_theme_dark' this enables automatic theme switching. Please update your mkdocs.yml."
55
+
)
56
+
51
57
# Add pointer to mkdocs-charts-plugin.js
52
58
# which is added to the output directory during on_post_build() event
0 commit comments