Skip to content

Commit 5d7d18a

Browse files
tighter schema for project brand
we don't allow brand metadata in projects this only fixes project in _quarto.yml not root
1 parent 3b54d83 commit 5d7d18a

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/resources/schema/definitions.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3343,6 +3343,17 @@
33433343
defaults:
33443344
ref: brand-defaults
33453345

3346+
- id: brand-path-only-light-dark
3347+
anyOf:
3348+
- string
3349+
- object:
3350+
closed: true
3351+
properties:
3352+
light: string
3353+
dark: string
3354+
description: |
3355+
A path to a brand.yml file, or an object with light and dark paths to brand.yml
3356+
33463357
- id: brand-path-bool-light-dark
33473358
anyOf:
33483359
- string # a file path

src/resources/schema/project.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@
3434
description: "Additional file resources to be copied to output directory"
3535
brand:
3636
schema:
37-
ref: brand-path-bool-light-dark
37+
ref: brand-path-only-light-dark
3838
description: |
39-
Branding information to use for this document. If a string, the path to a brand file.
40-
If false, don't use branding on this document. If an object, an inline brand
41-
definition, or an object with light and dark brand paths or definitions.
39+
Path to brand.yml or object with light and dark paths to brand.yml
4240
preview:
4341
description: Options for `quarto preview`
4442
schema:

0 commit comments

Comments
 (0)