-
Notifications
You must be signed in to change notification settings - Fork 432
Expand file tree
/
Copy pathproject.yml
More file actions
103 lines (97 loc) · 3.39 KB
/
project.yml
File metadata and controls
103 lines (97 loc) · 3.39 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
- name: project
description: Project configuration.
schema:
object:
closed: true
properties:
title:
schema: string
type:
string:
completions: [default, website, book, manuscript]
description: "Project type (`default`, `website`, `book`, or `manuscript`)"
render:
arrayOf: path
description: "Files to render (defaults to all files)"
execute-dir:
enum: [file, project]
description:
short: "Working directory for computations"
long: |
Control the working directory for computations.
- `file`: Use the directory of the file that is currently executing.
- `project`: Use the root directory of the project.
output-dir:
path:
description:
short: "Output directory"
long: >
The directory in which all outputs are placed. If a directory with this name
already exists, it will be deleted and replaced with a new directory.
lib-dir:
path:
description: "HTML library (JS/CSS/etc.) directory"
resources:
maybeArrayOf:
schema: path
description: "Additional file resources to be copied to output directory"
brand:
schema:
ref: brand-path-only-light-dark
description: |
Path to brand.yml or object with light and dark paths to brand.yml
preview:
description: Options for `quarto preview`
schema:
ref: project-preview
pre-render:
description: "Scripts to run as a pre-render step"
schema:
maybeArrayOf: string
post-render:
description: "Scripts to run as a post-render step"
schema:
maybeArrayOf: string
detect:
description: "Array of paths used to detect the project type within a directory"
schema:
arrayOf:
arrayOf: string
hidden: true
- name: website
description: Website configuration.
schema:
ref: base-website
- name: book
description: Book configuration.
schema:
object:
super:
- resolveRef: book-schema
- resolveRef: csl-item-shared
- name: manuscript
description: Manuscript configuration
schema:
ref: manuscript-schema
- name: type
hidden: true
schema:
enum: ["cd93424f-d5ba-4e95-91c6-1890eab59fc7"]
errorMessage: "type key not supported at project type-level. Use `project: type: ...` instead."
description: "internal-schema-hack"
# this is a hack so that we "support" an empty schema.
# The value in the enum should never appear in actual documents.
#
# In order to provide a good error message, we need an error
# to be reported with instancePath ["type"].
# This is a hacky way to do it.
#
# In general, full json schema would allow negative assertions,
# but that makes our error localization heuristics worse. So we hack.
- name: engines
schema:
arrayOf:
anyOf:
- string
- ref: external-engine
description: "List execution engines you want to give priority when determining which engine should render a notebook. If two engines have support for a notebook, the one listed earlier will be chosen. Quarto's default order is 'knitr', 'jupyter', 'markdown', 'julia'."