Refactor PDF build in CI, add dark mode PDF (pt 4)

Refactored GitHub Actions workflow **Build guide PDF**
(`scripts\build_guide_pdf.py`): now builds both light and dark mode PDFs
(`export/thgtoa.pdf` and `export/thgtoa-dark.pdf` respectively).

Signed-off-by: nopeitsnothing <no@anonymousplanet.org>
This commit is contained in:
nopeitsnothing
2026-04-14 03:22:10 -04:00
parent 0e8de6ccc0
commit 206a6ff6b7
6 changed files with 397 additions and 167 deletions
+13 -4
View File
@@ -31,7 +31,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
python-version: "3.13"
- name: Install MkDocs Material
run: pip install mkdocs-material
@@ -44,13 +44,22 @@ jobs:
- name: Build PDF
env:
CI: true
run: python scripts/build_guide_pdf.py
run: python scripts/build_guide_pdf.py --both
- name: Upload PDF artifact
uses: actions/upload-artifact@v7
with:
name: guide-pdf
path: export/guide.pdf
name: light-pdf
path: export/thgtoa.pdf
archive: false
if-no-files-found: error
retention-days: 90
- name: Upload PDF artifact (Dark Mode)
uses: actions/upload-artifact@v7
with:
name: dark-pdf
path: export/thgtoa-dark.pdf
archive: false
if-no-files-found: error
retention-days: 90