diff --git a/docs/assets/images/cherry_petal_atlas.png b/docs/assets/images/home/cherry_petal_atlas.png similarity index 100% rename from docs/assets/images/cherry_petal_atlas.png rename to docs/assets/images/home/cherry_petal_atlas.png diff --git a/docs/assets/stylesheets/main.css b/docs/assets/stylesheets/home.css similarity index 100% rename from docs/assets/stylesheets/main.css rename to docs/assets/stylesheets/home.css diff --git a/docs/index.md b/docs/index.md index 000ea34..a572d90 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,17 +1,3 @@ -# Welcome to MkDocs - -For full documentation visit [mkdocs.org](https://www.mkdocs.org). - -## Commands - -* `mkdocs new [dir-name]` - Create a new project. -* `mkdocs serve` - Start the live-reloading docs server. -* `mkdocs build` - Build the documentation site. -* `mkdocs -h` - Print help message and exit. - -## Project layout - - mkdocs.yml # The configuration file. - docs/ - index.md # The documentation homepage. - ... # Other markdown pages, images and other files. +--- +template: home.html +--- diff --git a/mkdocs.yml b/mkdocs.yml index 6bf42a2..fa3634d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -8,21 +8,19 @@ theme: language: zh logo: assets/images/title.png favicon: assets/images/logo.png + # noinspection YAMLSchemaValidation palette: - media: "(prefers-color-scheme)" toggle: icon: material/brightness-auto name: 切换到日间模式 - media: "(prefers-color-scheme: light)" - primary: teal - accent: teal + scheme: default toggle: icon: material/brightness-7 name: 切换到深色模式 - media: "(prefers-color-scheme: dark)" scheme: slate - primary: teal - accent: teal toggle: icon: material/brightness-4 name: 切换到系统默认 diff --git a/overrides/main.html b/overrides/home.html similarity index 83% rename from overrides/main.html rename to overrides/home.html index 9d1b868..07d0a2e 100644 --- a/overrides/main.html +++ b/overrides/home.html @@ -8,7 +8,7 @@