File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
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 :
Original file line number Diff line number Diff line change 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
66pdoc == 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments