返回 slidev
headmatter.json
根目录 / packages / vscode / schema / headmatter.json
1 {
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "$ref": "#/definitions/Headmatter",
4 "definitions": {
5 "Headmatter": {
6 "type": "object",
7 "properties": {
8 "layout": {
9 "anyOf": [
10 {
11 "$ref": "#/definitions/BuiltinLayouts"
12 },
13 {
14 "type": "string"
15 }
16 ],
17 "description": "Slide layout to use\n\nDefault to 'cover' for the first slide, 'default' for the rest",
18 "markdownDescription": "Slide layout to use\n\nDefault to 'cover' for the first slide, 'default' for the rest"
19 },
20 "class": {
21 "anyOf": [
22 {
23 "type": "string"
24 },
25 {
26 "type": "array",
27 "items": {
28 "type": "string"
29 }
30 },
31 {
32 "type": "object",
33 "additionalProperties": {}
34 }
35 ],
36 "description": "Custom class added to the slide root element",
37 "markdownDescription": "Custom class added to the slide root element"
38 },
39 "clicks": {
40 "type": "number",
41 "description": "Manually specified the total clicks needed to this slide\n\nWhen not specified, the clicks will be calculated by the usage of v-clicks\n\nSee https://sli.dev/guide/animations",
42 "markdownDescription": "Manually specified the total clicks needed to this slide\n\nWhen not specified, the clicks will be calculated by the usage of v-clicks\n\nSee https://sli.dev/guide/animations"
43 },
44 "clicksStart": {
45 "type": "number",
46 "description": "Manually specified the total clicks needed to this slide to start",
47 "markdownDescription": "Manually specified the total clicks needed to this slide to start",
48 "default": 0
49 },
50 "preload": {
51 "type": "boolean",
52 "description": "Preload the slide when the previous slide is active",
53 "markdownDescription": "Preload the slide when the previous slide is active",
54 "default": true
55 },
56 "hide": {
57 "type": "boolean",
58 "description": "Completely hide and disable the slide",
59 "markdownDescription": "Completely hide and disable the slide"
60 },
61 "disabled": {
62 "type": "boolean",
63 "description": "Same as `hide`, completely hide and disable the slide",
64 "markdownDescription": "Same as `hide`, completely hide and disable the slide"
65 },
66 "hideInToc": {
67 "type": "boolean",
68 "description": "Hide the slide for the `<Toc>` components\n\nSee https://sli.dev/builtin/components#toc",
69 "markdownDescription": "Hide the slide for the `<Toc>` components\n\nSee https://sli.dev/builtin/components#toc"
70 },
71 "level": {
72 "type": "number",
73 "description": "Override the title level for the `<TitleRenderer>` and `<Toc>` components Only if `title` has also been declared",
74 "markdownDescription": "Override the title level for the `<TitleRenderer>` and `<Toc>` components\nOnly if `title` has also been declared"
75 },
76 "routeAlias": {
77 "type": "string",
78 "description": "Create a route alias that can be used in the URL or with the `<Link>` component",
79 "markdownDescription": "Create a route alias that can be used in the URL or with the `<Link>` component"
80 },
81 "zoom": {
82 "type": "number",
83 "description": "Custom zoom level for the slide",
84 "markdownDescription": "Custom zoom level for the slide",
85 "default": 1
86 },
87 "clickAnimation": {
88 "type": "string",
89 "description": "Default click animation for the slides",
90 "markdownDescription": "Default click animation for the slides"
91 },
92 "dragPos": {
93 "type": "object",
94 "additionalProperties": {
95 "type": "string"
96 },
97 "description": "Store the positions of draggable elements Normally you don't need to set this manually\n\nSee https://sli.dev/features/draggable",
98 "markdownDescription": "Store the positions of draggable elements\nNormally you don't need to set this manually\n\nSee https://sli.dev/features/draggable"
99 },
100 "src": {
101 "type": "string",
102 "description": "Includes a markdown file\n\nSee https://sli.dev/guide/syntax.html#importing-slides",
103 "markdownDescription": "Includes a markdown file\n\nSee https://sli.dev/guide/syntax.html#importing-slides"
104 },
105 "transition": {
106 "anyOf": [
107 {
108 "$ref": "#/definitions/BuiltinSlideTransition"
109 },
110 {
111 "type": "string"
112 },
113 {
114 "$ref": "#/definitions/TransitionGroupProps"
115 },
116 {
117 "type": "null"
118 }
119 ],
120 "description": "Page transition, powered by Vue's `<TransitionGroup/>`\n\nBuilt-in transitions:\n- fade\n- fade-out\n- slide-left\n- slide-right\n- slide-up\n- slide-down\n- view-transition\n\nSee https://sli.dev/guide/animations.html#pages-transitions\n\nSee https://vuejs.org/guide/built-ins/transition.html",
121 "markdownDescription": "Page transition, powered by Vue's `<TransitionGroup/>`\n\nBuilt-in transitions:\n- fade\n- fade-out\n- slide-left\n- slide-right\n- slide-up\n- slide-down\n- view-transition\n\nSee https://sli.dev/guide/animations.html#pages-transitions\n\nSee https://vuejs.org/guide/built-ins/transition.html"
122 },
123 "title": {
124 "type": "string",
125 "description": "Title of the slides",
126 "markdownDescription": "Title of the slides"
127 },
128 "titleTemplate": {
129 "type": "string",
130 "description": "String template to compose title",
131 "markdownDescription": "String template to compose title",
132 "default": "%s - Slidev"
133 },
134 "theme": {
135 "type": "string",
136 "description": "Theme to use for the slides\n\nSee https://sli.dev/guide/theme-addon#use-theme",
137 "markdownDescription": "Theme to use for the slides\n\nSee https://sli.dev/guide/theme-addon#use-theme",
138 "default": "default"
139 },
140 "addons": {
141 "type": "array",
142 "items": {
143 "type": "string"
144 },
145 "description": "List of Slidev addons",
146 "markdownDescription": "List of Slidev addons",
147 "default": []
148 },
149 "remoteAssets": {
150 "anyOf": [
151 {
152 "type": "boolean"
153 },
154 {
155 "type": "string",
156 "const": "dev"
157 },
158 {
159 "type": "string",
160 "const": "build"
161 }
162 ],
163 "description": "Download remote assets in local using vite-plugin-remote-assets",
164 "markdownDescription": "Download remote assets in local using vite-plugin-remote-assets",
165 "default": false
166 },
167 "download": {
168 "type": [
169 "boolean",
170 "string"
171 ],
172 "description": "Show a download button in the SPA build, could also be a link to custom pdf",
173 "markdownDescription": "Show a download button in the SPA build,\ncould also be a link to custom pdf",
174 "default": false
175 },
176 "codeCopy": {
177 "type": "boolean",
178 "description": "Show a copy button in code blocks",
179 "markdownDescription": "Show a copy button in code blocks",
180 "default": true
181 },
182 "magicMoveCopy": {
183 "anyOf": [
184 {
185 "type": "boolean"
186 },
187 {
188 "type": "string",
189 "const": "final"
190 },
191 {
192 "type": "string",
193 "const": "always"
194 }
195 ],
196 "description": "Show copy button in magic move code blocks\n\n`'final'` for only show copy button on the final step `'always'` or `true` for show copy button on all steps",
197 "markdownDescription": "Show copy button in magic move code blocks\n\n`'final'` for only show copy button on the final step\n`'always'` or `true` for show copy button on all steps",
198 "default": true
199 },
200 "author": {
201 "type": "string",
202 "description": "The author of the slides",
203 "markdownDescription": "The author of the slides"
204 },
205 "info": {
206 "type": [
207 "string",
208 "boolean"
209 ],
210 "description": "Information shows on the built SPA Can be a markdown string",
211 "markdownDescription": "Information shows on the built SPA\nCan be a markdown string",
212 "default": false
213 },
214 "highlighter": {
215 "type": "string",
216 "const": "shiki",
217 "description": "Prefer highlighter\n\nSee https://sli.dev/custom/config-highlighter.html",
218 "markdownDescription": "Prefer highlighter\n\nSee https://sli.dev/custom/config-highlighter.html",
219 "default": "shiki"
220 },
221 "twoslash": {
222 "anyOf": [
223 {
224 "type": "boolean"
225 },
226 {
227 "type": "string",
228 "const": "dev"
229 },
230 {
231 "type": "string",
232 "const": "build"
233 }
234 ],
235 "description": "Enable Twoslash",
236 "markdownDescription": "Enable Twoslash",
237 "default": true
238 },
239 "lineNumbers": {
240 "type": "boolean",
241 "description": "Show line numbers in code blocks",
242 "markdownDescription": "Show line numbers in code blocks",
243 "default": false
244 },
245 "colorSchema": {
246 "type": "string",
247 "enum": [
248 "dark",
249 "light",
250 "all",
251 "auto",
252 "light dark",
253 "dark light"
254 ],
255 "description": "Color scheme for slides. Use `auto` to follow the system preference, `light` or `dark` to force a scheme, or `light dark` / `dark light` to choose a default while allowing users to switch.",
256 "markdownDescription": "Color scheme for slides. Use `auto` to follow the system preference,\n`light` or `dark` to force a scheme, or `light dark` / `dark light`\nto choose a default while allowing users to switch.",
257 "default": "auto"
258 },
259 "routerMode": {
260 "type": "string",
261 "enum": [
262 "hash",
263 "history",
264 "memory"
265 ],
266 "description": "Router mode for vue-router\n\n- `history`: the slide number is reflected in the URL path\n- `hash`: hash-based routing, for static hosts or subdirectory deploys\n- `memory`: routing is kept in memory, so the URL never reflects the slide number and cannot be used to navigate — useful for kiosk or externally driven \"follower\" decks (deep-links, `/presenter`, `/overview` and export-by-URL are unavailable)",
267 "markdownDescription": "Router mode for vue-router\n\n- `history`: the slide number is reflected in the URL path\n- `hash`: hash-based routing, for static hosts or subdirectory deploys\n- `memory`: routing is kept in memory, so the URL never reflects the slide number and cannot be used to navigate — useful for kiosk or externally driven \"follower\" decks (deep-links, `/presenter`, `/overview` and export-by-URL are unavailable)",
268 "default": "history"
269 },
270 "advanceDebounce": {
271 "type": "number",
272 "description": "Ignore repeated forward navigation within this many milliseconds. The first advance is immediate. Set to 0 to disable.",
273 "markdownDescription": "Ignore repeated forward navigation within this many milliseconds.\nThe first advance is immediate. Set to 0 to disable.",
274 "default": 0
275 },
276 "aspectRatio": {
277 "type": [
278 "number",
279 "string"
280 ],
281 "description": "Aspect ratio for slides should be like `16/9` or `1:1`",
282 "markdownDescription": "Aspect ratio for slides\nshould be like `16/9` or `1:1`",
283 "default": "16/9"
284 },
285 "canvasWidth": {
286 "type": "number",
287 "description": "The actual width for slides canvas. unit in px.",
288 "markdownDescription": "The actual width for slides canvas.\nunit in px.",
289 "default": "980"
290 },
291 "selectable": {
292 "type": "boolean",
293 "description": "Controls whether texts in slides are selectable",
294 "markdownDescription": "Controls whether texts in slides are selectable",
295 "default": true
296 },
297 "themeConfig": {
298 "$ref": "#/definitions/SlidevThemeConfig",
299 "description": "Configure for themes, will inject intro root styles as `--slidev-theme-x` for attribute `x`\n\nThis allows themes to have customization options in frontmatter Refer to themes' document for options avaliable",
300 "markdownDescription": "Configure for themes, will inject intro root styles as\n`--slidev-theme-x` for attribute `x`\n\nThis allows themes to have customization options in frontmatter\nRefer to themes' document for options avaliable",
301 "default": {}
302 },
303 "fonts": {
304 "$ref": "#/definitions/FontOptions",
305 "description": "Configure fonts for the slides and app",
306 "markdownDescription": "Configure fonts for the slides and app",
307 "default": {}
308 },
309 "favicon": {
310 "type": "string",
311 "description": "Configure the icon for app",
312 "markdownDescription": "Configure the icon for app",
313 "default": "https://cdn.jsdelivr.net/gh/slidevjs/slidev/assets/favicon.png"
314 },
315 "drawings": {
316 "$ref": "#/definitions/DrawingsOptions",
317 "description": "Options for drawings",
318 "markdownDescription": "Options for drawings",
319 "default": {}
320 },
321 "plantUmlServer": {
322 "type": "string",
323 "description": "URL of PlantUML server used to render diagrams",
324 "markdownDescription": "URL of PlantUML server used to render diagrams",
325 "default": "https://www.plantuml.com/plantuml"
326 },
327 "record": {
328 "anyOf": [
329 {
330 "type": "boolean"
331 },
332 {
333 "type": "string",
334 "const": "dev"
335 },
336 {
337 "type": "string",
338 "const": "build"
339 }
340 ],
341 "description": "Enable slides recording",
342 "markdownDescription": "Enable slides recording",
343 "default": "dev"
344 },
345 "remote": {
346 "type": [
347 "string",
348 "boolean"
349 ],
350 "description": "Expose the server to inbound requests (listen to `0.0.0.0`)\n\nPass a string to set the password for accessing presenter mode.",
351 "markdownDescription": "Expose the server to inbound requests (listen to `0.0.0.0`)\n\nPass a string to set the password for accessing presenter mode.",
352 "default": false
353 },
354 "css": {
355 "type": "string",
356 "const": "unocss",
357 "description": "Engine for Atomic CSS\n\nSee https://unocss.dev/",
358 "markdownDescription": "Engine for Atomic CSS\n\nSee https://unocss.dev/",
359 "deprecated": true,
360 "default": "unocss"
361 },
362 "presenter": {
363 "anyOf": [
364 {
365 "type": "boolean"
366 },
367 {
368 "type": "string",
369 "const": "dev"
370 },
371 {
372 "type": "string",
373 "const": "build"
374 }
375 ],
376 "description": "Enable presenter mode",
377 "markdownDescription": "Enable presenter mode",
378 "default": true
379 },
380 "browserExporter": {
381 "anyOf": [
382 {
383 "type": "boolean"
384 },
385 {
386 "type": "string",
387 "const": "dev"
388 },
389 {
390 "type": "string",
391 "const": "build"
392 }
393 ],
394 "description": "Enable browser exporter",
395 "markdownDescription": "Enable browser exporter",
396 "default": "dev"
397 },
398 "htmlAttrs": {
399 "type": "object",
400 "additionalProperties": {
401 "type": "string"
402 },
403 "description": "Attributes to apply to the HTML element",
404 "markdownDescription": "Attributes to apply to the HTML element",
405 "default": {}
406 },
407 "comark": {
408 "type": "boolean",
409 "description": "Suppport Comark syntax\n\nhttps://comark.dev/syntax/markdown",
410 "markdownDescription": "Suppport Comark syntax\n\nhttps://comark.dev/syntax/markdown",
411 "default": false
412 },
413 "mdc": {
414 "type": "boolean",
415 "deprecated": "MDC is now Comark. Use the `comark` option instead",
416 "default": false
417 },
418 "editor": {
419 "type": "boolean",
420 "description": "Enable built-in editor",
421 "markdownDescription": "Enable built-in editor",
422 "default": true
423 },
424 "mcp": {
425 "type": "boolean",
426 "description": "Enable the MCP (Model Context Protocol) server endpoint on the dev server, allowing AI agents to inspect and edit the slides",
427 "markdownDescription": "Enable the MCP (Model Context Protocol) server endpoint on the dev server,\nallowing AI agents to inspect and edit the slides",
428 "default": true
429 },
430 "contextMenu": {
431 "anyOf": [
432 {
433 "type": "boolean"
434 },
435 {
436 "type": "string",
437 "const": "dev"
438 },
439 {
440 "type": "string",
441 "const": "build"
442 },
443 {
444 "type": "null"
445 }
446 ],
447 "description": "Enable context menu",
448 "markdownDescription": "Enable context menu",
449 "default": true
450 },
451 "wakeLock": {
452 "anyOf": [
453 {
454 "type": "boolean"
455 },
456 {
457 "type": "string",
458 "const": "dev"
459 },
460 {
461 "type": "string",
462 "const": "build"
463 }
464 ],
465 "description": "Enable wake lock",
466 "markdownDescription": "Enable wake lock"
467 },
468 "pwa": {
469 "anyOf": [
470 {
471 "type": "boolean"
472 },
473 {
474 "type": "string",
475 "const": "dev"
476 },
477 {
478 "type": "string",
479 "const": "build"
480 }
481 ],
482 "description": "Enable PWA support: a service worker precaches all deck assets on first load so a served deck works fully offline afterward. Heavy; opt-in.",
483 "markdownDescription": "Enable PWA support: a service worker precaches all deck assets on first\nload so a served deck works fully offline afterward. Heavy; opt-in.",
484 "default": false
485 },
486 "exportFilename": {
487 "type": [
488 "string",
489 "null"
490 ],
491 "description": "Force the filename used when exporting the presentation. The extension, e.g. .pdf, gets automatically added.",
492 "markdownDescription": "Force the filename used when exporting the presentation.\nThe extension, e.g. .pdf, gets automatically added.",
493 "default": ""
494 },
495 "monaco": {
496 "anyOf": [
497 {
498 "type": "boolean"
499 },
500 {
501 "type": "string",
502 "const": "dev"
503 },
504 {
505 "type": "string",
506 "const": "build"
507 }
508 ],
509 "description": "Enable Monaco\n\nSee https://sli.dev/custom/config-monaco.html",
510 "markdownDescription": "Enable Monaco\n\nSee https://sli.dev/custom/config-monaco.html",
511 "default": true
512 },
513 "monacoTypesSource": {
514 "type": "string",
515 "enum": [
516 "cdn",
517 "local",
518 "none"
519 ],
520 "description": "Where to load monaco types from\n\n- `cdn` - load from CDN with `@typescript/ata`\n- `local` - load from local node_modules",
521 "markdownDescription": "Where to load monaco types from\n\n- `cdn` - load from CDN with `@typescript/ata`\n- `local` - load from local node_modules",
522 "default": "local"
523 },
524 "monacoTypesAdditionalPackages": {
525 "type": "array",
526 "items": {
527 "type": "string"
528 },
529 "description": "Additional node packages to load as monaco types",
530 "markdownDescription": "Additional node packages to load as monaco types",
531 "default": []
532 },
533 "monacoTypesIgnorePackages": {
534 "type": "array",
535 "items": {
536 "type": "string"
537 },
538 "description": "Packages to ignore when loading monaco types",
539 "markdownDescription": "Packages to ignore when loading monaco types",
540 "default": []
541 },
542 "monacoRunAdditionalDeps": {
543 "type": "array",
544 "items": {
545 "type": "string"
546 },
547 "description": "Additional local modules to load as dependencies of monaco runnable",
548 "markdownDescription": "Additional local modules to load as dependencies of monaco runnable",
549 "default": []
550 },
551 "monacoRunUseStrict": {
552 "type": "boolean",
553 "description": "Whether to run monaco runnable code in strict mode",
554 "markdownDescription": "Whether to run monaco runnable code in strict mode",
555 "default": true
556 },
557 "seoMeta": {
558 "$ref": "#/definitions/SeoMeta",
559 "description": "Seo meta tags settings",
560 "markdownDescription": "Seo meta tags settings",
561 "default": {}
562 },
563 "notesAutoRuby": {
564 "type": "object",
565 "additionalProperties": {
566 "type": "string"
567 },
568 "description": "Auto replace words with `<ruby>` tags in notes",
569 "markdownDescription": "Auto replace words with `<ruby>` tags in notes",
570 "default": {}
571 },
572 "duration": {
573 "type": [
574 "string",
575 "number"
576 ],
577 "description": "The expected duration of the slide",
578 "markdownDescription": "The expected duration of the slide",
579 "default": "30min"
580 },
581 "timer": {
582 "type": "string",
583 "enum": [
584 "stopwatch",
585 "countdown"
586 ],
587 "description": "Timer mode",
588 "markdownDescription": "Timer mode",
589 "default": "stopwatch"
590 },
591 "magicMoveDuration": {
592 "type": "number",
593 "description": "Duration for shiki magic move transitions in milliseconds",
594 "markdownDescription": "Duration for shiki magic move transitions in milliseconds",
595 "default": 800
596 },
597 "shiki": {
598 "$ref": "#/definitions/ShikiOptions",
599 "description": "Configure Shiki",
600 "markdownDescription": "Configure Shiki",
601 "default": {}
602 },
603 "preloadImages": {
604 "anyOf": [
605 {
606 "type": "boolean"
607 },
608 {
609 "type": "object",
610 "properties": {
611 "ahead": {
612 "type": "number"
613 }
614 }
615 }
616 ],
617 "description": "Preload images extracted from slides for faster navigation.\n\n- `true` - enable with default look-ahead of 3 slides\n- `false` - disable image preloading\n- `{ ahead: number }` - enable with custom look-ahead window",
618 "markdownDescription": "Preload images extracted from slides for faster navigation.\n\n- `true` - enable with default look-ahead of 3 slides\n- `false` - disable image preloading\n- `{ ahead: number }` - enable with custom look-ahead window",
619 "default": true
620 },
621 "defaults": {
622 "$ref": "#/definitions/Frontmatter",
623 "description": "Default frontmatter options applied to all slides",
624 "markdownDescription": "Default frontmatter options applied to all slides"
625 }
626 }
627 },
628 "BuiltinLayouts": {
629 "type": "string",
630 "enum": [
631 "404",
632 "center",
633 "cover",
634 "default",
635 "end",
636 "error",
637 "fact",
638 "full",
639 "iframe-left",
640 "iframe-right",
641 "iframe",
642 "image-left",
643 "image-right",
644 "image",
645 "intro",
646 "none",
647 "quote",
648 "section",
649 "statement",
650 "two-cols-header",
651 "two-cols"
652 ]
653 },
654 "BuiltinSlideTransition": {
655 "type": "string",
656 "enum": [
657 "fade",
658 "fade-out",
659 "slide-up",
660 "slide-down",
661 "slide-left",
662 "slide-right",
663 "view-transition"
664 ]
665 },
666 "TransitionGroupProps": {
667 "type": "object",
668 "properties": {
669 "appear": {
670 "type": "boolean"
671 },
672 "persisted": {
673 "type": "boolean"
674 },
675 "tag": {
676 "type": "string"
677 },
678 "moveClass": {
679 "type": "string"
680 },
681 "css": {
682 "type": "boolean"
683 },
684 "duration": {
685 "anyOf": [
686 {
687 "type": "number"
688 },
689 {
690 "type": "object",
691 "properties": {
692 "enter": {
693 "type": "number"
694 },
695 "leave": {
696 "type": "number"
697 }
698 },
699 "required": [
700 "enter",
701 "leave"
702 ]
703 }
704 ]
705 },
706 "enterFromClass": {
707 "type": "string"
708 },
709 "enterActiveClass": {
710 "type": "string"
711 },
712 "enterToClass": {
713 "type": "string"
714 },
715 "appearFromClass": {
716 "type": "string"
717 },
718 "appearActiveClass": {
719 "type": "string"
720 },
721 "appearToClass": {
722 "type": "string"
723 },
724 "leaveFromClass": {
725 "type": "string"
726 },
727 "leaveActiveClass": {
728 "type": "string"
729 },
730 "leaveToClass": {
731 "type": "string"
732 }
733 }
734 },
735 "SlidevThemeConfig": {
736 "type": "object",
737 "additionalProperties": {
738 "type": [
739 "string",
740 "number"
741 ]
742 }
743 },
744 "FontOptions": {
745 "type": "object",
746 "properties": {
747 "sans": {
748 "anyOf": [
749 {
750 "type": "string"
751 },
752 {
753 "type": "array",
754 "items": {
755 "type": "string"
756 }
757 }
758 ],
759 "description": "Sans serif fonts (default fonts for most text)",
760 "markdownDescription": "Sans serif fonts (default fonts for most text)"
761 },
762 "serif": {
763 "anyOf": [
764 {
765 "type": "string"
766 },
767 {
768 "type": "array",
769 "items": {
770 "type": "string"
771 }
772 }
773 ],
774 "description": "Serif fonts",
775 "markdownDescription": "Serif fonts"
776 },
777 "mono": {
778 "anyOf": [
779 {
780 "type": "string"
781 },
782 {
783 "type": "array",
784 "items": {
785 "type": "string"
786 }
787 }
788 ],
789 "description": "Monospace fonts, for code blocks and etc.",
790 "markdownDescription": "Monospace fonts, for code blocks and etc."
791 },
792 "body": {
793 "type": "string",
794 "enum": [
795 "sans",
796 "serif",
797 "mono"
798 ],
799 "description": "Font family role to use by default for the page body",
800 "markdownDescription": "Font family role to use by default for the page body",
801 "default": "sans"
802 },
803 "custom": {
804 "anyOf": [
805 {
806 "type": "string"
807 },
808 {
809 "type": "array",
810 "items": {
811 "type": "string"
812 }
813 }
814 ],
815 "description": "Load webfonts for custom CSS (does not apply anywhere by default)",
816 "markdownDescription": "Load webfonts for custom CSS (does not apply anywhere by default)"
817 },
818 "weights": {
819 "anyOf": [
820 {
821 "type": "string"
822 },
823 {
824 "type": "array",
825 "items": {
826 "type": [
827 "string",
828 "number"
829 ]
830 }
831 }
832 ],
833 "description": "Weights for fonts",
834 "markdownDescription": "Weights for fonts",
835 "default": [
836 200,
837 400,
838 600
839 ]
840 },
841 "italic": {
842 "type": "boolean",
843 "description": "Import italic fonts",
844 "markdownDescription": "Import italic fonts",
845 "default": false
846 },
847 "provider": {
848 "type": "string",
849 "enum": [
850 "none",
851 "google",
852 "coollabs"
853 ],
854 "default": "google"
855 },
856 "webfonts": {
857 "type": "array",
858 "items": {
859 "type": "string"
860 },
861 "description": "Specify web fonts names, will detect from `sans`, `mono`, `serif` if not provided",
862 "markdownDescription": "Specify web fonts names, will detect from `sans`, `mono`, `serif` if not provided"
863 },
864 "local": {
865 "type": "array",
866 "items": {
867 "type": "string"
868 },
869 "description": "Specify local fonts names, be excluded from webfonts",
870 "markdownDescription": "Specify local fonts names, be excluded from webfonts"
871 },
872 "fallbacks": {
873 "type": "boolean",
874 "description": "Use fonts fallback",
875 "markdownDescription": "Use fonts fallback",
876 "default": true
877 }
878 }
879 },
880 "DrawingsOptions": {
881 "type": "object",
882 "properties": {
883 "persist": {
884 "type": [
885 "boolean",
886 "string"
887 ],
888 "description": "Persist the drawings to disk Passing string to specify the directory (default to `.slidev/drawings`)",
889 "markdownDescription": "Persist the drawings to disk\nPassing string to specify the directory (default to `.slidev/drawings`)",
890 "default": false
891 },
892 "enabled": {
893 "anyOf": [
894 {
895 "type": "boolean"
896 },
897 {
898 "type": "string",
899 "const": "dev"
900 },
901 {
902 "type": "string",
903 "const": "build"
904 }
905 ],
906 "default": true
907 },
908 "presenterOnly": {
909 "type": "boolean",
910 "description": "Only allow drawing from presenter mode",
911 "markdownDescription": "Only allow drawing from presenter mode",
912 "default": false
913 },
914 "syncAll": {
915 "type": "boolean",
916 "description": "Sync drawing for all instances",
917 "markdownDescription": "Sync drawing for all instances",
918 "default": true
919 }
920 }
921 },
922 "SeoMeta": {
923 "type": "object",
924 "properties": {
925 "ogTitle": {
926 "type": "string"
927 },
928 "ogDescription": {
929 "type": "string"
930 },
931 "ogImage": {
932 "type": "string"
933 },
934 "ogUrl": {
935 "type": "string"
936 },
937 "twitterCard": {
938 "type": "string",
939 "enum": [
940 "summary",
941 "summary_large_image",
942 "app",
943 "player"
944 ]
945 },
946 "twitterSite": {
947 "type": "string"
948 },
949 "twitterTitle": {
950 "type": "string"
951 },
952 "twitterDescription": {
953 "type": "string"
954 },
955 "twitterImage": {
956 "type": "string"
957 },
958 "twitterUrl": {
959 "type": "string"
960 }
961 },
962 "description": "The following type should map to unhead MataFlat type",
963 "markdownDescription": "The following type should map to unhead MataFlat type"
964 },
965 "ShikiOptions": {
966 "type": "object",
967 "properties": {
968 "magicMove": {
969 "$ref": "#/definitions/ShikiMagicMoveOptions",
970 "description": "Options passed to Shiki Magic Move for customizing code transition animations\n\nSee https://shiki.style/packages/magic-move#options for the full list of options",
971 "markdownDescription": "Options passed to Shiki Magic Move for customizing code transition animations\n\nSee https://shiki.style/packages/magic-move#options for the full list of options",
972 "default": {}
973 }
974 }
975 },
976 "ShikiMagicMoveOptions": {
977 "type": "object",
978 "properties": {
979 "delayMove": {
980 "type": "number",
981 "description": "Ratio of the duration to delay the move animation",
982 "markdownDescription": "Ratio of the duration to delay the move animation",
983 "default": 0.3
984 },
985 "delayLeave": {
986 "type": "number",
987 "description": "Ratio of the duration to delay the leave animation",
988 "markdownDescription": "Ratio of the duration to delay the leave animation",
989 "default": 0
990 },
991 "delayEnter": {
992 "type": "number",
993 "description": "Ratio of the duration to delay the enter animation",
994 "markdownDescription": "Ratio of the duration to delay the enter animation",
995 "default": 0.7
996 },
997 "delayContainer": {
998 "type": "number",
999 "description": "Ratio of the duration to delay the container animation",
1000 "markdownDescription": "Ratio of the duration to delay the container animation",
1001 "default": 0.4
1002 },
1003 "easing": {
1004 "type": "string",
1005 "description": "Easing function, in the CSS `transition-timing-function` format",
1006 "markdownDescription": "Easing function, in the CSS `transition-timing-function` format",
1007 "default": "ease"
1008 },
1009 "animateContainer": {
1010 "type": "boolean",
1011 "description": "Apply animation to the container",
1012 "markdownDescription": "Apply animation to the container",
1013 "default": false
1014 },
1015 "containerStyle": {
1016 "type": "boolean",
1017 "description": "Apply styles (color and background) to the container",
1018 "markdownDescription": "Apply styles (color and background) to the container",
1019 "default": true
1020 },
1021 "stagger": {
1022 "type": "number",
1023 "description": "Stagger the animation of the tokens, in milliseconds",
1024 "markdownDescription": "Stagger the animation of the tokens, in milliseconds",
1025 "default": 1
1026 },
1027 "splitTokens": {
1028 "type": "boolean",
1029 "description": "Split the tokens at the edge of diff chunks",
1030 "markdownDescription": "Split the tokens at the edge of diff chunks",
1031 "default": false
1032 },
1033 "enhanceMatching": {
1034 "type": "boolean",
1035 "description": "Enhance the matching algorithm to match tokens that has same content",
1036 "markdownDescription": "Enhance the matching algorithm to match tokens that has same content"
1037 }
1038 }
1039 },
1040 "Frontmatter": {
1041 "type": "object",
1042 "properties": {
1043 "transition": {
1044 "anyOf": [
1045 {
1046 "$ref": "#/definitions/BuiltinSlideTransition"
1047 },
1048 {
1049 "type": "string"
1050 },
1051 {
1052 "$ref": "#/definitions/TransitionGroupProps"
1053 },
1054 {
1055 "type": "null"
1056 }
1057 ],
1058 "description": "Page transition, powered by Vue's `<TransitionGroup/>`\n\nBuilt-in transitions:\n- fade\n- fade-out\n- slide-left\n- slide-right\n- slide-up\n- slide-down\n- view-transition\n\nSee https://sli.dev/guide/animations.html#pages-transitions\n\nSee https://vuejs.org/guide/built-ins/transition.html",
1059 "markdownDescription": "Page transition, powered by Vue's `<TransitionGroup/>`\n\nBuilt-in transitions:\n- fade\n- fade-out\n- slide-left\n- slide-right\n- slide-up\n- slide-down\n- view-transition\n\nSee https://sli.dev/guide/animations.html#pages-transitions\n\nSee https://vuejs.org/guide/built-ins/transition.html"
1060 },
1061 "layout": {
1062 "anyOf": [
1063 {
1064 "$ref": "#/definitions/BuiltinLayouts"
1065 },
1066 {
1067 "type": "string"
1068 }
1069 ],
1070 "description": "Slide layout to use\n\nDefault to 'cover' for the first slide, 'default' for the rest",
1071 "markdownDescription": "Slide layout to use\n\nDefault to 'cover' for the first slide, 'default' for the rest"
1072 },
1073 "class": {
1074 "anyOf": [
1075 {
1076 "type": "string"
1077 },
1078 {
1079 "type": "array",
1080 "items": {
1081 "type": "string"
1082 }
1083 },
1084 {
1085 "type": "object",
1086 "additionalProperties": {}
1087 }
1088 ],
1089 "description": "Custom class added to the slide root element",
1090 "markdownDescription": "Custom class added to the slide root element"
1091 },
1092 "clicks": {
1093 "type": "number",
1094 "description": "Manually specified the total clicks needed to this slide\n\nWhen not specified, the clicks will be calculated by the usage of v-clicks\n\nSee https://sli.dev/guide/animations",
1095 "markdownDescription": "Manually specified the total clicks needed to this slide\n\nWhen not specified, the clicks will be calculated by the usage of v-clicks\n\nSee https://sli.dev/guide/animations"
1096 },
1097 "clicksStart": {
1098 "type": "number",
1099 "description": "Manually specified the total clicks needed to this slide to start",
1100 "markdownDescription": "Manually specified the total clicks needed to this slide to start",
1101 "default": 0
1102 },
1103 "preload": {
1104 "type": "boolean",
1105 "description": "Preload the slide when the previous slide is active",
1106 "markdownDescription": "Preload the slide when the previous slide is active",
1107 "default": true
1108 },
1109 "hide": {
1110 "type": "boolean",
1111 "description": "Completely hide and disable the slide",
1112 "markdownDescription": "Completely hide and disable the slide"
1113 },
1114 "disabled": {
1115 "type": "boolean",
1116 "description": "Same as `hide`, completely hide and disable the slide",
1117 "markdownDescription": "Same as `hide`, completely hide and disable the slide"
1118 },
1119 "hideInToc": {
1120 "type": "boolean",
1121 "description": "Hide the slide for the `<Toc>` components\n\nSee https://sli.dev/builtin/components#toc",
1122 "markdownDescription": "Hide the slide for the `<Toc>` components\n\nSee https://sli.dev/builtin/components#toc"
1123 },
1124 "title": {
1125 "type": "string",
1126 "description": "Override the title for the `<TitleRenderer>` and `<Toc>` components Only if `title` has also been declared",
1127 "markdownDescription": "Override the title for the `<TitleRenderer>` and `<Toc>` components\nOnly if `title` has also been declared"
1128 },
1129 "level": {
1130 "type": "number",
1131 "description": "Override the title level for the `<TitleRenderer>` and `<Toc>` components Only if `title` has also been declared",
1132 "markdownDescription": "Override the title level for the `<TitleRenderer>` and `<Toc>` components\nOnly if `title` has also been declared"
1133 },
1134 "routeAlias": {
1135 "type": "string",
1136 "description": "Create a route alias that can be used in the URL or with the `<Link>` component",
1137 "markdownDescription": "Create a route alias that can be used in the URL or with the `<Link>` component"
1138 },
1139 "zoom": {
1140 "type": "number",
1141 "description": "Custom zoom level for the slide",
1142 "markdownDescription": "Custom zoom level for the slide",
1143 "default": 1
1144 },
1145 "clickAnimation": {
1146 "type": "string",
1147 "description": "Default click animation for the slide",
1148 "markdownDescription": "Default click animation for the slide"
1149 },
1150 "dragPos": {
1151 "type": "object",
1152 "additionalProperties": {
1153 "type": "string"
1154 },
1155 "description": "Store the positions of draggable elements Normally you don't need to set this manually\n\nSee https://sli.dev/features/draggable",
1156 "markdownDescription": "Store the positions of draggable elements\nNormally you don't need to set this manually\n\nSee https://sli.dev/features/draggable"
1157 },
1158 "src": {
1159 "type": "string",
1160 "description": "Includes a markdown file\n\nSee https://sli.dev/guide/syntax.html#importing-slides",
1161 "markdownDescription": "Includes a markdown file\n\nSee https://sli.dev/guide/syntax.html#importing-slides"
1162 }
1163 }
1164 }
1165 }
1166 }
1167
1167 lines JSON