-
Notifications
You must be signed in to change notification settings - Fork 432
Expand file tree
/
Copy pathschema-types.ts
More file actions
1675 lines (1523 loc) · 62.3 KB
/
schema-types.ts
File metadata and controls
1675 lines (1523 loc) · 62.3 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// This file is automatically generated by `quarto dev-call build-artifacts`! Do not edit.",
//
// If you find yourself trying to rebuild types and `quarto dev-call build-artifacts` won't run because
// of bad type definitions, run the following:
// $ cd $QUARTO_ROOT
// $ ./package/dist/bin/tools/deno run --importmap=./src/import_map.json --allow-all ./package/src/common/create-schema-types.ts ./src/resources
export type MaybeArrayOf<T> = T | T[];
export type JsonObject = { [key: string]: unknown };
// export type SchemaObject = { [key: string]: string };
export type Date = string | { format?: string; value: string };
export type DateFormat = string;
export type MathMethods =
| "plain"
| "webtex"
| "gladtex"
| "mathml"
| "mathjax"
| "katex";
export type PandocFormatRequestHeaders = ((string)[])[];
export type PandocFormatOutputFile = string | null;
export type PandocFormatFilters = ((string | { path: string; type?: string } | {
at:
| "pre-ast"
| "post-ast"
| "pre-quarto"
| "post-quarto"
| "pre-render"
| "post-render";
path: string;
type?: string;
} | { type: "citeproc" }))[];
export type PandocShortcodes = (string)[];
export type PageColumn =
| "body"
| "body-outset"
| "body-outset-left"
| "body-outset-right"
| "page"
| "page-left"
| "page-right"
| "page-inset"
| "page-inset-left"
| "page-inset-right"
| "screen"
| "screen-left"
| "screen-right"
| "screen-inset"
| "screen-inset-shaded"
| "screen-inset-left"
| "screen-inset-right"
| "margin";
export type ContentsAuto = {
auto?:
| boolean
| MaybeArrayOf<
string
>; /* Automatically generate sidebar contents. Pass `true` to include all documents
in the site, a directory name to include only documents in that directory,
or a glob (or list of globs) to include documents based on a pattern.
Subdirectories will create sections (use an `index.qmd` in the directory to
provide its title). Order will be alphabetical unless a numeric `order` field
is provided in document metadata. */
};
export type NavigationItem = string | NavigationItemObject;
export type NavigationItemObject = {
"aria-label"?: string /* Accessible label for the item. */;
file?: string /* Alias for href */;
href?: string /* Link to file contained with the project or external URL */;
icon?: string /* Name of bootstrap icon (e.g. `github`, `bluesky`, `share`)
See <https://icons.getbootstrap.com/> for a list of available icons */;
id?: string;
menu?: (NavigationItem)[];
rel?:
string /* Value for rel attribute. Multiple space-separated values are permitted.
See <https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel>
for a details. */;
text?: string /* Text to display for item (defaults to the
document title if not provided) */;
target?: string /* Value for target attribute.
See <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target>
for details. */;
url?: string; /* Alias for href */
};
export type GiscusThemes =
| "light"
| "light_high_contrast"
| "light_protanopia"
| "light_tritanopia"
| "dark"
| "dark_high_contrast"
| "dark_protanopia"
| "dark_tritanopia"
| "dark_dimmed"
| "transparent_dark"
| "cobalt"
| "purple_dark"
| "noborder_light"
| "noborder_dark"
| "noborder_gray"
| "preferred_color_scheme";
export type GiscusConfiguration = {
"repo-id"?: string /* The Github repository identifier.
You can quickly find this by using the configuration tool at [https://giscus.app](https://giscus.app).
If this is not provided, Quarto will attempt to discover it at render time. */;
"category-id"?: string /* The Github category identifier.
You can quickly find this by using the configuration tool at [https://giscus.app](https://giscus.app).
If this is not provided, Quarto will attempt to discover it at render time. */;
"reactions-enabled"?:
boolean /* Display reactions for the discussion's main post before the comments. */;
"input-position"?:
| "top"
| "bottom" /* Place the comment input box above or below the comments. */;
category?:
string /* The discussion category where new discussions will be created. It is recommended
to use a category with the **Announcements** type so that new discussions
can only be created by maintainers and giscus. */;
loading?: "lazy";
language?:
string /* The language that should be used when displaying the commenting interface. */;
mapping?: string | number;
repo: string /* The Github repo that will be used to store comments.
In order to work correctly, the repo must be public, with the giscus app installed, and
the discussions feature must be enabled. */;
theme?: string | GiscusThemes | {
dark?: string | GiscusThemes /* The dark theme name. */;
light?: string | GiscusThemes; /* The light theme name. */
}; /* The giscus theme to use when displaying comments. Light and dark themes are supported. If a single theme is provided by name, it will be used as light and dark theme. To use different themes, use `light` and `dark` key:
```yaml
website:
comments:
giscus:
theme:
light: light # giscus theme used for light website theme
dark: dark_dimmed # giscus theme used for dark website theme
``` */
};
export type ExternalEngine = {
path: string; /* Path to the TypeScript module for the execution engine */
}; /* An execution engine not pre-loaded in Quarto */
export type DocumentCommentsConfiguration = false | {
giscus?: GiscusConfiguration;
hypothesis?: boolean | {
"client-url"?:
string /* Override the default hypothesis client url with a custom client url. */;
assetRoot?: string /* The root URL from which assets are loaded. */;
branding?: {
accentColor?:
string /* Secondary color for elements of the commenting UI. */;
appBackgroundColor?:
string /* The main background color of the commenting UI. */;
annotationFontFamily?:
string /* The font family for the actual annotation value that the user writes about the page or selection. */;
ctaBackgroundColor?:
string /* The background color for call to action buttons. */;
selectionFontFamily?:
string; /* The font family for selection text in the annotation card. */
} /* Settings to adjust the commenting sidebar's look and feel. */;
enableExperimentalNewNoteButton?:
boolean /* Controls whether the experimental New Note button
should be shown in the notes tab in the sidebar. */;
externalContainerSelector?:
string /* A CSS selector specifying the containing element into which the sidebar iframe will be placed. */;
focus?: {
user: {
displayName?: string /* The display name of the user to focus on. */;
username?: string /* The username of the user to focus on. */;
userid?: string; /* The userid of the user to focus on. */
};
} /* Defines a focused filter set for the available annotations on a page. */;
openSidebar?:
boolean /* Controls whether the sidebar opens automatically on startup. */;
requestConfigFromFrame?: {
ancestorLevel?:
number /* Number of nested iframes deep the client is relative from the receiving iframe. */;
origin?: string; /* Host url and port number of receiving iframe */
};
showHighlights?:
| boolean
| (
| "always"
| "whenSidebarOpen"
| "never"
) /* Controls whether the in-document highlights are shown by default (`always`, `whenSidebarOpen` or `never`) */;
services?: (
{
apiUrl: string /* The base URL of the service API. */;
authority:
string /* The domain name which the annotation service is associated with. */;
allowLeavingGroups?:
boolean /* A flag indicating whether users should be able to leave groups of which they are a member. */;
enableShareLinks?:
boolean /* A flag indicating whether annotation cards should show links that take the user to see an annotation in context. */;
grantToken:
string /* An OAuth 2 grant token which the client can send to the service in order to get an access token for making authenticated requests to the service. */;
groups?:
| "$rpc:requestGroups"
| (string)[] /* An array of Group IDs or the literal string `$rpc:requestGroups` */;
icon?:
string; /* The URL to an image for the annotation service. This image will appear to the left of the name of the currently selected group. */
} /* Alternative annotation services which the client should
connect to instead of connecting to the public Hypothesis
service at hypothes.is. */
)[] /* Alternative annotation services which the client should
connect to instead of connecting to the public Hypothesis
service at hypothes.is. */;
sidebarAppUrl?:
string /* The URL for the sidebar application which displays annotations. */;
theme?:
| "classic"
| "clean" /* Controls the overall look of the sidebar (`classic` or `clean`) */;
usernameUrl?: string;
};
utterances?: {
"issue-term"?: string /* How posts should be mapped to Github issues
(`pathname`, `url`, `title` or `og:title`) */;
label?:
string /* The label that will be assigned to issues created by Utterances. */;
repo: string /* The Github repo that will be used to store comments. */;
theme?: string; /* The Github theme that should be used for Utterances
(`github-light`, `github-dark`, `github-dark-orange`,
`icy-dark`, `dark-blue`, `photon-dark`, `body-light`,
or `gruvbox-dark`) */
};
};
export type SocialMetadata = {
"image-alt"?:
string /* The alt text for the preview image. By default, Quarto will use
the `image-alt` value from the format metadata. If you provide an
image, you may also optionally provide an `image-width` and `image-height`. */;
"image-width"?: number /* Image width (pixels) */;
"image-height"?: number /* Image height (pixels) */;
description?:
string /* A short description of the content. Note that by default Quarto will
automatically use the description metadata from the page. Specify this
field if you’d like to override the description for this provider. */;
image?:
string /* The path to a preview image for the content. By default, Quarto will use
the `image` value from the format metadata. If you provide an
image, you may also optionally provide an `image-width` and `image-height`. */;
title?:
string; /* The title of the page. Note that by default Quarto will automatically
use the title metadata from the page. Specify this field if you’d like
to override the title for this provider. */
};
export type PageFooterRegion = string | (NavigationItem)[];
export type SidebarContents =
| string
| ContentsAuto
| ((NavigationItem | string | {
contents?: SidebarContents;
section?: string | null;
} | ContentsAuto))[];
export type ProjectPreview = {
"watch-inputs"?:
boolean /* Re-render input files when they change (defaults to true) */;
browser?:
boolean /* Open a web browser to view the preview (defaults to true) */;
host?: string /* Hostname to bind to (defaults to 127.0.0.1) */;
navigate?:
boolean /* Navigate the browser automatically when outputs are updated (defaults to true) */;
port?:
number /* Port to listen on (defaults to random value between 3000 and 8000) */;
serve?: ProjectServe;
timeout?:
number; /* Time (in seconds) after which to exit if there are no active clients */
};
export type ProjectServe = {
args?: string /* Additional command line arguments for preview command. */;
cmd: string /* Serve project preview using the specified command.
Interpolate the `--port` into the command using `{port}`. */;
env?: JsonObject /* Environment variables to set for preview command. */;
ready:
string; /* Regular expression for detecting when the server is ready. */
};
export type Publish = {
netlify?: (PublishRecord)[];
}; /* Sites published to Netlify */
export type PublishRecord = {
id?: string /* Unique identifier for site */;
url?: string; /* Published URL for site */
};
export type TwitterCardConfig = {
"card-style"?:
| "summary"
| "summary_large_image" /* Card style (`summary` or `summary_large_image`).
If this is not provided, the best style will automatically
selected based upon other metadata. You can learn more about Twitter Card
styles [here](https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards). */;
creator?:
string /* `@username` of the content creator (must be a quoted string) */;
site?: string; /* `@username` of the website (must be a quoted string) */
} & SocialMetadata;
export type OpenGraphConfig = {
"site-name"?:
string /* Name that should be displayed for the overall site. If not explicitly
provided in the `open-graph` metadata, Quarto will use the website or
book `title` by default. */;
locale?: string; /* Locale of open graph metadata */
} & SocialMetadata;
export type PageFooter = {
border?:
| boolean
| string /* Footer border (`true`, `false`, or a border color) */;
background?: string;
center?: PageFooterRegion;
foreground?: string;
left?: PageFooterRegion;
right?: PageFooterRegion;
};
export type BaseWebsite = {
"site-url"?: string /* Base URL for published website */;
"site-path"?:
string /* Path to site (defaults to `/`). Not required if you specify `site-url`. */;
"repo-url"?: string /* Base URL for website source code repository */;
"repo-link-target"?:
string /* The value of the target attribute for repo links */;
"repo-link-rel"?: string /* The value of the rel attribute for repo links */;
"repo-subdir"?: string /* Subdirectory of repository containing website */;
"repo-branch"?:
string /* Branch of website source code (defaults to `main`) */;
"issue-url"?:
string /* URL to use for the 'report an issue' repository action. */;
"repo-actions"?: MaybeArrayOf<
(
| "none"
| "edit"
| "source"
| "issue"
) /* Links to source repository actions (`none` or one or more of `edit`, `source`, `issue`) */
> /* Links to source repository actions (`none` or one or more of `edit`, `source`, `issue`) */;
"reader-mode"?:
boolean /* Displays a 'reader-mode' tool which allows users to hide the sidebar and table of contents when viewing a page. */;
"google-analytics"?: string | {
"tracking-id"?: string;
"anonymize-ip"?: boolean;
storage?:
| "cookies"
| "none" /* Storage option for Google Analytics data using on of these two values:
`cookies`: Use cookies to store unique user and session identification (default).
`none`: Do not use cookies to store unique user and session identification.
For more about choosing storage options see [Storage](https://quarto.org/docs/websites/website-tools.html#storage). */;
version?: 3 | 4; /* The version number of Google Analytics to use.
- `3`: Use analytics.js
- `4`: use gtag.
This is automatically detected based upon the `tracking-id`, but you may specify it. */
} /* Enable Google Analytics for this website */;
"plausible-analytics"?: string | {
path:
string; /* Path to a file containing the Plausible Analytics script snippet */
} /* Enable Plausible Analytics for this website by pasting the script snippet from your Plausible dashboard,
or by providing a path to a file containing the snippet.
Plausible is a privacy-friendly, GDPR-compliant web analytics service that does not use cookies and does not require cookie consent.
**Option 1: Inline snippet**
```yaml
website:
plausible-analytics: |
<script async src="https://plausible.io/js/script.js"></script>
```
**Option 2: File path**
```yaml
website:
plausible-analytics:
path: _plausible_snippet.html
```
To get your script snippet:
1. Log into your Plausible account at <https://plausible.io>
2. Go to your site settings
3. Copy the JavaScript snippet provided
4. Either paste it directly in your configuration or save it to a file
For more information, see <https://plausible.io/docs/plausible-script> */;
"cookie-consent"?: ("express" | "implied") | boolean | {
"policy-url"?: string;
"prefs-text"?: string;
language?: string;
palette?:
| "light"
| "dark" /* Whether to use a dark or light appearance for the consent banner (`light` or `dark`). */;
style?:
| "simple"
| "headline"
| "interstitial"
| "standalone" /* The style of the consent banner that is displayed:
- `simple` (default): A simple dialog in the lower right corner of the website.
- `headline`: A full width banner across the top of the website.
- `interstitial`: An semi-transparent overlay of the entire website.
- `standalone`: An opaque overlay of the entire website. */;
type?:
| "express"
| "implied"; /* The type of consent that should be requested, using one of these two values:
- `express` (default): This will block cookies until the user expressly agrees to allow them (or continue blocking them if the user doesn’t agree).
- `implied`: This will notify the user that the site uses cookies and permit them to change preferences, but not block cookies unless the user changes their preferences. */
} /* Quarto includes the ability to request cookie consent before enabling scripts that set cookies, using [Cookie Consent](https://www.cookieconsent.com/).
The user’s cookie preferences will automatically control Google Analytics (if enabled) and can be used to control custom scripts you add as well. For more information see [Custom Scripts and Cookie Consent](https://quarto.org/docs/websites/website-tools.html#custom-scripts-and-cookie-consent). */;
"body-header"?:
string /* Markdown to insert at the beginning of each page’s body (below the title and author block). */;
"body-footer"?: string /* Markdown to insert below each page’s body. */;
"margin-header"?: MaybeArrayOf<
string
> /* Markdown to place above margin content (text or file path) */;
"margin-footer"?: MaybeArrayOf<
string
> /* Markdown to place below margin content (text or file path) */;
"page-navigation"?:
boolean /* Provide next and previous article links in footer */;
"back-to-top-navigation"?:
boolean /* Provide a 'back to top' navigation button */;
"bread-crumbs"?:
boolean /* Whether to show navigation breadcrumbs for pages more than 1 level deep */;
"page-footer"?: string | PageFooter /* Shared page footer */;
"image-alt"?:
string /* Default site thumbnail image alt text for `twitter` /`open-graph` */;
"open-graph"?: boolean | OpenGraphConfig /* Publish open graph metadata */;
"twitter-card"?:
| boolean
| TwitterCardConfig /* Publish twitter card metadata */;
"other-links"?: OtherLinks;
"code-links"?: boolean | CodeLinksSchema;
"draft-mode"?: "visible" | "unlinked" | "gone";
announcement?: string | {
content?: string;
dismissable?: boolean;
icon?: string;
position?: "above-navbar" | "below-navbar";
type?:
| "primary"
| "secondary"
| "success"
| "danger"
| "warning"
| "info"
| "light"
| "dark";
} /* Provides an announcement displayed at the top of the page. */;
comments?: DocumentCommentsConfiguration;
description?: string /* Website description */;
drafts?: MaybeArrayOf<string>;
favicon?: string /* The path to the favicon for this website */;
image?: string /* Default site thumbnail image for `twitter` /`open-graph` */;
navbar?: boolean | {
"logo-alt"?: string /* Alternate text for the logo image. */;
"logo-href"?:
string /* Target href from navbar logo / title. By default, the logo and title link to the root page of the site (/index.html). */;
"collapse-below"?:
| "sm"
| "md"
| "lg"
| "xl"
| "xxl" /* The responsive breakpoint below which the navbar will collapse into a menu (`sm`, `md`, `lg` (default), `xl`, `xxl`). */;
"toggle-position"?: "left" | "right";
"tools-collapse"?:
boolean /* Collapse tools into the navbar menu when the display becomes narrow. */;
background?:
string /* The navbar's background color (named or hex color). */;
collapse?:
boolean /* Collapse the navbar into a menu when the display becomes narrow. */;
foreground?:
string /* The navbar's foreground color (named or hex color). */;
logo?: LogoLightDarkSpecifier;
left?:
(NavigationItem)[] /* List of items for the left side of the navbar. */;
pinned?: boolean /* Always show the navbar (keeping it pinned). */;
right?:
(NavigationItem)[] /* List of items for the right side of the navbar. */;
search?: boolean /* Include a search box in the navbar. */;
title?:
| string
| boolean; /* The navbar title. Uses the project title if none is specified. */
} /* Top navigation options */;
search?: boolean | {
"collapse-after"?: number;
"copy-button"?: boolean;
"merge-navbar-crumbs"?: boolean;
"keyboard-shortcut"?: MaybeArrayOf<
string /* One or more keys that will act as a shortcut to launch search (single characters) */
>;
"show-item-context"?: ("tree" | "parent" | "root") | boolean;
algolia?: {
"index-name"?: string;
"application-id"?: string;
"search-only-api-key"?: string;
"analytics-events"?:
boolean /* Enable tracking of Algolia analytics events */;
"show-logo"?:
boolean /* Enable the display of the Algolia logo in the search results footer. */;
"index-fields"?: {
href?: string;
section?: string;
title?: string;
text?: string;
};
params?:
JsonObject; /* Additional parameters to pass when executing a search */
} /* Use external Algolia search index */;
location?:
| "navbar"
| "sidebar" /* Location for search widget (`navbar` or `sidebar`) */;
limit?: number;
type?:
| "overlay"
| "textbox"; /* Type of search UI (`overlay` or `textbox`) */
} /* Provide full text search for website */;
sidebar?:
| boolean
| MaybeArrayOf<
{
"logo-alt"?: string /* Alternate text for the logo image. */;
"logo-href"?:
string /* Target href from navbar logo / title. By default, the logo and title link to the root page of the site (/index.html). */;
"collapse-level"?:
number /* The depth at which the sidebar contents should be collapsed by default. */;
alignment?:
| "left"
| "right"
| "center" /* Alignment of the items within the sidebar (`left`, `right`, or `center`) */;
background?: string;
border?:
boolean /* Whether to show a border on the sidebar (defaults to true for 'docked' sidebars) */;
contents?: SidebarContents;
foreground?: string;
footer?: MaybeArrayOf<
string
> /* Markdown to place below sidebar content (text or file path) */;
header?: MaybeArrayOf<
string
> /* Markdown to place above sidebar content (text or file path) */;
id?: string /* The identifier for this sidebar. */;
logo?: LogoLightDarkSpecifier;
pinned?:
boolean /* When collapsed, pin the collapsed sidebar to the top of the page. */;
search?: boolean /* Include a search control in the sidebar. */;
style?:
| "docked"
| "floating" /* The style of sidebar (`docked` or `floating`). */;
title?:
| string
| boolean /* The sidebar title. Uses the project title if none is specified. */;
tools?: (NavigationItemObject)[]; /* List of sidebar tools */
}
> /* Side navigation options */;
title?: string; /* Website title */
};
export type BookSchema = {
"date-format"?: string /* Format string for dates in the book */;
"output-file"?:
string /* Base name for single-file output (e.g. PDF, ePub, docx) */;
"cover-image"?: string /* Cover image (used in HTML and ePub formats) */;
"cover-image-alt"?:
string /* Alternative text for cover image (used in HTML format) */;
author?: MaybeArrayOf<
(string | JsonObject) /* Author or authors of the book */
> /* Author or authors of the book */;
abstract?: string /* Book abstract */;
appendices?: ChapterList;
chapters?: ChapterList;
date?: string /* Book publication date */;
description?: string /* Description metadata for HTML version of book */;
downloads?: MaybeArrayOf<
(
| "pdf"
| "epub"
| "docx"
) /* Download buttons for other formats to include on navbar or sidebar
(one or more of `pdf`, `epub`, and `docx`) */
> /* Download buttons for other formats to include on navbar or sidebar
(one or more of `pdf`, `epub`, and `docx`) */;
doi?: string /* The Digital Object Identifier for this book. */;
references?: string /* Book references file */;
subtitle?: string /* Book subtitle */;
sharing?: MaybeArrayOf<
(
| "twitter"
| "facebook"
| "linkedin"
) /* Sharing buttons to include on navbar or sidebar
(one or more of `twitter`, `facebook`, `linkedin`) */
> /* Sharing buttons to include on navbar or sidebar
(one or more of `twitter`, `facebook`, `linkedin`) */;
title?: string /* Book title */;
tools?: (NavigationItem)[]; /* Custom tools for navbar or sidebar */
} & BaseWebsite;
export type ChapterItem = NavigationItem | {
chapters?: (NavigationItem)[] /* Path to chapter input file */;
part: string; /* Part title or path to input file */
};
export type ChapterList = (ChapterItem)[];
export type OtherLinks = ({
href: string /* The href for the link. */;
icon?: string /* The bootstrap icon name for the link. */;
rel?: string /* The rel attribute value for the link. */;
text: string /* The text for the link. */;
target?: string; /* The target attribute value for the link. */
})[];
export type CrossrefLabelsSchema = string;
export type EpubContributor =
| string
| MaybeArrayOf<
{
"file-as"?:
string /* An alternate version of the creator or contributor text used for alphabatizing. */;
role?: string /* The role of this creator or contributor using
[MARC relators](https://loc.gov/marc/relators/relaterm.html). Human readable
translations to commonly used relators (e.g. 'author', 'editor') will
attempt to be automatically translated. */;
text?:
string; /* The text describing the creator or contributor (for example, creator name). */
}
>;
export type FormatLanguage = {
"toc-title-document"?: string;
"toc-title-website"?: string;
"related-formats-title"?: string;
"related-notebooks-title"?: string;
"callout-tip-title"?: string;
"callout-note-title"?: string;
"callout-warning-title"?: string;
"callout-important-title"?: string;
"callout-caution-title"?: string;
"section-title-abstract"?: string;
"section-title-footnotes"?: string;
"section-title-appendices"?: string;
"code-summary"?: string;
"code-tools-menu-caption"?: string;
"code-tools-show-all-code"?: string;
"code-tools-hide-all-code"?: string;
"code-tools-show-all-sections"?: string;
"code-tools-hide-all-sections"?: string;
"code-tools-view-source"?: string;
"code-tools-source-code"?: string;
"search-no-results-text"?: string;
"copy-button-tooltip"?: string;
"copy-button-tooltip-success"?: string;
"repo-action-links-edit"?: string;
"repo-action-links-source"?: string;
"repo-action-links-issue"?: string;
"search-matching-documents-text"?: string;
"search-copy-link-title"?: string;
"search-hide-matches-text"?: string;
"search-more-match-text"?: string;
"search-more-matches-text"?: string;
"search-clear-button-title"?: string;
"search-text-placeholder"?: string;
"search-detached-cancel-button-title"?: string;
"search-submit-button-title"?: string;
"crossref-fig-title"?: string;
"crossref-tbl-title"?: string;
"crossref-lst-title"?: string;
"crossref-thm-title"?: string;
"crossref-lem-title"?: string;
"crossref-cor-title"?: string;
"crossref-prp-title"?: string;
"crossref-cnj-title"?: string;
"crossref-def-title"?: string;
"crossref-exm-title"?: string;
"crossref-exr-title"?: string;
"crossref-fig-prefix"?: string;
"crossref-tbl-prefix"?: string;
"crossref-lst-prefix"?: string;
"crossref-ch-prefix"?: string;
"crossref-apx-prefix"?: string;
"crossref-sec-prefix"?: string;
"crossref-eq-prefix"?: string;
"crossref-thm-prefix"?: string;
"crossref-lem-prefix"?: string;
"crossref-cor-prefix"?: string;
"crossref-prp-prefix"?: string;
"crossref-cnj-prefix"?: string;
"crossref-def-prefix"?: string;
"crossref-exm-prefix"?: string;
"crossref-exr-prefix"?: string;
"crossref-lof-title"?: string;
"crossref-lot-title"?: string;
"crossref-lol-title"?: string;
};
export type WebsiteAbout = {
"image-alt"?: string /* The alt text for the main image on the about page. */;
"image-title"?: string /* The title for the main image on the about page. */;
"image-width"?: string /* A valid CSS width for the about page image. */;
"image-shape"?:
| "rectangle"
| "round"
| "rounded" /* The shape of the image on the about page.
- `rectangle`
- `round`
- `rounded` */;
id?:
string /* The target id of this about page. When the about page is rendered, it will
place read the contents of a `div` with this id into the about template that you
have selected (and replace the contents with the rendered about content).
If no such `div` is defined on the page, a `div` with this id will be created
and appended to the end of the page. */;
image?:
string /* The path to the main image on the about page. If not specified,
the `image` provided for the document itself will be used. */;
links?: (NavigationItem)[];
template:
| ("jolla" | "trestles" | "solana" | "marquee" | "broadside")
| string; /* The template to use to layout this about page. Choose from:
- `jolla`
- `trestles`
- `solana`
- `marquee`
- `broadside` */
};
export type WebsiteListing = {
"max-items"?:
number /* The maximum number of items to include in this listing. */;
"page-size"?: number /* The number of items to display on a page. */;
"sort-ui"?:
| boolean
| (string)[] /* Shows or hides the sorting control for the listing. To control the
fields that will be displayed in the sorting control, provide a list
of field names. */;
"filter-ui"?:
| boolean
| (string)[] /* Shows or hides the filtering control for the listing. To control the
fields that will be used to filter the listing, provide a list
of field names. By default all fields of the listing will be used
when filtering. */;
"date-format"?:
string /* The date format to use when displaying dates (e.g. d-M-yyy).
Learn more about supported date formatting values [here](https://quarto.org/docs/reference/dates.html). */;
"max-description-length"?:
number /* The maximum length (in characters) of the description displayed in the listing.
Defaults to 175. */;
"image-placeholder"?:
string /* The default image to use if an item in the listing doesn't have an image. */;
"image-lazy-loading"?:
boolean /* If false, images in the listing will be loaded immediately. If true, images will be loaded as they come into view. */;
"image-align"?:
| "left"
| "right" /* In `default` type listings, whether to place the image on the right or left side of the post content (`left` or `right`). */;
"image-height"?:
string /* The height of the image being displayed (a CSS height string).
The width is automatically determined and the image will fill the rectangle without scaling (cropped to fill). */;
"grid-columns"?:
number /* In grid type listings, the number of columns in the grid display.
Defaults to 3. */;
"grid-item-border"?:
boolean /* In grid type listings, whether to display a border around the item card. Defaults to `true`. */;
"grid-item-align"?:
| "left"
| "right"
| "center" /* In grid type listings, the alignment of the content within the card (`left` (default), `right`, or `center`). */;
"table-striped"?:
boolean /* In table type listings, display the table rows with alternating background colors.
Defaults to `false`. */;
"table-hover"?:
boolean /* In table type listings, highlight rows of the table when the user hovers the mouse over them.
Defaults to false. */;
"template-params"?: JsonObject;
"field-display-names"?:
JsonObject /* A mapping that provides display names for specific fields. For example, to display the title column as ‘Report’ in a table listing you would write:
```yaml
listing:
field-display-names:
title: "Report"
``` */;
"field-types"?:
JsonObject /* Provides the date type for the field of a listing item. Unknown fields are treated
as strings unless a type is provided. Valid types are `date`, `number`. */;
"field-links"?:
(string)[] /* The list of fields to display as hyperlinks to the source document
when the listing type is a table. By default, only the `title` or
`filename` is displayed as a link. */;
"field-required"?:
(string)[] /* Fields that items in this listing must have populated.
If a listing is rendered and one more items in this listing
is missing a required field, an error will occur and the render will. */;
contents?: MaybeArrayOf<
(string | WebsiteListingContentsObject)
> /* The files or path globs of Quarto documents or YAML files that should be included in the listing. */;
categories?:
| boolean
| (
| "numbered"
| "unnumbered"
| "cloud"
) /* Display item categories from this listing in the margin of the page.
- `numbered`: Category list with number of items
- `unnumbered`: Category list
- `cloud`: Word cloud style categories */;
exclude?: MaybeArrayOf<
JsonObject
> /* Items with matching field values will be excluded from the listing. */;
feed?: boolean | {
"xml-stylesheet"?:
string /* The path to an XML stylesheet (XSL file) used to style the RSS feed. */;
categories?: MaybeArrayOf<
string /* A list of categories for which to create separate RSS feeds containing only posts with that category */
>;
description?:
string /* The description of this feed. If not specified, the description for the page the
listing appears on will be used, otherwise the description
of the site will be used if specified in the Quarto project. */;
items?:
number /* The number of items to include in your feed. Defaults to 20. */;
image?:
string /* The path to an image for this feed. If not specified, the image for the page the listing
appears on will be used, otherwise an image will be used if specified for the site
in the Quarto project. */;
language?: string /* The language of the feed. Omitted if not specified.
See [https://www.rssboard.org/rss-language-codes](https://www.rssboard.org/rss-language-codes)
for a list of valid language codes. */;
type?:
| "full"
| "partial"
| "metadata" /* Whether to include full or partial content in the feed.
- `full` (default): Include the complete content of the document in the feed.
- `partial`: Include only the first paragraph of the document in the feed.
- `metadata`: Use only the title, description, and other document metadata in the feed. */;
title?:
string; /* The title for this feed. Defaults to the site title provided the Quarto project. */
} /* Enables an RSS feed for the listing. */;
fields?: (string)[] /* The list of fields to include in this listing. */;
id?: string /* The id of this listing. When the listing is rendered, it will
place the contents into a `div` with this id. If no such `div` is defined on the
page, a `div` with this id will be created and appended to the end of the page.
If no `id` is provided for a listing, Quarto will synthesize one when rendering the page. */;
include?: MaybeArrayOf<
JsonObject
> /* Items with matching field values will be included in the listing. */;
sort?:
| boolean
| MaybeArrayOf<
string
> /* Sort items in the listing by these fields. The sort key is made up of a
field name followed by a direction `asc` or `desc`.
For example:
`date asc`
Use `sort:false` to use the unsorted original order of items. */;
type?:
| "default"
| "table"
| "grid"
| "custom" /* The type of listing to create. Choose one of:
- `default`: A blog style list of items
- `table`: A table of items
- `grid`: A grid of item cards
- `custom`: A custom template, provided by the `template` field */;
template?: string; /* The path to a custom listing template. */
};
export type WebsiteListingContentsObject = {
author?: MaybeArrayOf<string>;
date?: string;
subtitle?: string;
title?: string;
};
export type CslDate = string | MaybeArrayOf<number> | {
day?: number /* The day */;
month?: number /* The month */;
year?: number; /* The year */
};
export type CslPerson =
| MaybeArrayOf<string>
| MaybeArrayOf<
{
"family-name"?: string /* The family name. */;
"given-name"?: string; /* The given name. */
}
>;
export type CslNumber = number | string;
export type CslItemShared = {
"abstract-url"?: string /* A url to the abstract for this item. */;
"archive-collection"?:
string /* Collection the item is part of within an archive. */;
"archive-location"?:
string /* Storage location within an archive (e.g. a box and folder number). */;
"archive-place"?: string /* Geographic location of the archive. */;
"available-date"?: CslDate;
"call-number"?: string /* Call number (to locate the item in a library). */;
"chapter-number"?: CslNumber;
"citation-key"?:
string /* Identifier of the item in the input data file (analogous to BiTeX entrykey);
Use this variable to facilitate conversion between word-processor and plain-text writing systems;
For an identifer intended as formatted output label for a citation
(e.g. “Ferr78”), use `citation-label` instead */;
"citation-label"?:
string /* Label identifying the item in in-text citations of label styles (e.g. "Ferr78");
May be assigned by the CSL processor based on item metadata; For the identifier of the item
in the input data file, use `citation-key` instead */;
"citation-number"?: CslNumber;
"collection-editor"?: CslPerson;
"collection-number"?: CslNumber;
"collection-title"?:
string /* Title of the collection holding the item (e.g. the series title for a book; the lecture series title for a presentation). */;
"container-author"?: CslPerson;
"container-title"?:
string /* Title of the container holding the item (e.g. the book title for a book chapter,
the journal title for a journal article; the album title for a recording;
the session title for multi-part presentation at a conference) */;
"container-title-short"?:
string /* Short/abbreviated form of container-title; */;
"editorial-director"?: CslPerson;
"editor-translator"?: CslPerson;
"event-date"?: CslDate;
"event-title"?:
string /* Name of the event related to the item (e.g. the conference name when citing a conference paper; the meeting where presentation was made). */;
"event-place"?:
string /* Geographic location of the event related to the item (e.g. "Amsterdam, The Netherlands"). */;
"executive-producer"?: CslPerson;
"first-reference-note-number"?: CslNumber;
"fulltext-url"?: string /* A url to the full text for this item. */;
"number-of-pages"?: CslNumber;
"number-of-volumes"?: CslNumber;
"original-author"?: CslPerson;
"original-date"?: CslDate;
"original-publisher"?:
string /* Original publisher, for items that have been republished by a different publisher. */;
"original-publisher-place"?:
string /* Geographic location of the original publisher (e.g. "London, UK"). */;
"original-title"?:
string /* Title of the original version (e.g. "Война и мир", the untranslated Russian title of "War and Peace"). */;
"page-first"?: CslNumber;
"page-last"?: CslNumber;
"part-number"?: CslNumber;
"part-title"?:
string /* Title of the specific part of an item being cited. */;
"pdf-url"?: string /* A url to the pdf for this item. */;
"printing-number"?: CslNumber;
"public-url"?: string /* A public url for this item. */;