mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-30 18:24:35 +01:00
Documentation
This commit is contained in:
parent
f4367dd575
commit
d65e880618
@ -1,3 +1,8 @@
|
||||
mkdocs-material-7.0.1+insiders-2.0.0 (2021-02-24)
|
||||
|
||||
* Migrated Insiders to the new architecture
|
||||
* Swapped color palette toggle configuration
|
||||
|
||||
mkdocs-material-7.0.1 (2021-02-24)
|
||||
|
||||
* Fixed #2334: Google Analytics triggers page view twice (7.0.0 regression)
|
||||
|
@ -6,6 +6,11 @@ template: overrides/main.html
|
||||
|
||||
## Material for MkDocs Insiders
|
||||
|
||||
### 2.0.0 <small>_ February 24, 2021</small>
|
||||
|
||||
- Migrated Insiders to the new architecture
|
||||
- Swapped color palette toggle configuration
|
||||
|
||||
### 1.17.0 <small>_ January 31, 2021</small>
|
||||
|
||||
- Added support for section index pages
|
||||
|
@ -195,21 +195,21 @@ palette toggle can be added via `mkdocs.yml`:
|
||||
theme:
|
||||
palette:
|
||||
|
||||
# Toggle light mode
|
||||
# Light mode
|
||||
- scheme: default
|
||||
primary: indigo
|
||||
accent: indigo
|
||||
toggle:
|
||||
icon: material/toggle-switch
|
||||
name: Switch to light mode
|
||||
icon: material/toggle-switch-off-outline
|
||||
name: Switch to dark mode
|
||||
|
||||
# Toggle dark mode
|
||||
# Dark mode
|
||||
- scheme: slate
|
||||
primary: blue
|
||||
accent: blue
|
||||
toggle:
|
||||
icon: material/toggle-switch-off-outline
|
||||
name: Switch to dark mode
|
||||
icon: material/toggle-switch
|
||||
name: Switch to light mode
|
||||
```
|
||||
|
||||
This will render a color palette toggle in the header next to the search bar:
|
||||
|
Loading…
Reference in New Issue
Block a user