Skip to content

Commit b93e46e

Browse files
authored
Fix docs build with python 3.12 and pin the python version in the gh workflows. (#95)
* Fix markdown, maybe? * Upgrade mkdocs and mkdocs-material. * Update mkdocs plugins. * Pin the python version. * Add sanity check to ensure the page isn't completely screwed up.
1 parent e8bf90e commit b93e46e

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

.github/workflows/gh-pages-deploy.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v2
1111
- uses: actions/setup-python@v2
1212
with:
13-
python-version: 3.x
13+
python-version: 3.12
1414
- name: Setup Python
1515
run: |
1616
python -m venv ./venv --clear
@@ -20,6 +20,7 @@ jobs:
2020
run: |
2121
source ./venv/bin/activate
2222
./build.sh
23+
test -f ./docs/index.html # sanity check
2324
- name: Deploy to GH Pages
2425
run: |
2526
pip install ghp-import

.github/workflows/pr-build.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install Python
2020
uses: actions/setup-python@v2
2121
with:
22-
python-version: 3.x
22+
python-version: 3.12
2323

2424
- name: Setup Python
2525
run: |
@@ -30,7 +30,8 @@ jobs:
3030
- name: Build docs
3131
run: |
3232
source ./venv/bin/activate
33-
bash ./build.sh
33+
./build.sh
34+
test -f ./docs/index.html # sanity check
3435
3536
- name: Save PR Number
3637
run: echo ${{ github.event.number }} > ./docs/pr-number.txt

ChunkyDocs/mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ markdown_extensions:
101101
- footnotes
102102
- attr_list
103103
- pymdownx.emoji:
104-
emoji_index: !!python/name:materialx.emoji.twemoji
105-
emoji_generator: !!python/name:materialx.emoji.to_svg
104+
emoji_index: !!python/name:material.extensions.emoji.twemoji
105+
emoji_generator: !!python/name:material.extensions.emoji.to_svg
106106
- pymdownx.highlight
107107
- pymdownx.inlinehilite
108108
- pymdownx.superfences

requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ Jinja2==3.0.2
55
joblib==1.0.1
66
livereload==2.6.3
77
lunr==0.5.8
8-
Markdown==3.3.4
9-
MarkupSafe==2.0.0
10-
mkdocs==1.4.2
11-
mkdocs-macros-plugin==0.7.0
12-
mkdocs-material==9.0.10
8+
Markdown==3.3.7
9+
MarkupSafe==2.1.3
10+
mkdocs==1.5.3
11+
mkdocs-macros-plugin==1.0.4
12+
mkdocs-material==9.4.7
1313
nltk==3.6.2
1414
PyYAML==5.3.1
1515
regex==2022.4.24
1616
six==1.16.0
1717
tornado==6.1
1818
tqdm==4.60.0
19-
mkdocs-redirects==1.2.0
19+
mkdocs-redirects==1.2.1
2020
mkdocs-simple-hooks==0.1.5

0 commit comments

Comments
 (0)