Skip to content

Commit

Permalink
feat: Add various features to docs
Browse files Browse the repository at this point in the history
- Add lightbox for images
- Add dark mode
- Add SPA mode and link prefetching

Closes #2005
  • Loading branch information
zusorio committed Nov 19, 2024
1 parent 3fbb0a1 commit 264e6fa
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 264e6fa

Please sign in to comment.