Skip to content

Commit

Permalink
style: switch to Material theme with dark mode
Browse files Browse the repository at this point in the history
- Removed Dracula theme
- Configured Material theme with dark mode default
- Added color scheme toggle
  • Loading branch information
MaterDev committed Jan 17, 2025
1 parent b9ef3ff commit c5f4895
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs-dracula-theme
pip install mkdocs-awesome-pages-plugin
pip install mkdocs-material
pip install mkdocs-awesome-pages-plugin
pip install pyyaml
- name: Update logs
Expand Down
19 changes: 18 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ repo_url: https://github.com/MaterDev/thepath-ai_pi
repo_name: MaterDev/thepath-ai_pi

theme:
name: dracula
name: material
features:
- navigation.tabs
- navigation.sections
Expand All @@ -16,6 +16,23 @@ theme:
- search.suggest
- search.highlight
- navigation.tabs.sticky
palette:
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: indigo
accent: indigo
toggle:
icon: material/brightness-4
name: Switch to light mode
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
primary: indigo
accent: indigo
toggle:
icon: material/brightness-7
name: Switch to dark mode

docs_dir: docs
site_dir: site
Expand Down

0 comments on commit c5f4895

Please sign in to comment.