Skip to content

Commit 19f751a

Browse files
committed
improving documentation theme
1 parent 00f7c97 commit 19f751a

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

{{cookiecutter.project_slug}}/docs/mkdocs.yaml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
site_name: {{cookiecutter.project_name}}
2-
site_url: https://github.com/{{cookiecutter.github_username}}
2+
site_url: https://{{cookiecutter.github_username}}.github.io/{{cookiecutter.project_slug}}
33
site_description: {{cookiecutter.project_short_description}}
44
site_author: {{cookiecutter.full_name}}
55
site_dir: html
6+
repo_name: {{cookiecutter.github_username}}/{{cookiecutter.project_slug}}
7+
repo_url: https://github.com/{{cookiecutter.github_username}}/{{cookiecutter.project_slug}}
68

79
plugins:
810
- search
@@ -13,7 +15,32 @@ plugins:
1315
- gen_pages.py
1416

1517
theme:
16-
name: material
18+
name: material
19+
palette:
20+
- media: '(prefers-color-scheme: dark)'
21+
scheme: slate
22+
primary: blue
23+
accent: amber
24+
toggle:
25+
icon: material/lightbulb-outline
26+
name: Switch to light mode
27+
- media: '(prefers-color-scheme: light)'
28+
scheme: default
29+
primary: black
30+
accent: amber
31+
toggle:
32+
icon: material/lightbulb
33+
name: Switch to dark mode
34+
features:
35+
- search.suggest
36+
- search.highlight
37+
- content.tabs.link
38+
icon:
39+
repo: fontawesome/brands/github-alt
40+
#logo: img/logo.svg
41+
#favicon: img/favicon.png
42+
language: en
43+
1744

1845
nav:
1946
- index.md

0 commit comments

Comments
 (0)