Skip to content

Commit 1a8f3c1

Browse files
committed
fix: explicitly specify font sources and clear fonts dir before install
- Add explicit font sources in pyproject.toml using GitHub URLs - Clear fonts directory before install to avoid stale cached fonts - Require article-cli>=1.3.2
1 parent 2f82fd9 commit 1a8f3c1

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/latex.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,16 @@ jobs:
7272

7373
- name: Install article-cli
7474
run: |
75-
pip install --no-cache-dir article-cli>=1.3.1
75+
pip install --no-cache-dir 'article-cli>=1.3.2'
7676
7777
- name: Setup git hooks
7878
run: |
7979
article-cli setup
8080
8181
- name: Install fonts
8282
run: |
83+
# Clear any stale cached fonts from previous runs
84+
rm -rf fonts
8385
article-cli install-fonts
8486
8587
- name: Compile LaTeX document (ubuntu-latest)

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,8 @@ default_branch = "main"
3131

3232
[tool.article-cli.fonts]
3333
directory = "fonts"
34+
# Use GitHub releases for reliable font downloads
35+
sources = [
36+
{ name = "Roboto", url = "https://github.com/googlefonts/roboto/releases/download/v2.138/roboto-unhinted.zip", description = "Google's sans-serif font family" },
37+
{ name = "Roboto Mono", url = "https://github.com/googlefonts/RobotoMono/archive/refs/heads/main.zip", description = "Google's monospace font, good for code" }
38+
]

0 commit comments

Comments
 (0)