Repository navigation
Commit ac878df
authored
refactor: move the site theme and chrome into a local extension (#2222)
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#149541 parent 27cd5e6 commit ac878df
158 files changed
Lines changed: 1293 additions & 1208 deletions
File tree
- .claude/skills/blog-post/references
- .githooks
- .github/workflows
- _extensions
- page-chooser
- quartoorg
- assets/scripts
- filters
- scss
- partials
- shortcodes
- _freeze/docs
- authoring
- article-layout/execute-results
- cross-references/execute-results
- computations/execution-options/execute-results
- gallery/index/execute-results
- interactive/ojs
- data-sources/execute-results
- examples/noaa-co2/execute-results
- output-formats/html-code/execute-results
- _tools
- accessibility
- assets
- ejs
- images
- hero-dark
- images
- hero-light
- images
- js
- docs
- advanced
- inspect
- jupyter
- authoring
- books
- computations
- dashboards
- download
- changelog
- 1.1
- 1.2
- 1.3
- 1.4
- 1.5
- 1.6
- 1.7
- 1.8
- 1.9
- extensions/listings
- gallery
- get-started
- guide
- interactive/ojs
- examples
- manuscripts
- output-formats
- presentations
- revealjs/examples
- projects
- reference
- cells
- formats
- metadata
- projects
- tools
- websites
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
6 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
32 | 51 | | |
33 | 52 | | |
34 | 53 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
File renamed without changes.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
0 commit comments