From d739ce06116c7df1be9b915d5de255af1dd4e6ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Wielu=C5=84ski?= Date: Wed, 8 Nov 2023 18:49:26 +0100 Subject: [PATCH] update docs --- docs/docs/guide/configuration.md | 15 +++++++++------ docs/mkdocs.yml | 3 --- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/docs/guide/configuration.md b/docs/docs/guide/configuration.md index 580407f..def4a95 100644 --- a/docs/docs/guide/configuration.md +++ b/docs/docs/guide/configuration.md @@ -112,18 +112,21 @@ se no error but the diagram will be rendered with global configuration only. #### Examples -##### Padding and scale +##### Theme and layout ```md -![Cloud](cloud.d2){pad="30" scale="0.8} +![Cloud](cloud.d2){theme=101 layout=elk} ``` -![Cloud](cloud.d2){pad="30" scale="0.8"} +![Cloud](cloud.d2){theme=101 layout=elk} + +##### Dark theme -##### Theme and layout +!!! info + Change system theme to light/dark to see the effect. ```md -![Cloud](cloud.d2){theme=101 layout=elk} +![Cloud](cloud.d2){dark_theme="200"} ``` -![Cloud](cloud.d2){theme=101 layout=elk} +![Cloud](cloud.d2){dark_theme="200"} diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 95ddd8c..1188e6d 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -6,15 +6,12 @@ repo_name: landmaj/mkdocs-d2-plugin plugins: - d2: theme: 3 - dark_theme: 200 sketch: True theme: name: material icon: repo: fontawesome/brands/github - palette: - - media: "(prefers-color-scheme)" nav: - Home: "index.md"