Fix Sphinx build failure due to Google Fonts network request - #372
Conversation
Set font: False in html_theme_options to prevent sphinx_immaterial from attempting to download Google Fonts from fonts.google.com, which fails when network access is restricted or blocked. Co-authored-by: sbaldu <93096843+sbaldu@users.noreply.github.com>
These directories contain generated files from Doxygen and Sphinx builds and should not be committed to version control. Co-authored-by: sbaldu <93096843+sbaldu@users.noreply.github.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #372 +/- ##
=======================================
Coverage 98.01% 98.01%
=======================================
Files 53 53
Lines 1666 1666
Branches 89 89
=======================================
Hits 1633 1633
Misses 33 33
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
@copilot TracebackThe full traceback has been saved in: To report this error to the developers, please open an issue at https://github.com/sphinx-doc/sphinx/issues/. Thanks! |
Co-authored-by: sbaldu <93096843+sbaldu@users.noreply.github.com>
I investigated the GitHub Pages workflow failure. The Google Fonts fix is working correctly ( I've pinned Sphinx to version <9.0 in the workflow to resolve this TypeError. The fix is in commit 9c0cf5c. |
|
@copilot Now it works, thanks. |
Co-authored-by: sbaldu <93096843+sbaldu@users.noreply.github.com>
Co-authored-by: sbaldu <93096843+sbaldu@users.noreply.github.com>
... The issue was that pip's dependency resolver was upgrading Sphinx to 9.x despite the version constraint. This happened because all packages were installed in a single command, allowing pip to resolve dependencies and choose Sphinx 9.x. Fixed by installing Sphinx <9.0 first in a separate pip command, then installing other packages. This ensures Sphinx stays at 8.x. The fix is in commit a671be5. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Fix Sphinx Documentation Build - Google Fonts Issue
font: Falsein html_theme_options in conf.py to disable Google FontsOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.