Skip to content

Commit 143a3e8

Browse files
authored
chore(docs): upgrade MkDocs toolchain and drop temporary Pygments pin (#6194)
Signed-off-by: mday-io <mdaytn@gmail.com>
1 parent f4b581a commit 143a3e8

3 files changed

Lines changed: 42 additions & 10 deletions

File tree

‎.github/workflows/pr.yaml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
vscode: ${{ steps.filter.outputs.vscode }}
2222
lsp: ${{ steps.filter.outputs.lsp }}
2323
ci: ${{ steps.filter.outputs.ci }}
24+
docs: ${{ steps.filter.outputs.docs }}
2425
steps:
2526
- uses: actions/checkout@v7
2627
- uses: dorny/paths-filter@v4
@@ -46,6 +47,10 @@ jobs:
4647
- '.github/**'
4748
- 'Makefile'
4849
- '.pre-commit-config.yaml'
50+
docs:
51+
- 'docs/**'
52+
- 'mkdocs.yml'
53+
- '.readthedocs.yaml'
4954
5055
doc-tests:
5156
needs: changes
@@ -73,6 +78,33 @@ jobs:
7378
source .venv/bin/activate
7479
make doc-test
7580
81+
docs-build:
82+
needs: changes
83+
if:
84+
needs.changes.outputs.docs == 'true' || needs.changes.outputs.ci ==
85+
'true' || github.ref == 'refs/heads/main'
86+
runs-on: ubuntu-latest
87+
env:
88+
UV: '1'
89+
steps:
90+
- uses: actions/checkout@v7
91+
- name: Set up Python
92+
# Match the Python version Read the Docs builds with (.readthedocs.yaml)
93+
uses: actions/setup-python@v7
94+
with:
95+
python-version: '3.10'
96+
- name: Install uv
97+
uses: astral-sh/setup-uv@v7
98+
- name: Install dependencies
99+
run: |
100+
uv venv .venv
101+
source .venv/bin/activate
102+
make install-doc
103+
- name: Build docs
104+
run: |
105+
source .venv/bin/activate
106+
mkdocs build --strict
107+
76108
style-and-cicd-tests:
77109
needs: changes
78110
if:

‎docs/requirements.txt‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
mkdocs==1.4.2
2-
mkdocs-include-markdown-plugin==6.0.6
3-
mkdocs-material==9.0.5
4-
mkdocs-material-extensions==1.1.1
5-
mkdocs-glightbox==0.3.7
1+
mkdocs==1.6.1
2+
mkdocs-include-markdown-plugin==7.3.0
3+
mkdocs-material==9.7.7
4+
mkdocs-material-extensions==1.3.1
5+
mkdocs-glightbox==0.5.3
66
pdoc==14.5.1
7-
pygments==2.19.2 # Temporary pin: 2.20.0 breaks docs build; revisit after the fix
7+
pygments==2.21.0

‎mkdocs.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,16 @@ theme:
149149
palette:
150150
- media: "(prefers-color-scheme: light)"
151151
scheme: default
152-
primary: #3C64E2
153-
accent: #3C64E2
152+
primary: custom
153+
accent: custom
154154
toggle:
155155
icon: material/weather-sunny
156156
name: Switch to dark mode
157157
# Palette toggle for dark mode
158158
- media: "(prefers-color-scheme: dark)"
159159
scheme: slate
160-
primary: #3C64E2
161-
accent: #3C64E2
160+
primary: custom
161+
accent: custom
162162
toggle:
163163
icon: material/weather-night
164164
name: Switch to light mode

0 commit comments

Comments
 (0)