-
Notifications
You must be signed in to change notification settings - Fork 432
Expand file tree
/
Copy pathdefinitions.yml
More file actions
3503 lines (3338 loc) · 121 KB
/
definitions.yml
File metadata and controls
3503 lines (3338 loc) · 121 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
- id: date
anyOf:
- string
- object:
properties:
value: string
format: string
required: [value]
- id: date-format
schema: string
- id: math-methods
enum:
values: [plain, webtex, gladtex, mathml, mathjax, katex]
- id: pandoc-format-request-headers
arrayOf:
arrayOf:
schema: string
length: 2
- id: pandoc-format-output-file
anyOf:
- path
- enum:
values: [null]
hidden: true
- id: pandoc-format-filters
arrayOf:
anyOf:
- path
- object:
properties:
type: string
path: path
required: [path]
- object:
properties:
type: string
path: path
at:
enum:
[
pre-ast,
post-ast,
pre-quarto,
post-quarto,
pre-render,
post-render,
]
required: [path, at]
- record:
type:
enum: [citeproc]
- id: pandoc-shortcodes
arrayOf: path
- id: page-column
enum:
[
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,
]
- id: contents-auto
object:
properties:
auto:
anyOf:
- boolean
- maybeArrayOf: string
description:
short: Automatically generate sidebar contents.
long: |
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.
- id: navigation-item
anyOf:
- path
- ref: navigation-item-object
- id: navigation-item-object
object:
closed: true
properties:
aria-label:
string:
description: "Accessible label for the item."
file:
hidden: true
string:
description: |
Alias for href
href:
string:
description: |
Link to file contained with the project or external URL
icon:
string:
description:
short: Name of bootstrap icon (e.g. `github`, `bluesky`, `share`)
long: |
Name of bootstrap icon (e.g. `github`, `bluesky`, `share`)
See <https://icons.getbootstrap.com/> for a list of available icons
id:
# "core identification"
# this field is only used in typescript
schema: string
hidden: true
menu:
arrayOf:
schema:
ref: navigation-item
text:
string:
description: |
Text to display for item (defaults to the
document title if not provided)
url:
hidden: true
string:
description: |
Alias for href
rel:
string:
description: |
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.
target:
string:
description: |
Value for target attribute.
See <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-target>
for details.
- id: giscus-themes
enum:
values:
[
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,
]
- id: giscus-configuration
object:
closed: true
properties:
repo:
string:
description:
short: The Github repo that will be used to store comments.
long: |
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.
repo-id:
string:
description:
short: The Github repository identifier.
long: |
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:
string:
description:
short: The discussion category where new discussions will be created.
long: |
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.
category-id:
string:
description:
short: The Github category identifier.
long: |
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.
mapping:
schema:
anyOf:
- string
- number
completions:
- pathname
- url
- title
- og:title
description:
short: The mapping between the page and the embedded discussion.
long: |
The mapping between the page and the embedded discussion.
- `pathname`: The discussion title contains the page path
- `url`: The discussion title contains the page url
- `title`: The discussion title contains the page title
- `og:title`: The discussion title contains the `og:title` metadata value
- any other string or number: Any other strings will be passed through verbatim and a discussion title
containing that value will be used. Numbers will be treated
as a discussion number and automatic discussion creation is not supported.
reactions-enabled:
boolean:
description: Display reactions for the discussion's main post before the comments.
loading:
enum: [lazy]
description: "Specify `loading: lazy` to defer loading comments until the user scrolls near the comments container."
input-position:
enum: [top, bottom]
description: Place the comment input box above or below the comments.
theme:
anyOf:
- string
- ref: giscus-themes
- object:
closed: true
properties:
light:
anyOf:
- string
- ref: giscus-themes
description: The light theme name.
dark:
anyOf:
- string
- ref: giscus-themes
description: The dark theme name.
description:
short: The giscus theme to use when displaying comments.
long: |
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
```
language:
string:
description: The language that should be used when displaying the commenting interface.
required: [repo]
- id: external-engine
schema:
object:
closed: true
properties:
path:
path:
description: Path to the TypeScript module for the execution engine
required: [path]
description: An execution engine not pre-loaded in Quarto
- id: document-comments-configuration
anyOf:
- enum: [false]
- object:
closed: true
properties:
utterances:
object:
closed: true
properties:
repo:
string:
description: The Github repo that will be used to store comments.
label:
string:
description: The label that will be assigned to issues created by Utterances.
theme:
string:
description:
short: The Github theme that should be used for Utterances.
long: |
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`)
completions:
- github-light
- github-dark
- github-dark-orange
- icy-dark
- dark-blue
- photon-dark
- body-light
- gruvbox-dark
issue-term:
string:
description:
short: How posts should be mapped to Github issues
long: |
How posts should be mapped to Github issues
(`pathname`, `url`, `title` or `og:title`)
completions:
- pathname
- url
- title
- og:title
required: [repo]
giscus:
ref: giscus-configuration
hypothesis:
anyOf:
- boolean
- object:
closed: true
properties:
client-url:
string:
description: Override the default hypothesis client url with a custom client url.
openSidebar:
boolean:
default: false
description: Controls whether the sidebar opens automatically on startup.
showHighlights:
anyOf:
- boolean
- enum: ["always", "whenSidebarOpen", "never"]
default: "always"
description: Controls whether the in-document highlights are shown by default (`always`, `whenSidebarOpen` or `never`)
theme:
enum: ["classic", "clean"]
default: classic
description: Controls the overall look of the sidebar (`classic` or `clean`)
enableExperimentalNewNoteButton:
boolean:
default: false
description: |
Controls whether the experimental New Note button
should be shown in the notes tab in the sidebar.
usernameUrl:
schema: string
description: |
Specify a URL to direct a user to,
in a new tab. when they click on the annotation author
link in the header of an annotation.
services:
arrayOf:
object:
properties:
apiUrl:
string:
description: The base URL of the service API.
authority:
string:
description: The domain name which the annotation service is associated with.
grantToken:
string:
description: 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.
allowLeavingGroups:
boolean:
default: true
description: A flag indicating whether users should be able to leave groups of which they are a member.
enableShareLinks:
boolean:
default: true
description: A flag indicating whether annotation cards should show links that take the user to see an annotation in context.
groups:
anyOf:
- enum: ["$rpc:requestGroups"]
- arrayOf: string
description: An array of Group IDs or the literal string `$rpc:requestGroups`
icon:
string:
description: The URL to an image for the annotation service. This image will appear to the left of the name of the currently selected group.
required: [apiUrl, authority, grantToken]
description: |
Alternative annotation services which the client should
connect to instead of connecting to the public Hypothesis
service at hypothes.is.
branding:
object:
properties:
accentColor:
string:
description: Secondary color for elements of the commenting UI.
appBackgroundColor:
string:
description: The main background color of the commenting UI.
ctaBackgroundColor:
string:
description: The background color for call to action buttons.
selectionFontFamily:
string:
description: The font family for selection text in the annotation card.
annotationFontFamily:
string:
description: The font family for the actual annotation value that the user writes about the page or selection.
description: Settings to adjust the commenting sidebar's look and feel.
externalContainerSelector:
string:
description: A CSS selector specifying the containing element into which the sidebar iframe will be placed.
focus:
object:
properties:
user:
object:
properties:
username:
string:
description: The username of the user to focus on.
userid:
string:
description: The userid of the user to focus on.
displayName:
string:
description: The display name of the user to focus on.
required: [user]
description: Defines a focused filter set for the available annotations on a page.
requestConfigFromFrame:
object:
properties:
origin:
string:
description: Host url and port number of receiving iframe
ancestorLevel:
number:
description: Number of nested iframes deep the client is relative from the receiving iframe.
assetRoot:
string:
description: The root URL from which assets are loaded.
sidebarAppUrl:
string:
description: The URL for the sidebar application which displays annotations.
default: "https://hypothes.is/app.html"
- id: social-metadata
object:
closed: true
properties:
title:
string:
description:
short: "The title of the page"
long: |
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.
description:
string:
description:
short: "A short description of the content."
long: |
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:
path:
description:
short: "The path to a preview image for the content."
long: |
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`.
image-alt:
path:
description:
short: "The alt text for the preview image."
long: |
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:
description: "Image width (pixels)"
image-height:
number:
description: "Image height (pixels)"
- id: page-footer-region
anyOf:
- string
- arrayOf:
ref: navigation-item
- id: sidebar-contents
anyOf:
- string
- ref: contents-auto
- arrayOf:
anyOf:
- ref: navigation-item
- path
- object:
closed: true
properties:
section:
anyOf:
- string
- null
contents:
ref: sidebar-contents
- ref: contents-auto
- id: project-preview
object:
closed: true
properties:
port:
number:
description: Port to listen on (defaults to random value between 3000 and 8000)
host:
string:
description: Hostname to bind to (defaults to 127.0.0.1)
serve:
description: Use an exernal application to preview the project.
schema:
ref: project-serve
browser:
boolean:
description: Open a web browser to view the preview (defaults to true)
watch-inputs:
boolean:
description: Re-render input files when they change (defaults to true)
navigate:
boolean:
description: Navigate the browser automatically when outputs are updated (defaults to true)
timeout:
number:
description: Time (in seconds) after which to exit if there are no active clients
- id: project-serve
object:
closed: true
properties:
cmd:
string:
description: |
Serve project preview using the specified command.
Interpolate the `--port` into the command using `{port}`.
args:
string:
description: Additional command line arguments for preview command.
env:
object:
description: Environment variables to set for preview command.
ready:
string:
description: Regular expression for detecting when the server is ready.
required: [cmd, ready]
- id: publish
description: Sites published from project
schema:
object:
closed: true
properties:
netlify:
arrayOf:
ref: publish-record
description: "Sites published to Netlify"
- id: publish-record
object:
closed: true
properties:
id:
string:
description: "Unique identifier for site"
url:
string:
description: "Published URL for site"
- id: twitter-card-config
object:
super:
resolveRef: social-metadata
closed: true
properties:
card-style:
enum: [summary, summary_large_image]
description:
short: "Card style"
long: |
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:
description: "`@username` of the content creator (must be a quoted string)"
site:
string:
description: "`@username` of the website (must be a quoted string)"
- id: open-graph-config
object:
super:
resolveRef: social-metadata
closed: true
properties:
locale:
string:
description: "Locale of open graph metadata"
site-name:
string:
description:
short: "Name that should be displayed for the overall site"
long: |
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.
- id: page-footer
object:
properties:
left:
ref: page-footer-region
description: "Footer left content"
right:
ref: page-footer-region
description: "Footer right content"
center:
ref: page-footer-region
description: "Footer center content"
border:
anyOf:
- boolean
- string
description: "Footer border (`true`, `false`, or a border color)"
background:
schema: string
description: "Footer background color"
foreground:
schema: string
description: "Footer foreground color"
closed: true
- id: base-website
object:
closed: true
properties:
title:
string:
description: "Website title"
description:
string:
description: "Website description"
favicon:
string:
description: "The path to the favicon for this website"
site-url:
string:
description: "Base URL for published website"
site-path:
string:
description: |
Path to site (defaults to `/`). Not required if you specify `site-url`.
repo-url:
string:
description: "Base URL for website source code repository"
repo-link-target:
string:
description: "The value of the target attribute for repo links"
repo-link-rel:
string:
description: "The value of the rel attribute for repo links"
repo-subdir:
string:
description: "Subdirectory of repository containing website"
repo-branch:
string:
description: "Branch of website source code (defaults to `main`)"
issue-url:
string:
description: "URL to use for the 'report an issue' repository action."
repo-actions:
maybeArrayOf:
enum: [none, edit, source, issue]
description:
short: "Links to source repository actions"
long: "Links to source repository actions (`none` or one or more of `edit`, `source`, `issue`)"
reader-mode:
boolean:
description: |
Displays a 'reader-mode' tool which allows users to hide the sidebar and table of contents when viewing a page.
google-analytics:
anyOf:
- string
- object:
properties:
tracking-id:
schema: string
description: "The Google tracking Id or measurement Id of this website."
storage:
enum: [cookies, none]
description:
short: "Storage options for Google Analytics data"
long: |
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).
anonymize-ip:
schema: boolean
description:
short: "Anonymize the user ip address."
long: |
Anonymize the user ip address. For more about this feature, see
[IP Anonymization (or IP masking) in Google Analytics](https://support.google.com/analytics/answer/2763052?hl=en).
version:
enum: [3, 4]
description:
short: "The version number of Google Analytics to use."
long: |
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.
description: "Enable Google Analytics for this website"
plausible-analytics:
anyOf:
- string
- object:
closed: true
properties:
path:
path:
description: "Path to a file containing the Plausible Analytics script snippet"
required: [path]
description:
short: "Enable Plausible Analytics for this website by providing a script snippet or path to snippet file"
long: |
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>
announcement:
anyOf:
- string
- object:
properties:
content:
schema: string
description: "The content of the announcement"
dismissable:
schema: boolean
description: "Whether this announcement may be dismissed by the user."
icon:
schema: string
description:
short: "The icon to display in the announcement"
long: |
Name of bootstrap icon (e.g. `github`, `twitter`, `share`) for the announcement.
See <https://icons.getbootstrap.com/> for a list of available icons
position:
schema:
enum: ["above-navbar", "below-navbar"]
description:
short: "The position of the announcement."
long: |
The position of the announcement. One of `above-navbar` (default) or `below-navbar`.
type:
schema:
enum:
[
primary,
secondary,
success,
danger,
warning,
info,
light,
dark,
]
description:
short: "The type of announcement. Affects the appearance of the announcement."
long: |
The type of announcement. One of `primary`, `secondary`, `success`, `danger`, `warning`,
`info`, `light` or `dark`. Affects the appearance of the announcement.
description: Provides an announcement displayed at the top of the page.
cookie-consent:
anyOf:
- enum: [express, implied]
- boolean
- object:
properties:
type:
enum: [express, implied]
description:
short: "The type of consent that should be requested"
long: |
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.
style:
enum: [simple, headline, interstitial, standalone]
description:
short: "The style of the consent banner that is displayed"
long: |
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.
palette:
enum: [light, dark]
description: "Whether to use a dark or light appearance for the consent banner (`light` or `dark`)."
policy-url:
schema: string
description: "The url to the website’s cookie or privacy policy."
language:
schema: string
description:
short: "The language to be used when diplaying the cookie consent prompt (defaults to document language)."
long: |
The language to be used when diplaying the cookie consent prompt specified using an IETF language tag.
If not specified, the document language will be used.
prefs-text:
schema: string
description:
short: "The text to display for the cookie preferences link in the website footer."
description:
short: "Request cookie consent before enabling scripts that set cookies"
long: |
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).
search:
anyOf:
- boolean
- object:
properties:
location:
enum: [navbar, sidebar]
description: "Location for search widget (`navbar` or `sidebar`)"
type:
enum: [overlay, textbox]
description: "Type of search UI (`overlay` or `textbox`)"
limit:
schema: number
description: "Number of matches to display (defaults to 20)"
collapse-after:
schema: number
description: "Matches after which to collapse additional results"
copy-button:
schema: boolean
description: "Provide button for copying search link"
merge-navbar-crumbs:
schema: boolean
default: true
description: "When false, do not merge navbar crumbs into the crumbs in `search.json`."
keyboard-shortcut:
maybeArrayOf:
string:
description: "One or more keys that will act as a shortcut to launch search (single characters)"
show-item-context:
schema:
anyOf:
- enum: ["tree", "parent", "root"]
- boolean
description: "Whether to include search result parents when displaying items in search results (when possible)."
algolia:
object:
properties:
index-name:
schema: string
description: "The name of the index to use when performing a search"
application-id:
schema: string
description: "The unique ID used by Algolia to identify your application"
search-only-api-key:
schema: string
description: "The Search-Only API key to use to connect to Algolia"
analytics-events:
boolean:
description: "Enable tracking of Algolia analytics events"
show-logo:
boolean:
description: "Enable the display of the Algolia logo in the search results footer."
index-fields:
object:
properties:
href:
schema: string
description: "Field that contains the URL of index entries"
title:
schema: string
description: "Field that contains the title of index entries"
text:
schema: string
description: "Field that contains the text of index entries"
section:
schema: string
description: "Field that contains the section of index entries"
closed: true
params:
object:
description: "Additional parameters to pass when executing a search"
closed: true
description: "Use external Algolia search index"
closed: true
description: "Provide full text search for website"
navbar:
anyOf:
- boolean
- object:
properties:
title:
anyOf:
- string
- boolean
description: "The navbar title. Uses the project title if none is specified."
logo:
ref: logo-light-dark-specifier
description: "Specification of image that will be displayed to the left of the title."
logo-alt:
string:
description: "Alternate text for the logo image."
logo-href:
string: