docs: add the Impulso favicon - #377
Merged
Merged
Conversation
The theme links an SVG favicon (an impulse response with its credible bands on a brand-oxblood tile) from every page. favicon.ico and the iOS apple-touch-icon.png, both rendered from the SVG, go to the site root through html_extra_path, next to _redirects and _headers. docs/conf.py records how to regenerate them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015fagcMeo1LmLG2Dg3NybmQ
thomaspinder
enabled auto-merge
October 1, 2026 10:22
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The docs have no favicon of their own.
Solution
docs/_brand/favicon.svgis the Impulso mark: an impulse response with its 68% and 90% credible bands, on a brand-oxblood tile, after the Impulso figure on quantclimate.com.html_faviconlinks it from every page (_static/favicon.svg).favicon.ico(16, 32 and 48 px) andapple-touch-icon.png(180 px, square corners because iOS applies its own mask) are rendered from the SVG. They go to the site root throughhtml_extra_path, where browsers and iOS look for them by default.docs/conf.pyrecords the commands that regenerate them.html_extra_pathkeeps_redirectsand_headers(docs: send Access-Control-Allow-Origin on every docs response #375). The favicon work was written before docs: send Access-Control-Allow-Origin on every docs response #375 merged, so this line combines both changes.Verification
-Wsucceeds. Each page links_static/favicon.svg(with the correct relative path on nested pages), andfavicon.ico,apple-touch-icon.png,_redirectsand_headersall land at the site root, byte-identical to their sources.ruffand the repo's prek hooks pass.https://impulso.quantclimate.com/favicon.ico,/apple-touch-icon.pngand/_static/favicon.svg.🤖 Generated with Claude Code
https://claude.ai/code/session_015fagcMeo1LmLG2Dg3NybmQ