Repository navigation
Conversation
Use MathJax 4.1.3 with SRI and drop KaTeX from head.html, fix the malformed SVG favicon link, and add the Stan logo as the navbar fallback. Ship the workflow under inst/workflows and test that it matches the repository copy.
Simplify some tempalting things
The head template now comes from pkgdown, and Font Awesome 7 is added through template.includes. The navbar fork is pkgdown's own template plus the Stan logo, and a test fails if they drift apart.
This reverts commit e5e5e2b.
Upstream's head template only emits favicon links for files it builds itself, so the SVG, 96px and web manifest links were lost. Restore the fork, which also keeps MathJax 4.1.3 and Font Awesome 7 for the Bluesky icon.
Upstream's head covers the favicon links. MathJax stays at pkgdown's 3.2.2, and Font Awesome 7 is added through template.includes for the Bluesky icon.
…gurable The PR build posts a sticky comment with the preview URL and the commit it was built from. PKGDOWN_RUN_DONT_RUN sets run_dont_run for the build (default TRUE).
Contributor
|
Preview: https://mc-stan.org/pkgdown-config/pr/21 |
pkgdown only emits favicon links when the package has pkgdown/favicon, which this site does not build. The head template is pkgdown's with the favicon block always on and the curly quotes fixed. MathJax stays at 3.2.2.
The head template is the only template fork now. It keeps the favicon links ungated and loads MathJax 4.1.3. The navbar logo is a CSS background, so the navbar template is pkgdown's own. The drift test goes with the navbar fork.
This branch has not been deployed
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.
Major release.
https://mc-stan.org/pkgdown-config/pr/21/