Repository navigation
[backport] refactor: move the site theme and chrome into a local extension - #2290
Merged
Merged
Conversation
Move the site theme, scripts, Lua filters and page chrome into a local extension at _extensions/quartoorg/, used through a quartoorg project type. Pages inherit quartoorg-html from the project instead of naming it, so the theme is set in one place and a page cannot drop it silently. This centralises the themes and makes the site easier to maintain, and it lets #2140 pick up the same chrome. - Move the page chooser shortcode and the accessibility fixes from main into the extension, with their CSS in the theme SCSS. - Move brand images to assets/images/ and redirect the old root URLs that other sites and docs still load: /quarto.png, /favicon.png, the og:image files, and the hero and Posit logo images. Files the home page still serves from images/ stay where they are. - Add _tools/check-site-format.ts to CI and the pre-commit hook. It fails when a format: html page drops the site theme. - Dark mode borders use $gray-400, which is 3.70:1 against the page instead of 1.08:1. The main banner is brand blue in dark mode too, and the prerelease banner moves to #e60033 (white text 4.76:1). Notebook preview pages still render with the built-in html format, so they lose the Posit badge, code copy buttons and site grid widths. See quarto-dev/quarto-cli#14954 (cherry picked from commit ac878df)
cderv
force-pushed
the
sync-2222-to-prerelease
branch
from
October 15, 2026 16:55
ab0f8cd to
c6317de
Compare
Contributor
3 of 5 tasks
Merged
3 of 5 tasks
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.
Important
Backport from #2222
The automatic backport failed on a
_freezeconflict indocs/authoring/cross-references.qmd, so this is a manual cherry-pick.Prerelease already has the Typst
lof/lotparagraph from #2272 on that page, so the freeze was regenerated for the prerelease source instead of taking main's.Apart from that freeze, the diff is identical to the #2222 squash.
The prerelease banner keeps working:
_quarto-prerelease-docs.ymlstill loadsprerelease-banner.scssthrough theprerelease-docsprofile, in light and dark.Test Plan
docs/authoring/placeholder.qmdwith theprerelease-docsprofile: both the light and dark Bootstrap CSS end with#quarto-announcementat#e60033