Skip to content

Commit

Permalink
Merge pull request #2015 from DSD-DBS/docs-features
Browse files Browse the repository at this point in the history
feat: Add dark mode and lightbox for docs
  • Loading branch information
MoritzWeber0 authored Nov 19, 2024
2 parents 3fbb0a1 + 264e6fa commit 27a57c6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@ theme:
- content.code.copy
- content.code.annotate
- navigation.tabs
- navigation.instant
- navigation.instant.prefetch
palette:
- media: "(prefers-color-scheme)"
toggle:
icon: material/brightness-auto
name: Switch to light mode
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to system preference

watch:
- custom_theme/
Expand Down Expand Up @@ -134,6 +151,8 @@ edit_uri: edit/master/docs/docs

plugins:
- search
- glightbox:
effect: fade
- redirects:
redirect_maps:
'user/sessions/flows/t4c.md': 'user/tools/capella/teamforcapella/connect/index.md' # The flows section was removed
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

mkdocs-material>=9.4.0
mkdocs-redirects
mkdocs-glightbox

0 comments on commit 27a57c6

Please sign in to comment.