Browse Source
📝 Add dark mode auto switch to docs based on OS preference (#4869)
pull/4887/head
Mário Victor Ribeiro Silva
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with
72 additions and
36 deletions
-
docs/az/mkdocs.yml
-
docs/de/mkdocs.yml
-
docs/en/mkdocs.yml
-
docs/es/mkdocs.yml
-
docs/fa/mkdocs.yml
-
docs/fr/mkdocs.yml
-
docs/id/mkdocs.yml
-
docs/it/mkdocs.yml
-
docs/ja/mkdocs.yml
-
docs/ko/mkdocs.yml
-
docs/nl/mkdocs.yml
-
docs/pl/mkdocs.yml
-
docs/pt/mkdocs.yml
-
docs/ru/mkdocs.yml
-
docs/sq/mkdocs.yml
-
docs/tr/mkdocs.yml
-
docs/uk/mkdocs.yml
-
docs/zh/mkdocs.yml
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
|
@ -5,13 +5,15 @@ theme: |
|
|
name: material |
|
|
name: material |
|
|
custom_dir: overrides |
|
|
custom_dir: overrides |
|
|
palette: |
|
|
palette: |
|
|
- scheme: default |
|
|
- media: "(prefers-color-scheme: light)" |
|
|
|
|
|
scheme: default |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|
icon: material/lightbulb |
|
|
icon: material/lightbulb |
|
|
name: Switch to light mode |
|
|
name: Switch to light mode |
|
|
- scheme: slate |
|
|
- media: "(prefers-color-scheme: dark)" |
|
|
|
|
|
scheme: slate |
|
|
primary: teal |
|
|
primary: teal |
|
|
accent: amber |
|
|
accent: amber |
|
|
toggle: |
|
|
toggle: |
|
|