Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
landmaj committed Nov 8, 2023
1 parent 91be2d4 commit d739ce0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
15 changes: 9 additions & 6 deletions docs/docs/guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
3 changes: 0 additions & 3 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d739ce0

Please sign in to comment.