File tree Expand file tree Collapse file tree 4 files changed +28
-6
lines changed Expand file tree Collapse file tree 4 files changed +28
-6
lines changed Original file line number Diff line number Diff line change 14
14
if [ " ${READTHEDOCS_PROJECT} " = " docspypiorg" ]; then
15
15
pip install -r requirements/docs/user.txt
16
16
asdf reshim
17
- mkdocs build -f mkdocs-user-docs.yml
17
+ mkdocs build -f docs/ mkdocs-user-docs.yml
18
18
mkdir _readthedocs && mv docs/user-site _readthedocs/html
19
19
fi
20
20
21
21
if [ " ${READTHEDOCS_PROJECT} " = " blogpypiorg" ]; then
22
22
pip install -r requirements/docs/blog.txt
23
23
asdf reshim
24
- mkdocs build -f docs/blog.yml
24
+ mkdocs build -f docs/mkdocs- blog.yml
25
25
mkdir _readthedocs && mv docs/blog-site _readthedocs/html
26
26
fi
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ export LANG="${ENCODING:-en_US.UTF-8}"
10
10
# Print all the following commands
11
11
set -x
12
12
13
- mkdocs build -f mkdocs-user-docs.yml
13
+ mkdocs build -f docs/ mkdocs-user-docs.yml
Original file line number Diff line number Diff line change 8
8
favicon : assets/favicon.ico
9
9
homepage : https://pypi.org
10
10
custom_dir : blog/overrides
11
+ palette :
12
+ - scheme : default
13
+ media : " (prefers-color-scheme: light)"
14
+ toggle :
15
+ icon : material/weather-night
16
+ name : Switch to Dark mode
17
+ - scheme : slate
18
+ media : " (prefers-color-scheme: dark)"
19
+ toggle :
20
+ icon : material/weather-sunny
21
+ name : Switch to Light mode
11
22
markdown_extensions :
12
23
- footnotes
13
24
extra_css :
Original file line number Diff line number Diff line change 1
1
site_name : PyPI Docs
2
- docs_dir : docs/ user
3
- site_dir : docs/ user-site
2
+ docs_dir : user
3
+ site_dir : user-site
4
4
plugins :
5
5
- macros :
6
- module_name : docs/ user/main
6
+ module_name : user/main
7
7
markdown_extensions :
8
8
- admonition
9
9
- pymdownx.details
@@ -16,6 +16,17 @@ theme:
16
16
homepage : https://pypi.org
17
17
features :
18
18
- content.action.edit
19
+ palette :
20
+ - scheme : default
21
+ media : " (prefers-color-scheme: light)"
22
+ toggle :
23
+ icon : material/weather-night
24
+ name : Switch to Dark mode
25
+ - scheme : slate
26
+ media : " (prefers-color-scheme: dark)"
27
+ toggle :
28
+ icon : material/weather-sunny
29
+ name : Switch to Light mode
19
30
extra_css :
20
31
- stylesheets/extra.css
21
32
extra :
You can’t perform that action at this time.
0 commit comments