Use Material theme for mkdocs

This commit is contained in:
Marcello 2022-06-24 17:55:46 +02:00
parent 75b392d778
commit f3f82492fb
4 changed files with 109 additions and 4 deletions

View file

@ -12,9 +12,49 @@ docs_dir: docs
site_dir: site
theme:
name: readthedocs
locale: en
include_sidebar: true
name: material
language: en
icon:
logo: octicons/telescope-16
palette:
# Palette toggle for light mode
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
primary: teal
accent: cyan
# Palette toggle for dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/brightness-4
name: Switch to light mode
primary: teal
accent: cyan
features:
- navigation.instant
- navigation.tracking
- navigation.sections
- navigation.expand
- navigation.top
markdown_extensions:
- pymdownx.highlight:
use_pygments: true
auto_title: true
linenums: true
anchor_linenums: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences
- pymdownx.keys
- pymdownx.smartsymbols
nav:
- Home: index.md