use_civilytics_theme() ships _brand.yml wrapped in a top-level 'brand:' key that Quarto >=1.9 rejects #5
Closed
opened 2026-06-02 14:37:56 -04:00 by jared
·
3 comments
No Branch/Tag Specified
Labels
Clear labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
kodor
kodor/feature-proposal
kodor/fix
kodor/needs-review
kodor/triaged
question
wontfix
kodor
kodor/feature-proposal
kodor/fix
kodor/needs-review
kodor/triaged
Something isn't working
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Good for newcomers
Extra attention is needed
This doesn't seem right
Kodor should process this issue
Kodor has written a feature proposal
Kodor should implement a fix (assigned to Kodor)
Kodor's work or failure needs Jared's review
Kodor has already triaged this issue (skip)
Further information is requested
This will not be worked on
needs
human
Cannot move without a person -- a decision, a check an agent cannot make, something outside the repo
origin
client
Came from a client ask
origin
obligation
Created by a change elsewhere
origin
review
Came from human review
origin
roborev
Promoted from a roborev finding
type
chore
Maintenance with no behaviour change
type
debt
Owed work -- docs, tests, cleanup a change obligated
type
decision
Needs a decision before work can proceed
type
defect
Something is wrong
type
feature
New capability
ws
helpers
Analysis and workflow helpers
ws
logo
Logo and branded output composition
ws
packaging
Package infrastructure and release
ws
quarto
Quarto themes and publishing templates
ws
theme
Themes, palettes, and fonts
Assign a task to kodor
Kodor thinks this needs a feature.
Kodor should fix this
Kodor thinks the user is ready to review this.
Kodor is done with this issue.
No labels
bug
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Civilytics/civilyticsR#5
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
use_civilytics_theme()(anduse_civilytics_brand()) install a_brand.ymlwhose contents are nested under a top-level
brand:key. Quarto 1.9.x rejectsthis when it auto-discovers the project
_brand.yml, soquarto render/quarto inspectfail for every document in the project.Environment
Steps to reproduce
Rscript -e 'civilytics::use_civilytics_theme(".")'doc.qmd.quarto inspect doc.qmd(orquarto render doc.qmd).Observed
Cause
The shipped
inst/quarto/_brand.ymlis structured as:A standalone
_brand.ymlexpectsmeta/logo/color/typographyat thetop level (no
brand:wrapper) per the brand.yml spec(https://quarto.org/docs/authoring/brand.html). The
brand:wrapper is onlyvalid when embedded inside
_quarto.yml(e.g.project: { brand: ... }or aformat's
brand:field), not as the_brand.ymlfile itself. Older Quarto waslenient; 1.9.x validates strictly.
Suggested fix
Remove the top-level
brand:key ininst/quarto/_brand.ymland de-indent itschildren by two spaces so
meta/logo/color/typographyare top-level.Verified locally: unwrapping resolves the error and the brand applies across
HTML/PDF/Typst with no other changes.
Workaround
After
use_civilytics_theme(), edit the copied_brand.ymlto remove thebrand:wrapper (de-indent the remaining keys).Filed while integrating the civilytics Quarto theme into the CRDC arrests
artifact-reproduction work.
Fixed in PR #6: unwrapped
_brand.yml— removed the top-levelbrand:wrapper someta/logo/color/typographyare at the top level per the Quarto 1.9+ spec. #6kodor produced no usable change (opencode exited 0 with no file changes; attempt 1/2); will retry next run.
kodor produced no usable change (opencode exited 0 with no file changes; attempt 2/2). Handing back — reassign me to retry.