1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-27 17:00:54 +01:00

Documentation

This commit is contained in:
squidfunk 2021-02-24 18:59:12 +01:00
parent f4367dd575
commit d65e880618
3 changed files with 16 additions and 6 deletions

View File

@ -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) mkdocs-material-7.0.1 (2021-02-24)
* Fixed #2334: Google Analytics triggers page view twice (7.0.0 regression) * Fixed #2334: Google Analytics triggers page view twice (7.0.0 regression)

View File

@ -6,6 +6,11 @@ template: overrides/main.html
## Material for MkDocs Insiders ## 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> ### 1.17.0 <small>_ January 31, 2021</small>
- Added support for section index pages - Added support for section index pages

View File

@ -195,21 +195,21 @@ palette toggle can be added via `mkdocs.yml`:
theme: theme:
palette: palette:
# Toggle light mode # Light mode
- scheme: default - scheme: default
primary: indigo primary: indigo
accent: indigo accent: indigo
toggle: toggle:
icon: material/toggle-switch icon: material/toggle-switch-off-outline
name: Switch to light mode name: Switch to dark mode
# Toggle dark mode # Dark mode
- scheme: slate - scheme: slate
primary: blue primary: blue
accent: blue accent: blue
toggle: toggle:
icon: material/toggle-switch-off-outline icon: material/toggle-switch
name: Switch to dark mode name: Switch to light mode
``` ```
This will render a color palette toggle in the header next to the search bar: This will render a color palette toggle in the header next to the search bar: