@ox-content/vite-plugin 3.0.0-alpha.10 → 3.0.0-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3857 -904
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +701 -38
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +701 -38
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3846 -902
- package/dist/index.mjs.map +1 -1
- package/dist/styles/all.css +2 -0
- package/dist/styles/citations.css +62 -0
- package/dist/styles/core.css +40 -0
- package/dist/styles/github.css +31 -25
- package/dist/styles/graphviz.css +34 -0
- package/dist/styles/magic-links.css +1 -0
- package/dist/styles/ogp.css +7 -23
- package/dist/styles/social.css +111 -12
- package/dist/styles/tabs.css +8 -0
- package/dist/styles/twitter-full.css +3 -2
- package/dist/styles/youtube.css +10 -0
- package/dist/vitepress.cjs +1 -1
- package/dist/vitepress.mjs +1 -1
- package/package.json +9 -2
package/dist/index.d.mts
CHANGED
|
@@ -463,7 +463,12 @@ interface YouTubeOptions {
|
|
|
463
463
|
lazyLoad?: boolean;
|
|
464
464
|
}
|
|
465
465
|
/**
|
|
466
|
-
* Extract YouTube video ID from
|
|
466
|
+
* Extract a YouTube video ID from a bare ID or a watch / share / embed /
|
|
467
|
+
* shorts URL.
|
|
468
|
+
*
|
|
469
|
+
* The rule lives in Rust so this function and the `<youtube>` rewrite below
|
|
470
|
+
* cannot disagree about what counts as a video: `transformYoutubeEmbeds`
|
|
471
|
+
* resolves IDs with the same code.
|
|
467
472
|
*/
|
|
468
473
|
declare function extractVideoId(input: string): string | null;
|
|
469
474
|
/**
|
|
@@ -471,6 +476,76 @@ declare function extractVideoId(input: string): string | null;
|
|
|
471
476
|
*/
|
|
472
477
|
declare function transformYouTube(html: string, options?: YouTubeOptions): Promise<string>;
|
|
473
478
|
//#endregion
|
|
479
|
+
//#region src/plugins/provider-articles.d.ts
|
|
480
|
+
interface ProviderArticleEmbedOptions {
|
|
481
|
+
/** Fetch article metadata at build time. @default true */
|
|
482
|
+
fetch?: boolean;
|
|
483
|
+
/** Metadata request timeout in milliseconds. @default 10000 */
|
|
484
|
+
timeout?: number;
|
|
485
|
+
/** Cache fetched metadata in memory for the current process. @default true */
|
|
486
|
+
cache?: boolean;
|
|
487
|
+
/** Cache TTL in milliseconds. @default 3600000 */
|
|
488
|
+
cacheTTL?: number;
|
|
489
|
+
/** Persist metadata across builds. Off by default. */
|
|
490
|
+
persistCache?: boolean;
|
|
491
|
+
/** Directory for the persistent cache. */
|
|
492
|
+
cacheDir?: string;
|
|
493
|
+
}
|
|
494
|
+
//#endregion
|
|
495
|
+
//#region src/plugins/provider-packages.d.ts
|
|
496
|
+
interface ProviderPackageEmbedOptions {
|
|
497
|
+
/** Fetch package metadata at build time. @default true */
|
|
498
|
+
fetch?: boolean;
|
|
499
|
+
/** Metadata request timeout in milliseconds. @default 10000 */
|
|
500
|
+
timeout?: number;
|
|
501
|
+
/** Cache fetched metadata in memory for the current process. @default true */
|
|
502
|
+
cache?: boolean;
|
|
503
|
+
/** Cache TTL in milliseconds. @default 3600000 */
|
|
504
|
+
cacheTTL?: number;
|
|
505
|
+
/** Persist metadata across builds. Off by default. */
|
|
506
|
+
persistCache?: boolean;
|
|
507
|
+
/** Directory for the persistent cache. */
|
|
508
|
+
cacheDir?: string;
|
|
509
|
+
}
|
|
510
|
+
//#endregion
|
|
511
|
+
//#region src/plugins/provider-playgrounds.d.ts
|
|
512
|
+
interface ProviderPlaygroundEmbedOptions {
|
|
513
|
+
/** Fetch playground metadata at build time where a public endpoint exists. @default true */
|
|
514
|
+
fetch?: boolean;
|
|
515
|
+
/** Add provider iframe URLs for supported providers. @default false */
|
|
516
|
+
iframe?: boolean;
|
|
517
|
+
/** Metadata request timeout in milliseconds. @default 10000 */
|
|
518
|
+
timeout?: number;
|
|
519
|
+
/** Cache fetched metadata in memory for the current process. @default true */
|
|
520
|
+
cache?: boolean;
|
|
521
|
+
/** Cache TTL in milliseconds. @default 3600000 */
|
|
522
|
+
cacheTTL?: number;
|
|
523
|
+
/** Persist metadata across builds. Off by default. */
|
|
524
|
+
persistCache?: boolean;
|
|
525
|
+
/** Directory for the persistent cache. */
|
|
526
|
+
cacheDir?: string;
|
|
527
|
+
}
|
|
528
|
+
//#endregion
|
|
529
|
+
//#region src/plugins/provider-videos.d.ts
|
|
530
|
+
interface ProviderVideoEmbedOptions {
|
|
531
|
+
/** Fetch public video metadata at build time where supported. @default true */
|
|
532
|
+
fetch?: boolean;
|
|
533
|
+
/** Add lazy provider iframe URLs when supported. @default false */
|
|
534
|
+
iframe?: boolean;
|
|
535
|
+
/** Twitch embed parent domain or domains. Required for Twitch iframes. */
|
|
536
|
+
parent?: string | string[];
|
|
537
|
+
/** Metadata request timeout in milliseconds. @default 10000 */
|
|
538
|
+
timeout?: number;
|
|
539
|
+
/** Cache fetched metadata in memory for the current process. @default true */
|
|
540
|
+
cache?: boolean;
|
|
541
|
+
/** Cache TTL in milliseconds. @default 3600000 */
|
|
542
|
+
cacheTTL?: number;
|
|
543
|
+
/** Persist metadata across builds. Off by default. */
|
|
544
|
+
persistCache?: boolean;
|
|
545
|
+
/** Directory for the persistent cache. */
|
|
546
|
+
cacheDir?: string;
|
|
547
|
+
}
|
|
548
|
+
//#endregion
|
|
474
549
|
//#region src/plugins/reddit/types.d.ts
|
|
475
550
|
interface RedditEmbedOptions {
|
|
476
551
|
/**
|
|
@@ -562,6 +637,152 @@ interface TwitterEmbedOptions {
|
|
|
562
637
|
}
|
|
563
638
|
type TweetAppearance = "compact" | "full";
|
|
564
639
|
//#endregion
|
|
640
|
+
//#region src/plugins/media.d.ts
|
|
641
|
+
interface MediaEmbedOptions {
|
|
642
|
+
/**
|
|
643
|
+
* Render `<Spotify>` embeds.
|
|
644
|
+
* @default false
|
|
645
|
+
*/
|
|
646
|
+
spotify?: boolean;
|
|
647
|
+
/**
|
|
648
|
+
* Render `<AppleMusic>` embeds.
|
|
649
|
+
* @default false
|
|
650
|
+
*/
|
|
651
|
+
appleMusic?: boolean;
|
|
652
|
+
/**
|
|
653
|
+
* Render `<SpeakerDeck>` embeds.
|
|
654
|
+
* @default false
|
|
655
|
+
*/
|
|
656
|
+
speakerDeck?: boolean;
|
|
657
|
+
/**
|
|
658
|
+
* Render `<Audio>` native players.
|
|
659
|
+
* @default false
|
|
660
|
+
*/
|
|
661
|
+
audio?: boolean;
|
|
662
|
+
/**
|
|
663
|
+
* Render `<Video>` native players.
|
|
664
|
+
* @default false
|
|
665
|
+
*/
|
|
666
|
+
video?: boolean;
|
|
667
|
+
/**
|
|
668
|
+
* Render `<StackBlitz>` embeds.
|
|
669
|
+
* @default false
|
|
670
|
+
*/
|
|
671
|
+
stackBlitz?: boolean;
|
|
672
|
+
/**
|
|
673
|
+
* Render `<Tweet>` / `<XPost>` static cards. Pass `{ fetch: true }` to
|
|
674
|
+
* resolve the post content and self-host its media at build time.
|
|
675
|
+
* @default false
|
|
676
|
+
*/
|
|
677
|
+
twitter?: boolean | TwitterEmbedOptions;
|
|
678
|
+
/**
|
|
679
|
+
* Render `<Reddit>` static cards with build-time metadata fetch.
|
|
680
|
+
* @default false
|
|
681
|
+
*/
|
|
682
|
+
reddit?: boolean | RedditEmbedOptions;
|
|
683
|
+
/**
|
|
684
|
+
* Render `<Bluesky>` static cards.
|
|
685
|
+
* @default false
|
|
686
|
+
*/
|
|
687
|
+
bluesky?: boolean;
|
|
688
|
+
/**
|
|
689
|
+
* Render `<GoogleMaps>` static place cards.
|
|
690
|
+
* @default false
|
|
691
|
+
*/
|
|
692
|
+
googleMaps?: boolean;
|
|
693
|
+
/**
|
|
694
|
+
* Render `<Qiita>` static article cards.
|
|
695
|
+
* Pass `{ fetch: false }` to skip metadata fetching and render a link-only card.
|
|
696
|
+
* @default false
|
|
697
|
+
*/
|
|
698
|
+
qiita?: boolean | ProviderArticleEmbedOptions;
|
|
699
|
+
/**
|
|
700
|
+
* Render `<Zenn>` static article cards.
|
|
701
|
+
* Pass `{ fetch: false }` to skip metadata fetching and render a link-only card.
|
|
702
|
+
* @default false
|
|
703
|
+
*/
|
|
704
|
+
zenn?: boolean | ProviderArticleEmbedOptions;
|
|
705
|
+
/**
|
|
706
|
+
* Render `<NpmPackage>`, `<CratesIo>`, `<PyPI>`, and `<DockerHub>` package cards.
|
|
707
|
+
* Pass `{ fetch: false }` to skip metadata fetching and render link-only cards.
|
|
708
|
+
* @default false
|
|
709
|
+
*/
|
|
710
|
+
packageRegistry?: boolean | ProviderPackageEmbedOptions;
|
|
711
|
+
/**
|
|
712
|
+
* Render `<CodePen>`, `<JSFiddle>`, and `<Observable>` static playground cards.
|
|
713
|
+
* Pass `{ iframe: true }` to add lazy provider iframe URLs where supported.
|
|
714
|
+
* @default false
|
|
715
|
+
*/
|
|
716
|
+
playgrounds?: boolean | ProviderPlaygroundEmbedOptions;
|
|
717
|
+
/**
|
|
718
|
+
* Render `<Vimeo>` static video cards.
|
|
719
|
+
* Pass `{ iframe: true }` to add lazy player iframe URLs.
|
|
720
|
+
* @default false
|
|
721
|
+
*/
|
|
722
|
+
vimeo?: boolean | ProviderVideoEmbedOptions;
|
|
723
|
+
/**
|
|
724
|
+
* Render `<Twitch>` static video, clip, and channel cards.
|
|
725
|
+
* Pass `{ iframe: true, parent: "example.com" }` to add Twitch player iframes.
|
|
726
|
+
* @default false
|
|
727
|
+
*/
|
|
728
|
+
twitch?: boolean | ProviderVideoEmbedOptions;
|
|
729
|
+
/**
|
|
730
|
+
* Render `<Discord>` static invite/message cards.
|
|
731
|
+
* @default false
|
|
732
|
+
*/
|
|
733
|
+
discord?: boolean;
|
|
734
|
+
/**
|
|
735
|
+
* Render `<Fediverse>`, `<Mastodon>`, `<Misskey>`, and `<Mixi2>` static cards.
|
|
736
|
+
* @default false
|
|
737
|
+
*/
|
|
738
|
+
fediverse?: boolean;
|
|
739
|
+
/**
|
|
740
|
+
* Render `<Facebook>` static post cards.
|
|
741
|
+
* @default false
|
|
742
|
+
*/
|
|
743
|
+
facebook?: boolean;
|
|
744
|
+
/**
|
|
745
|
+
* Render `<Threads>` static post cards.
|
|
746
|
+
* @default false
|
|
747
|
+
*/
|
|
748
|
+
threads?: boolean;
|
|
749
|
+
/**
|
|
750
|
+
* Render `<Instagram>` static post cards.
|
|
751
|
+
* @default false
|
|
752
|
+
*/
|
|
753
|
+
instagram?: boolean;
|
|
754
|
+
/**
|
|
755
|
+
* Render `<WebContainer>` lazy placeholder blocks.
|
|
756
|
+
* @default false
|
|
757
|
+
*/
|
|
758
|
+
webContainer?: boolean;
|
|
759
|
+
/**
|
|
760
|
+
* Render `<Loom>` recording cards.
|
|
761
|
+
* @default false
|
|
762
|
+
*/
|
|
763
|
+
loom?: boolean;
|
|
764
|
+
/**
|
|
765
|
+
* Render `<Asciinema>` terminal-recording cards.
|
|
766
|
+
* @default false
|
|
767
|
+
*/
|
|
768
|
+
asciinema?: boolean;
|
|
769
|
+
/**
|
|
770
|
+
* Render `<Figma>` file, design, board, and prototype cards.
|
|
771
|
+
* @default false
|
|
772
|
+
*/
|
|
773
|
+
figma?: boolean;
|
|
774
|
+
/**
|
|
775
|
+
* Render `<Note>` note.com article cards.
|
|
776
|
+
* @default false
|
|
777
|
+
*/
|
|
778
|
+
note?: boolean;
|
|
779
|
+
/**
|
|
780
|
+
* Render `<GoogleSlides>` deck cards.
|
|
781
|
+
* @default false
|
|
782
|
+
*/
|
|
783
|
+
googleSlides?: boolean;
|
|
784
|
+
}
|
|
785
|
+
//#endregion
|
|
565
786
|
//#region src/plugins/github/types.d.ts
|
|
566
787
|
interface GitHubRepoData {
|
|
567
788
|
name: string;
|
|
@@ -751,12 +972,45 @@ declare function transformMermaidStatic(html: string, _options?: MermaidOptions)
|
|
|
751
972
|
*/
|
|
752
973
|
declare const mermaidClientScript = "";
|
|
753
974
|
//#endregion
|
|
975
|
+
//#region src/plugins/graphviz-renderer.d.ts
|
|
976
|
+
type GraphvizFailureMode = "error" | "warn";
|
|
977
|
+
interface GraphvizOptions {
|
|
978
|
+
/** Graphviz renderer command. @default 'dot' */
|
|
979
|
+
command?: string;
|
|
980
|
+
/** Extra arguments passed before `-Tsvg`. @default [] */
|
|
981
|
+
args?: string[];
|
|
982
|
+
/** Behavior when the Graphviz command is not available. @default 'error' */
|
|
983
|
+
missingRenderer?: GraphvizFailureMode;
|
|
984
|
+
/** Behavior when Graphviz rejects a DOT source. @default 'error' */
|
|
985
|
+
renderErrors?: GraphvizFailureMode;
|
|
986
|
+
/** Per-render timeout in milliseconds. @default 10000 */
|
|
987
|
+
timeout?: number;
|
|
988
|
+
/** Cache rendered SVGs in memory for this process. @default true */
|
|
989
|
+
cache?: boolean;
|
|
990
|
+
/** Cache TTL in milliseconds. @default 3600000 */
|
|
991
|
+
cacheTTL?: number;
|
|
992
|
+
}
|
|
993
|
+
interface ResolvedGraphvizOptions {
|
|
994
|
+
command: string;
|
|
995
|
+
args: string[];
|
|
996
|
+
missingRenderer: GraphvizFailureMode;
|
|
997
|
+
renderErrors: GraphvizFailureMode;
|
|
998
|
+
timeout: number;
|
|
999
|
+
cache: boolean;
|
|
1000
|
+
cacheTTL: number;
|
|
1001
|
+
}
|
|
1002
|
+
declare function clearGraphvizCache(): void;
|
|
1003
|
+
declare function resolveGraphvizOptions(options: boolean | GraphvizOptions | undefined): ResolvedGraphvizOptions | false;
|
|
1004
|
+
//#endregion
|
|
1005
|
+
//#region src/plugins/graphviz.d.ts
|
|
1006
|
+
declare function transformGraphvizStatic(html: string, options?: boolean | GraphvizOptions | ResolvedGraphvizOptions): Promise<string>;
|
|
1007
|
+
//#endregion
|
|
754
1008
|
//#region src/plugins/index.d.ts
|
|
755
1009
|
/**
|
|
756
1010
|
* Transform all plugin components in HTML.
|
|
757
1011
|
* Call this during SSG build to process all plugins at once.
|
|
758
1012
|
*/
|
|
759
|
-
interface TransformAllOptions {
|
|
1013
|
+
interface TransformAllOptions extends MediaEmbedOptions {
|
|
760
1014
|
tabs?: boolean;
|
|
761
1015
|
/**
|
|
762
1016
|
* Expand `<pm>` package-manager blocks into install tabs. Pass an object to
|
|
@@ -769,23 +1023,127 @@ interface TransformAllOptions {
|
|
|
769
1023
|
ogp?: boolean | OgpOptions;
|
|
770
1024
|
openGraph?: boolean | OgpOptions;
|
|
771
1025
|
mermaid?: boolean;
|
|
1026
|
+
graphviz?: boolean | GraphvizOptions;
|
|
772
1027
|
githubToken?: string;
|
|
773
|
-
spotify?: boolean;
|
|
774
|
-
appleMusic?: boolean;
|
|
775
|
-
speakerDeck?: boolean;
|
|
776
|
-
audio?: boolean;
|
|
777
|
-
video?: boolean;
|
|
778
|
-
stackBlitz?: boolean;
|
|
779
|
-
twitter?: boolean | TwitterEmbedOptions;
|
|
780
|
-
reddit?: boolean | RedditEmbedOptions;
|
|
781
|
-
bluesky?: boolean;
|
|
782
|
-
webContainer?: boolean;
|
|
783
1028
|
}
|
|
784
1029
|
/**
|
|
785
1030
|
* Transform all enabled plugins in HTML content.
|
|
786
1031
|
*/
|
|
787
1032
|
declare function transformAllPlugins(html: string, options?: TransformAllOptions): Promise<string>;
|
|
788
1033
|
//#endregion
|
|
1034
|
+
//#region src/cross-reference-types.d.ts
|
|
1035
|
+
type CrossReferenceKind = "figure" | "table" | "section";
|
|
1036
|
+
type CrossReferenceFailureMode = "error" | "warn";
|
|
1037
|
+
interface CrossReferenceLabelOptions {
|
|
1038
|
+
figure?: string;
|
|
1039
|
+
table?: string;
|
|
1040
|
+
section?: string;
|
|
1041
|
+
}
|
|
1042
|
+
interface CrossReferencesOptions {
|
|
1043
|
+
enabled?: boolean;
|
|
1044
|
+
missing?: CrossReferenceFailureMode;
|
|
1045
|
+
duplicates?: CrossReferenceFailureMode;
|
|
1046
|
+
mismatches?: CrossReferenceFailureMode;
|
|
1047
|
+
labels?: CrossReferenceLabelOptions;
|
|
1048
|
+
}
|
|
1049
|
+
interface ResolvedCrossReferencesOptions {
|
|
1050
|
+
enabled: boolean;
|
|
1051
|
+
missing: CrossReferenceFailureMode;
|
|
1052
|
+
duplicates: CrossReferenceFailureMode;
|
|
1053
|
+
mismatches: CrossReferenceFailureMode;
|
|
1054
|
+
labels: Required<CrossReferenceLabelOptions>;
|
|
1055
|
+
}
|
|
1056
|
+
interface CrossReferenceEntry {
|
|
1057
|
+
id: string;
|
|
1058
|
+
kind: CrossReferenceKind;
|
|
1059
|
+
number: string;
|
|
1060
|
+
label: string;
|
|
1061
|
+
text: string;
|
|
1062
|
+
href: string;
|
|
1063
|
+
title?: string;
|
|
1064
|
+
}
|
|
1065
|
+
//#endregion
|
|
1066
|
+
//#region src/citation-types.d.ts
|
|
1067
|
+
type CitationFailureMode = "error" | "warn";
|
|
1068
|
+
interface CitationsOptions {
|
|
1069
|
+
enabled?: boolean;
|
|
1070
|
+
bibliography?: string | string[];
|
|
1071
|
+
rootDir?: string;
|
|
1072
|
+
appendBibliography?: boolean;
|
|
1073
|
+
missing?: CitationFailureMode;
|
|
1074
|
+
duplicates?: CitationFailureMode;
|
|
1075
|
+
malformed?: CitationFailureMode;
|
|
1076
|
+
bibliographyTitle?: string;
|
|
1077
|
+
}
|
|
1078
|
+
interface ResolvedCitationsOptions {
|
|
1079
|
+
enabled: boolean;
|
|
1080
|
+
bibliography: string[];
|
|
1081
|
+
rootDir?: string;
|
|
1082
|
+
appendBibliography: boolean;
|
|
1083
|
+
missing: CitationFailureMode;
|
|
1084
|
+
duplicates: CitationFailureMode;
|
|
1085
|
+
malformed: CitationFailureMode;
|
|
1086
|
+
bibliographyTitle: string;
|
|
1087
|
+
}
|
|
1088
|
+
interface CitationReference {
|
|
1089
|
+
id: string;
|
|
1090
|
+
key: string;
|
|
1091
|
+
index: number;
|
|
1092
|
+
label: string;
|
|
1093
|
+
href: string;
|
|
1094
|
+
bibliographyId: string;
|
|
1095
|
+
suppressAuthor: boolean;
|
|
1096
|
+
}
|
|
1097
|
+
interface BibliographyEntry {
|
|
1098
|
+
key: string;
|
|
1099
|
+
id: string;
|
|
1100
|
+
index: number;
|
|
1101
|
+
label: string;
|
|
1102
|
+
title: string;
|
|
1103
|
+
authors: string[];
|
|
1104
|
+
year?: string;
|
|
1105
|
+
url?: string;
|
|
1106
|
+
doi?: string;
|
|
1107
|
+
html: string;
|
|
1108
|
+
}
|
|
1109
|
+
//#endregion
|
|
1110
|
+
//#region src/budoux-types.d.ts
|
|
1111
|
+
type BudouxLanguage = "ja" | "zh-hans" | "zh-hant" | "th";
|
|
1112
|
+
interface BudouxParser {
|
|
1113
|
+
parse(text: string): string[];
|
|
1114
|
+
}
|
|
1115
|
+
interface BudouxOptions {
|
|
1116
|
+
/**
|
|
1117
|
+
* Enable build-time BudouX segmentation when an options object is supplied.
|
|
1118
|
+
*
|
|
1119
|
+
* @default true
|
|
1120
|
+
*/
|
|
1121
|
+
enabled?: boolean;
|
|
1122
|
+
/**
|
|
1123
|
+
* Default BudouX parser language.
|
|
1124
|
+
*
|
|
1125
|
+
* @default "ja"
|
|
1126
|
+
*/
|
|
1127
|
+
language?: BudouxLanguage;
|
|
1128
|
+
/**
|
|
1129
|
+
* Separator inserted between BudouX phrases.
|
|
1130
|
+
*
|
|
1131
|
+
* @default "\u200b"
|
|
1132
|
+
*/
|
|
1133
|
+
separator?: string;
|
|
1134
|
+
/**
|
|
1135
|
+
* Custom build-time parser. When supplied, ox-content does not import the
|
|
1136
|
+
* `budoux` package.
|
|
1137
|
+
*/
|
|
1138
|
+
parser?: BudouxParser;
|
|
1139
|
+
}
|
|
1140
|
+
interface ResolvedBudouxOptions {
|
|
1141
|
+
enabled: boolean;
|
|
1142
|
+
language: BudouxLanguage;
|
|
1143
|
+
separator: string;
|
|
1144
|
+
parser?: BudouxParser;
|
|
1145
|
+
}
|
|
1146
|
+
//#endregion
|
|
789
1147
|
//#region src/page-context.d.ts
|
|
790
1148
|
/**
|
|
791
1149
|
* Base page props available for all pages.
|
|
@@ -2039,6 +2397,14 @@ interface RedirectsOptions {
|
|
|
2039
2397
|
* @default false
|
|
2040
2398
|
*/
|
|
2041
2399
|
json?: boolean;
|
|
2400
|
+
/**
|
|
2401
|
+
* Write static HTML fallback pages for ordinary redirect sources.
|
|
2402
|
+
*
|
|
2403
|
+
* Set `false` when the selected host should consume `_redirects` directly.
|
|
2404
|
+
* Wildcard sources never write HTML pages because they are host-rule syntax.
|
|
2405
|
+
* @default true
|
|
2406
|
+
*/
|
|
2407
|
+
html?: boolean;
|
|
2042
2408
|
/**
|
|
2043
2409
|
* Allow `http://` and `https://` destinations. `javascript:`, `data:`, and
|
|
2044
2410
|
* protocol-relative `//` targets stay rejected.
|
|
@@ -2055,12 +2421,58 @@ interface ResolvedRedirectsOptions {
|
|
|
2055
2421
|
provider?: RedirectProvider;
|
|
2056
2422
|
headers: boolean;
|
|
2057
2423
|
json: boolean;
|
|
2424
|
+
html: boolean;
|
|
2058
2425
|
allowExternal: boolean;
|
|
2059
2426
|
}
|
|
2060
2427
|
/**
|
|
2061
2428
|
* Feed file formats written during SSG.
|
|
2062
2429
|
*/
|
|
2063
2430
|
type FeedFormat = "rss" | "atom" | "json";
|
|
2431
|
+
/** One feed item author accepted by programmatic feeds. */
|
|
2432
|
+
interface FeedItemAuthor {
|
|
2433
|
+
name: string;
|
|
2434
|
+
url?: string;
|
|
2435
|
+
}
|
|
2436
|
+
type FeedItemAuthorInput = string | FeedItemAuthor;
|
|
2437
|
+
/** One JSON Feed / enclosure attachment accepted by programmatic feeds. */
|
|
2438
|
+
interface FeedItemAttachment {
|
|
2439
|
+
url: string;
|
|
2440
|
+
mimeType?: string;
|
|
2441
|
+
title?: string;
|
|
2442
|
+
sizeInBytes?: number;
|
|
2443
|
+
durationInSeconds?: number;
|
|
2444
|
+
}
|
|
2445
|
+
/** One collection or programmatic item considered for a generated feed. */
|
|
2446
|
+
interface FeedItemInput {
|
|
2447
|
+
title?: string;
|
|
2448
|
+
description?: string;
|
|
2449
|
+
content?: string;
|
|
2450
|
+
path?: string;
|
|
2451
|
+
loc?: string;
|
|
2452
|
+
url?: string;
|
|
2453
|
+
id?: string;
|
|
2454
|
+
date?: unknown;
|
|
2455
|
+
lastUpdated?: unknown;
|
|
2456
|
+
draft?: unknown;
|
|
2457
|
+
unlisted?: unknown;
|
|
2458
|
+
author?: FeedItemAuthorInput;
|
|
2459
|
+
authors?: readonly FeedItemAuthorInput[];
|
|
2460
|
+
image?: string;
|
|
2461
|
+
attachments?: readonly FeedItemAttachment[];
|
|
2462
|
+
language?: string;
|
|
2463
|
+
frontmatter?: Record<string, unknown>;
|
|
2464
|
+
}
|
|
2465
|
+
interface FeedItemsResolveContext {
|
|
2466
|
+
name?: string;
|
|
2467
|
+
formats: readonly FeedFormat[];
|
|
2468
|
+
path: string;
|
|
2469
|
+
siteUrl?: string;
|
|
2470
|
+
siteName?: string;
|
|
2471
|
+
siteDescription?: string;
|
|
2472
|
+
base: string;
|
|
2473
|
+
outDir?: string;
|
|
2474
|
+
}
|
|
2475
|
+
type FeedItemsSource = readonly FeedItemInput[] | ((context: FeedItemsResolveContext) => readonly FeedItemInput[] | Promise<readonly FeedItemInput[]>);
|
|
2064
2476
|
/**
|
|
2065
2477
|
* One feed's formats, source, output path, and channel metadata.
|
|
2066
2478
|
*/
|
|
@@ -2075,6 +2487,11 @@ interface FeedChannelOptions {
|
|
|
2075
2487
|
* configured collection when `content` is absent.
|
|
2076
2488
|
*/
|
|
2077
2489
|
collection?: string;
|
|
2490
|
+
/**
|
|
2491
|
+
* Programmatic items for this channel. A channel may set either
|
|
2492
|
+
* `collection` or `items`, not both.
|
|
2493
|
+
*/
|
|
2494
|
+
items?: FeedItemsSource;
|
|
2078
2495
|
/**
|
|
2079
2496
|
* Maximum number of published items, newest first.
|
|
2080
2497
|
* @default 20
|
|
@@ -2114,6 +2531,7 @@ interface ResolvedFeedChannel {
|
|
|
2114
2531
|
name?: string;
|
|
2115
2532
|
formats: readonly FeedFormat[];
|
|
2116
2533
|
collection?: string;
|
|
2534
|
+
items?: FeedItemsSource;
|
|
2117
2535
|
limit: number;
|
|
2118
2536
|
path: string;
|
|
2119
2537
|
title?: string;
|
|
@@ -2582,6 +3000,42 @@ interface OxContentOptions {
|
|
|
2582
3000
|
* @default false
|
|
2583
3001
|
*/
|
|
2584
3002
|
attrs?: boolean | AttrsOptions;
|
|
3003
|
+
/**
|
|
3004
|
+
* Opt-in labeled cross-references for headings, figures/images, and tables.
|
|
3005
|
+
*
|
|
3006
|
+
* References such as `@sec-install`, `@fig-pipeline`, and `@tbl-options`
|
|
3007
|
+
* become links to matching `id` attributes generated by `attrs` or native
|
|
3008
|
+
* Markdown rendering. Missing labels, duplicate labels, and prefix/type
|
|
3009
|
+
* mismatches fail by default and can be downgraded to warnings.
|
|
3010
|
+
*
|
|
3011
|
+
* @default false
|
|
3012
|
+
*/
|
|
3013
|
+
crossReferences?: boolean | CrossReferencesOptions;
|
|
3014
|
+
/**
|
|
3015
|
+
* Alias for `crossReferences`.
|
|
3016
|
+
*
|
|
3017
|
+
* @default false
|
|
3018
|
+
*/
|
|
3019
|
+
xrefs?: boolean | CrossReferencesOptions;
|
|
3020
|
+
/**
|
|
3021
|
+
* Opt-in bibliography-backed citation references.
|
|
3022
|
+
*
|
|
3023
|
+
* References such as `[@rfc9110]` and `[@smith2024; @doe2023]` become
|
|
3024
|
+
* links to generated bibliography entries loaded from local CSL JSON files.
|
|
3025
|
+
*
|
|
3026
|
+
* @default false
|
|
3027
|
+
*/
|
|
3028
|
+
citations?: boolean | CitationsOptions;
|
|
3029
|
+
/**
|
|
3030
|
+
* Opt-in build-time BudouX phrase segmentation.
|
|
3031
|
+
*
|
|
3032
|
+
* Inserts zero-width spaces into visible prose so Japanese text gets better
|
|
3033
|
+
* line-break opportunities without shipping the BudouX parser to the browser.
|
|
3034
|
+
* Install `budoux` when enabling the default parser, or pass a custom parser.
|
|
3035
|
+
*
|
|
3036
|
+
* @default false
|
|
3037
|
+
*/
|
|
3038
|
+
budoux?: boolean | BudouxOptions;
|
|
2585
3039
|
/**
|
|
2586
3040
|
* Opt-in `{badge:variant}` inline badges.
|
|
2587
3041
|
*
|
|
@@ -2688,6 +3142,19 @@ interface OxContentOptions {
|
|
|
2688
3142
|
* @default false
|
|
2689
3143
|
*/
|
|
2690
3144
|
timelines?: boolean | TimelineOptions;
|
|
3145
|
+
/**
|
|
3146
|
+
* Opt-in static `::: if` / `::: else` blocks.
|
|
3147
|
+
*
|
|
3148
|
+
* Conditions are evaluated from `conditionalBlocks.values` and page
|
|
3149
|
+
* frontmatter before Markdown is parsed. Non-selected branches are excluded
|
|
3150
|
+
* from rendered HTML, TOC, and generated search payloads. The expression
|
|
3151
|
+
* language supports `==`, `!=`, `in`, `and`, `or`, parentheses, string /
|
|
3152
|
+
* number / boolean / null literals, and array literals. No JavaScript is
|
|
3153
|
+
* executed.
|
|
3154
|
+
*
|
|
3155
|
+
* @default false
|
|
3156
|
+
*/
|
|
3157
|
+
conditionalBlocks?: boolean | ConditionalBlockOptions;
|
|
2691
3158
|
/**
|
|
2692
3159
|
* Opt-in page-bundle resources and build-time image processing.
|
|
2693
3160
|
*
|
|
@@ -2856,6 +3323,13 @@ interface OxContentOptions {
|
|
|
2856
3323
|
* @default false
|
|
2857
3324
|
*/
|
|
2858
3325
|
mermaid?: boolean;
|
|
3326
|
+
/**
|
|
3327
|
+
* Render `dot` / `graphviz` fenced blocks to static SVG with Graphviz.
|
|
3328
|
+
* Pass an object to configure the renderer command and failure policy.
|
|
3329
|
+
*
|
|
3330
|
+
* @default false
|
|
3331
|
+
*/
|
|
3332
|
+
graphviz?: boolean | GraphvizOptions;
|
|
2859
3333
|
/**
|
|
2860
3334
|
* Enable `$…$` inline and `$$…$$` block math.
|
|
2861
3335
|
*
|
|
@@ -2988,6 +3462,12 @@ interface ResolvedOptions {
|
|
|
2988
3462
|
wikiLinks: ResolvedWikiLinkOptions;
|
|
2989
3463
|
emojiShortcodes: ResolvedEmojiShortcodeOptions;
|
|
2990
3464
|
attrs: ResolvedAttrsOptions;
|
|
3465
|
+
crossReferences: ResolvedCrossReferencesOptions;
|
|
3466
|
+
citations: ResolvedCitationsOptions;
|
|
3467
|
+
/**
|
|
3468
|
+
* Present after `resolveOptions`. Omitted in hand-built fixtures means off.
|
|
3469
|
+
*/
|
|
3470
|
+
budoux?: ResolvedBudouxOptions;
|
|
2991
3471
|
badges: ResolvedBadgeOptions;
|
|
2992
3472
|
/**
|
|
2993
3473
|
* Present after `resolveOptions`. Omitted in hand-built fixtures means off.
|
|
@@ -3016,6 +3496,10 @@ interface ResolvedOptions {
|
|
|
3016
3496
|
* Present after `resolveOptions`. Omitted in hand-built fixtures means off.
|
|
3017
3497
|
*/
|
|
3018
3498
|
timelines?: ResolvedTimelineOptions;
|
|
3499
|
+
/**
|
|
3500
|
+
* Present after `resolveOptions`. Omitted in hand-built fixtures means off.
|
|
3501
|
+
*/
|
|
3502
|
+
conditionalBlocks?: ResolvedConditionalBlockOptions;
|
|
3019
3503
|
codeImports: ResolvedCodeImportOptions;
|
|
3020
3504
|
includes: ResolvedIncludeOptions;
|
|
3021
3505
|
/**
|
|
@@ -3041,6 +3525,7 @@ interface ResolvedOptions {
|
|
|
3041
3525
|
typedHover?: ResolvedTypedHoverOptions;
|
|
3042
3526
|
docsTests: ResolvedDocsTestOptions;
|
|
3043
3527
|
mermaid: boolean;
|
|
3528
|
+
graphviz: ResolvedGraphvizOptions | false;
|
|
3044
3529
|
math: ResolvedMathOptions;
|
|
3045
3530
|
frontmatter: boolean;
|
|
3046
3531
|
toc: boolean;
|
|
@@ -3135,11 +3620,102 @@ interface BuiltinEmbedOptions {
|
|
|
3135
3620
|
* @default false
|
|
3136
3621
|
*/
|
|
3137
3622
|
bluesky?: boolean;
|
|
3623
|
+
/**
|
|
3624
|
+
* Render `<GoogleMaps>` as static place cards.
|
|
3625
|
+
* @default false
|
|
3626
|
+
*/
|
|
3627
|
+
googleMaps?: boolean;
|
|
3628
|
+
/**
|
|
3629
|
+
* Render `<Qiita>` as static article cards.
|
|
3630
|
+
* Pass `{ fetch: false }` to skip metadata fetching and render a link-only card.
|
|
3631
|
+
* @default false
|
|
3632
|
+
*/
|
|
3633
|
+
qiita?: boolean | ProviderArticleEmbedOptions;
|
|
3634
|
+
/**
|
|
3635
|
+
* Render `<Zenn>` as static article cards.
|
|
3636
|
+
* Pass `{ fetch: false }` to skip metadata fetching and render a link-only card.
|
|
3637
|
+
* @default false
|
|
3638
|
+
*/
|
|
3639
|
+
zenn?: boolean | ProviderArticleEmbedOptions;
|
|
3640
|
+
/**
|
|
3641
|
+
* Render `<NpmPackage>`, `<CratesIo>`, `<PyPI>`, and `<DockerHub>` as static cards.
|
|
3642
|
+
* Pass `{ fetch: false }` to skip metadata fetching and render link-only cards.
|
|
3643
|
+
* @default false
|
|
3644
|
+
*/
|
|
3645
|
+
packageRegistry?: boolean | ProviderPackageEmbedOptions;
|
|
3646
|
+
/**
|
|
3647
|
+
* Render `<CodePen>`, `<JSFiddle>`, and `<Observable>` as static playground cards.
|
|
3648
|
+
* Pass `{ iframe: true }` to include lazy iframe URLs where supported.
|
|
3649
|
+
* @default false
|
|
3650
|
+
*/
|
|
3651
|
+
playgrounds?: boolean | ProviderPlaygroundEmbedOptions;
|
|
3652
|
+
/**
|
|
3653
|
+
* Render `<Vimeo>` as static video cards.
|
|
3654
|
+
* Pass `{ iframe: true }` to include lazy player iframe URLs.
|
|
3655
|
+
* @default false
|
|
3656
|
+
*/
|
|
3657
|
+
vimeo?: boolean | ProviderVideoEmbedOptions;
|
|
3658
|
+
/**
|
|
3659
|
+
* Render `<Twitch>` as static video, clip, and channel cards.
|
|
3660
|
+
* Pass `{ iframe: true, parent: "example.com" }` to include Twitch iframes.
|
|
3661
|
+
* @default false
|
|
3662
|
+
*/
|
|
3663
|
+
twitch?: boolean | ProviderVideoEmbedOptions;
|
|
3664
|
+
/**
|
|
3665
|
+
* Render `<Discord>` as static invite/message cards.
|
|
3666
|
+
* @default false
|
|
3667
|
+
*/
|
|
3668
|
+
discord?: boolean;
|
|
3669
|
+
/**
|
|
3670
|
+
* Render `<Fediverse>`, `<Mastodon>`, `<Misskey>`, and `<Mixi2>` as static cards.
|
|
3671
|
+
* @default false
|
|
3672
|
+
*/
|
|
3673
|
+
fediverse?: boolean;
|
|
3674
|
+
/**
|
|
3675
|
+
* Render `<Facebook>` as static post cards.
|
|
3676
|
+
* @default false
|
|
3677
|
+
*/
|
|
3678
|
+
facebook?: boolean;
|
|
3679
|
+
/**
|
|
3680
|
+
* Render `<Threads>` as static post cards.
|
|
3681
|
+
* @default false
|
|
3682
|
+
*/
|
|
3683
|
+
threads?: boolean;
|
|
3684
|
+
/**
|
|
3685
|
+
* Render `<Instagram>` as static post cards.
|
|
3686
|
+
* @default false
|
|
3687
|
+
*/
|
|
3688
|
+
instagram?: boolean;
|
|
3138
3689
|
/**
|
|
3139
3690
|
* Render `<WebContainer>` lazy placeholders with isolation metadata.
|
|
3140
3691
|
* @default false
|
|
3141
3692
|
*/
|
|
3142
3693
|
webContainer?: boolean;
|
|
3694
|
+
/**
|
|
3695
|
+
* Render `<Loom>` recording cards.
|
|
3696
|
+
* @default false
|
|
3697
|
+
*/
|
|
3698
|
+
loom?: boolean;
|
|
3699
|
+
/**
|
|
3700
|
+
* Render `<Asciinema>` terminal-recording cards.
|
|
3701
|
+
* @default false
|
|
3702
|
+
*/
|
|
3703
|
+
asciinema?: boolean;
|
|
3704
|
+
/**
|
|
3705
|
+
* Render `<Figma>` file, design, board, and prototype cards.
|
|
3706
|
+
* @default false
|
|
3707
|
+
*/
|
|
3708
|
+
figma?: boolean;
|
|
3709
|
+
/**
|
|
3710
|
+
* Render `<Note>` note.com article cards.
|
|
3711
|
+
* @default false
|
|
3712
|
+
*/
|
|
3713
|
+
note?: boolean;
|
|
3714
|
+
/**
|
|
3715
|
+
* Render `<GoogleSlides>` deck cards.
|
|
3716
|
+
* @default false
|
|
3717
|
+
*/
|
|
3718
|
+
googleSlides?: boolean;
|
|
3143
3719
|
}
|
|
3144
3720
|
/**
|
|
3145
3721
|
* Options for the package-manager install-tab transform.
|
|
@@ -3167,7 +3743,24 @@ interface ResolvedBuiltinEmbedOptions {
|
|
|
3167
3743
|
twitter: TwitterEmbedOptions | false;
|
|
3168
3744
|
reddit?: RedditEmbedOptions | false;
|
|
3169
3745
|
bluesky: boolean;
|
|
3746
|
+
googleMaps?: boolean;
|
|
3747
|
+
qiita?: ProviderArticleEmbedOptions | false;
|
|
3748
|
+
zenn?: ProviderArticleEmbedOptions | false;
|
|
3749
|
+
packageRegistry?: ProviderPackageEmbedOptions | false;
|
|
3750
|
+
playgrounds?: ProviderPlaygroundEmbedOptions | false;
|
|
3751
|
+
vimeo?: ProviderVideoEmbedOptions | false;
|
|
3752
|
+
twitch?: ProviderVideoEmbedOptions | false;
|
|
3753
|
+
discord?: boolean;
|
|
3754
|
+
fediverse?: boolean;
|
|
3755
|
+
facebook?: boolean;
|
|
3756
|
+
threads?: boolean;
|
|
3757
|
+
instagram?: boolean;
|
|
3170
3758
|
webContainer: boolean;
|
|
3759
|
+
loom?: boolean;
|
|
3760
|
+
asciinema?: boolean;
|
|
3761
|
+
figma?: boolean;
|
|
3762
|
+
note?: boolean;
|
|
3763
|
+
googleSlides?: boolean;
|
|
3171
3764
|
}
|
|
3172
3765
|
/**
|
|
3173
3766
|
* Options for opt-in `{badge:variant}` inline badges.
|
|
@@ -3484,6 +4077,29 @@ interface ResolvedTimelineOptions {
|
|
|
3484
4077
|
unknownMeta: "error" | "warn" | "ignore";
|
|
3485
4078
|
empty: "error" | "warn" | "ignore";
|
|
3486
4079
|
}
|
|
4080
|
+
/**
|
|
4081
|
+
* Options for opt-in static conditional blocks.
|
|
4082
|
+
*/
|
|
4083
|
+
interface ConditionalBlockOptions {
|
|
4084
|
+
/**
|
|
4085
|
+
* Enable `::: if` / `::: else` blocks.
|
|
4086
|
+
*
|
|
4087
|
+
* @default true when the options object is supplied.
|
|
4088
|
+
*/
|
|
4089
|
+
enabled?: boolean;
|
|
4090
|
+
/**
|
|
4091
|
+
* Build-time values available as `config.*` or bare identifiers. Page
|
|
4092
|
+
* frontmatter wins for bare identifiers; use `config.name` to force config.
|
|
4093
|
+
*/
|
|
4094
|
+
values?: Record<string, unknown>;
|
|
4095
|
+
}
|
|
4096
|
+
/**
|
|
4097
|
+
* Resolved conditional-block transform options.
|
|
4098
|
+
*/
|
|
4099
|
+
interface ResolvedConditionalBlockOptions {
|
|
4100
|
+
enabled: boolean;
|
|
4101
|
+
values: Record<string, unknown>;
|
|
4102
|
+
}
|
|
3487
4103
|
/**
|
|
3488
4104
|
* Options for opt-in page-bundle resources and image processing.
|
|
3489
4105
|
*/
|
|
@@ -4416,6 +5032,18 @@ interface TransformResult {
|
|
|
4416
5032
|
* Unique JSX component names in document order (empty when none).
|
|
4417
5033
|
*/
|
|
4418
5034
|
components: string[];
|
|
5035
|
+
/**
|
|
5036
|
+
* Labeled cross-reference targets collected during the Markdown transform.
|
|
5037
|
+
*/
|
|
5038
|
+
crossReferences: CrossReferenceEntry[];
|
|
5039
|
+
/**
|
|
5040
|
+
* Citation references collected during the Markdown transform.
|
|
5041
|
+
*/
|
|
5042
|
+
citations: CitationReference[];
|
|
5043
|
+
/**
|
|
5044
|
+
* Bibliography entries used by this document.
|
|
5045
|
+
*/
|
|
5046
|
+
bibliography: BibliographyEntry[];
|
|
4419
5047
|
}
|
|
4420
5048
|
/**
|
|
4421
5049
|
* Table of contents entry.
|
|
@@ -5363,8 +5991,10 @@ declare module "virtual:ox-content/collections" {
|
|
|
5363
5991
|
export default api;
|
|
5364
5992
|
}
|
|
5365
5993
|
//#endregion
|
|
5366
|
-
//#region src/
|
|
5994
|
+
//#region src/builtin-embed-options.d.ts
|
|
5367
5995
|
declare function resolveBuiltinEmbedOptions(options: OxContentOptions["embeds"]): ResolvedOptions["embeds"];
|
|
5996
|
+
//#endregion
|
|
5997
|
+
//#region src/resolve-options.d.ts
|
|
5368
5998
|
declare function resolveMathOptions(options: OxContentOptions["math"]): ResolvedOptions["math"];
|
|
5369
5999
|
declare function resolveBadgeOptions(options: OxContentOptions["badges"]): ResolvedOptions["badges"];
|
|
5370
6000
|
declare function resolveKeyboardKeysOptions(options: OxContentOptions["keyboardKeys"]): NonNullable<ResolvedOptions["keyboardKeys"]>;
|
|
@@ -5794,10 +6424,11 @@ declare function renderIslandComponentImports(usedComponents: readonly string[],
|
|
|
5794
6424
|
* Optional adapter-side island SSR.
|
|
5795
6425
|
*
|
|
5796
6426
|
* Framework plugins may supply `renderIsland` to replace island inner HTML at
|
|
5797
|
-
* transform time.
|
|
5798
|
-
*
|
|
6427
|
+
* transform time. The hook receives the original slot HTML so adapters can pass
|
|
6428
|
+
* children into their SSR runtime. This helper stays framework-neutral and does
|
|
6429
|
+
* not import a framework SSR runtime.
|
|
5799
6430
|
*/
|
|
5800
|
-
type RenderIslandFn = (name: string, props: Record<string, unknown>, filePath: string) => string | Promise<string>;
|
|
6431
|
+
type RenderIslandFn = (name: string, props: Record<string, unknown>, filePath: string, slotHtml?: string) => string | Promise<string>;
|
|
5801
6432
|
declare function applyIslandSsrHtml(html: string, renderIsland: RenderIslandFn, filePath: string, names?: Iterable<string>): Promise<string>;
|
|
5802
6433
|
//#endregion
|
|
5803
6434
|
//#region src/resolve-image-options.d.ts
|
|
@@ -6614,24 +7245,35 @@ declare function resolveCascadeOptions(value: boolean | CascadeOptions | undefin
|
|
|
6614
7245
|
*
|
|
6615
7246
|
* `false` / omitted stays off. `true` or `{}` enables empty defaults.
|
|
6616
7247
|
* A path map (`{ "/old": "/new" }`) enables the feature with that map.
|
|
6617
|
-
* `{ map, provider, headers, json, allowExternal }` overrides only set fields.
|
|
7248
|
+
* `{ map, provider, headers, json, html, allowExternal }` overrides only set fields.
|
|
6618
7249
|
* Pass `env` to inject CI detection without reading the real `process.env`.
|
|
6619
7250
|
*/
|
|
6620
7251
|
declare function resolveRedirectsOptions(value: boolean | RedirectsOptions | Record<string, string> | undefined, env?: NodeJS.ProcessEnv): ResolvedRedirectsOptions;
|
|
6621
7252
|
//#endregion
|
|
6622
|
-
//#region src/
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
7253
|
+
//#region src/markdown-tables.d.ts
|
|
7254
|
+
interface MarkdownTableEnhancementOptions {
|
|
7255
|
+
/**
|
|
7256
|
+
* Tables to enhance. Defaults to Markdown content tables styled by
|
|
7257
|
+
* `@ox-content/vite-plugin/styles/core.css`.
|
|
7258
|
+
*/
|
|
7259
|
+
selector?: string;
|
|
7260
|
+
/**
|
|
7261
|
+
* Accessible name applied only when an overflowing table has no existing
|
|
7262
|
+
* `aria-label` or `aria-labelledby`.
|
|
7263
|
+
*/
|
|
7264
|
+
label?: string;
|
|
6634
7265
|
}
|
|
7266
|
+
declare function markdownTableScrollLabel(locale?: string): string;
|
|
7267
|
+
/**
|
|
7268
|
+
* Makes overflowing Markdown tables keyboard-scrollable without wrapping or
|
|
7269
|
+
* replacing the native `<table>` element.
|
|
7270
|
+
*
|
|
7271
|
+
* Run this after rendering Markdown and again after layout-changing updates.
|
|
7272
|
+
* Narrow tables stay out of the tab order when overflow can be measured.
|
|
7273
|
+
*/
|
|
7274
|
+
declare function enhanceMarkdownTables(root?: ParentNode, options?: MarkdownTableEnhancementOptions): number;
|
|
7275
|
+
//#endregion
|
|
7276
|
+
//#region src/feeds.d.ts
|
|
6635
7277
|
/** Inputs for rendering feed bodies. */
|
|
6636
7278
|
interface FeedsRenderInput {
|
|
6637
7279
|
options?: ResolvedFeedsOptions | null;
|
|
@@ -6644,10 +7286,28 @@ interface FeedsRenderInput {
|
|
|
6644
7286
|
items?: readonly FeedItemInput[];
|
|
6645
7287
|
publishState?: ResolvedPublishStateOptions;
|
|
6646
7288
|
}
|
|
6647
|
-
/**
|
|
6648
|
-
interface
|
|
6649
|
-
|
|
7289
|
+
/** Rendered feed bodies, or a skip warning. */
|
|
7290
|
+
interface FeedsRenderResult {
|
|
7291
|
+
rssXml?: string;
|
|
7292
|
+
atomXml?: string;
|
|
7293
|
+
jsonFeed?: string;
|
|
7294
|
+
warning?: string;
|
|
7295
|
+
}
|
|
7296
|
+
interface RenderedFeedFile {
|
|
7297
|
+
path: string;
|
|
7298
|
+
contentType: string;
|
|
7299
|
+
content: string;
|
|
7300
|
+
}
|
|
7301
|
+
interface RenderFeedFilesInput extends FeedsRenderInput {
|
|
6650
7302
|
base: string;
|
|
7303
|
+
outDir?: string;
|
|
7304
|
+
}
|
|
7305
|
+
interface RenderFeedFilesResult {
|
|
7306
|
+
files: RenderedFeedFile[];
|
|
7307
|
+
warning?: string;
|
|
7308
|
+
}
|
|
7309
|
+
interface WriteFeedFilesInput extends RenderFeedFilesInput {
|
|
7310
|
+
outDir: string;
|
|
6651
7311
|
}
|
|
6652
7312
|
/**
|
|
6653
7313
|
* Resolves `feeds` with defaults.
|
|
@@ -6658,7 +7318,9 @@ interface WriteFeedFilesInput extends FeedsRenderInput {
|
|
|
6658
7318
|
* multiple feeds.
|
|
6659
7319
|
*/
|
|
6660
7320
|
declare function resolveFeedsOptions(value: boolean | FeedsOptions | undefined): ResolvedFeedsOptions;
|
|
6661
|
-
/**
|
|
7321
|
+
/** Builds RSS / Atom / JSON Feed bodies without writing files. */
|
|
7322
|
+
declare function generateFeeds(input: FeedsRenderInput): FeedsRenderResult;
|
|
7323
|
+
declare function renderFeedFiles(input: RenderFeedFilesInput): Promise<RenderFeedFilesResult>;
|
|
6662
7324
|
declare function writeFeedFiles(input: WriteFeedFilesInput): Promise<{
|
|
6663
7325
|
files: string[];
|
|
6664
7326
|
warning?: string;
|
|
@@ -6686,6 +7348,10 @@ declare class BlogFeedError extends Error {
|
|
|
6686
7348
|
*/
|
|
6687
7349
|
declare function readingTimeMinutes(markdown: string): number;
|
|
6688
7350
|
//#endregion
|
|
7351
|
+
//#region src/budoux.d.ts
|
|
7352
|
+
declare function resolveBudouxOptions(options: OxContentOptions["budoux"]): ResolvedBudouxOptions;
|
|
7353
|
+
declare function transformBudouxHtml(html: string, options: ResolvedBudouxOptions | undefined): Promise<string>;
|
|
7354
|
+
//#endregion
|
|
6689
7355
|
//#region src/pwa.d.ts
|
|
6690
7356
|
/**
|
|
6691
7357
|
* Resolves `pwa` with defaults.
|
|
@@ -6753,7 +7419,7 @@ declare function resolveSearchOptions(options: SearchOptions | boolean | undefin
|
|
|
6753
7419
|
* then drops matching documents and rebuilds the BM25 index so omitted
|
|
6754
7420
|
* pages (such as the opt-in 404 source) are not searchable.
|
|
6755
7421
|
*/
|
|
6756
|
-
declare function buildSearchIndex(srcDir: string, base: string, extensions?: readonly string[], publishState?: ResolvedPublishStateOptions, excludeDocumentIds?: readonly string[], mdx?: boolean): Promise<string>;
|
|
7422
|
+
declare function buildSearchIndex(srcDir: string, base: string, extensions?: readonly string[], publishState?: ResolvedPublishStateOptions, excludeDocumentIds?: readonly string[], mdx?: boolean, conditionalBlocks?: ResolvedConditionalBlockOptions, citations?: ResolvedCitationsOptions): Promise<string>;
|
|
6757
7423
|
/**
|
|
6758
7424
|
* Writes the search index to a file.
|
|
6759
7425
|
*/
|
|
@@ -7058,9 +7724,6 @@ interface OgBrowserSession extends AsyncDisposable {
|
|
|
7058
7724
|
}
|
|
7059
7725
|
//#endregion
|
|
7060
7726
|
//#region src/og-image/index.d.ts
|
|
7061
|
-
/**
|
|
7062
|
-
* Resolves user-provided OG image options with defaults.
|
|
7063
|
-
*/
|
|
7064
7727
|
declare function resolveOgImageOptions(options: OgImageOptions$1 | undefined): ResolvedOgImageOptions;
|
|
7065
7728
|
/**
|
|
7066
7729
|
* A single page entry for batch OG image generation.
|
|
@@ -7234,5 +7897,5 @@ declare function oxContent(options?: OxContentOptions): Plugin[];
|
|
|
7234
7897
|
*/
|
|
7235
7898
|
declare function generateVirtualModule(path: string, options: ResolvedOptions): string;
|
|
7236
7899
|
//#endregion
|
|
7237
|
-
export { A11yOptions, AbbreviationsOptions, AttrsOptions, BadgeOptions, type BasePageProps, BlogAuthor, BlogFeedError, BlogFeedFailurePolicy, BlogFeedSource, BlogOptions, BuiltinEmbedOptions, BuiltinPmOptions, CardOptions, CascadeOptions, CodeAnnotationKind, CodeAnnotationSyntax, CodeAnnotationsOptions, type CodeBlockDiagnostic, CodeBlockLintOptions, CodeBlockTypecheckOptions, CodeGroupOptions, CodeImportOptions, type CollectedDocsTest, CollectionEntry, CollectionIncludeField, CollectionManifest, CollectionOptions, CollectionQueryBuilder, CollectionQueryOperator, CollectionsOptions, type ComponentRegistry, ContainerOptions, ContainerTypeOptions, ContributorsOptions, DEFAULT_HTML_TEMPLATE, DEFAULT_MARKDOWN_EXTENSIONS, DataTableOptions, DefaultTheme, DefinitionListOptions, type DiscoverDocumentMdxIslandsInput, type DiscoverDocumentMdxIslandsResult, type DiscoverRegisteredMdxComponentsInput, DocEntry, DocMember, DocsEntryPoint, DocsNavigationItem, DocsOptions, DocsSortStrategy, DocsSummary, type DocsTestFileOptions, type DocsTestHarnessOptions, DocsTestOptions, DocsTestRunError, type DocsTestRunResult, type DocsTestSource, type DocsTestWriteResult, type DocumentImportDiagnostic, type DocumentImportDiagnosticCode, EditThisPageOptions, EmojiShortcodeOptions, EntryPageConfig, type ExtractedCodeBlock, ExtractedDocs, FeatureConfig, FeedChannelOptions, FeedFormat, FeedsOptions, FileTreeIconOptions, FileTreeOptions, Fragment, type FrameworkCodegenMode, type FrameworkCodegenTarget, type FrameworkComponentIsland, type FrameworkMarkdownOptions, type FrameworkRenderTarget, type FrameworkTransformData, type FrontmatterSchema, type GenerateVitePressMigrationConfigOptions, GeneratedDocsData, GeneratedOpenApiDocs, type GitHubLineRange, type GitHubOptions, type GitHubRepoData, type GitHubSourceCommit, type GitHubSourceData, type GitHubSourceRef, type GlobalComponentMap, type HeadAlternate, type HeadDiagnostic, type HeadInput, type HeadJsonLd, type HeadLink, type HeadMeta, type HeadValidationMode, type HeaderNavItem, HeadingPermalinksOptions, HeroAction, HeroConfig, HeroImage, HeroNotice, I18nOptions, IconsOptions, ImageGalleryOptions, ImageOptions, IncludeOptions, type IncrementalMarkdownParseAppendOptions, type IncrementalMarkdownParseResult, IncrementalMarkdownParser, type IncrementalMarkdownParserOptions, type IncrementalMarkdownRenderAppendOptions, type IncrementalMarkdownRenderResult, IncrementalMarkdownRenderer, type IncrementalMarkdownRendererOptions, type IslandInfo, type JSXChild, type JSXElementType, type JSXNode, type JSXProps, JsonLdOptions, JsonLdPageType, JsonLdPublisherOptions, KeyboardKeysOptions, type LoadStrategy, LocaleConfig, type LocaleLabel, MagicLinkAlias, MagicLinkImageOverride, MagicLinkOptions, type MarkdownChunkSource, MarkdownDisplayFormat, type MarkdownLintFileDiagnostic as MarkdownLintBatchDiagnostic, type MarkdownLintFileDiagnostic, type MarkdownLintDiagnostic, type MarkdownLintDictionaryOptions, type MarkdownLintFileOptions, type MarkdownLintFileOptions as MarkdownLintProjectOptions, type MarkdownLintFileResult, type MarkdownLintFilesResult, type MarkdownLintLanguage, type MarkdownLintOptions, type MarkdownLintResult, type MarkdownLintRuleOptions, type MarkdownLintSeverity, type MarkdownLintStandardDictionaryOptions, MarkdownNode, type MarkdownProcessor, MarkdownSourceOptions, MarkdownTransformer, MathOptions, MdxImport, MdxImportSpecifier, MdxImportSpecifierKind, type MermaidOptions, type NavGroup, NavItem, NotByAiOptions, NotFoundOptions, type OgBrowserSession, OgImageOptions, type OgImagePageEntry, type OgImageOptions$1 as OgImagePluginOptions, OgImageRenderer, type OgImageResult, OgImageSatoriFont, OgImageSatoriFontWeight, OgImageSatoriOptions, type OgImageTemplateFn, type OgImageTemplateProps, type OgpData, type OgpOptions, OpenApiDocsInput, OpenApiDocsOptions, OpenApiDocsSource, OxContentOptions, type PageChromeFlags, type PageData, type PageProps, PageResourceError, ParamDoc, type ParseIslandsResult, PartialsOptions, PermalinksOptions, type PlanSsgOutputsInput, type PlanSsgOutputsOptions, PublishStateOptions, PwaOptions, ReaderChromeOptions, type RedditEmbedOptions, type RedditPostData, type RedditPostReference, RedirectProvider, RedirectsOptions, type RenderContext, type RenderIslandComponentImportsInput, type RenderIslandFn, type RenderedHead, type ResolveDocumentComponentImportsInput, type ResolveDocumentComponentImportsResult, ResolvedA11y, ResolvedAbbreviationsOptions, ResolvedAttrsOptions, ResolvedBadgeOptions, ResolvedBlogFeedSource, ResolvedBlogOptions, ResolvedBuiltinEmbedOptions, ResolvedCardOptions, ResolvedCascadeOptions, ResolvedCodeAnnotationsOptions, ResolvedCodeBlockLintOptions, ResolvedCodeBlockTypecheckOptions, ResolvedCodeGroupOptions, ResolvedCodeImportOptions, ResolvedCollectionOptions, ResolvedCollectionsOptions, ResolvedContainerOptions, ResolvedContributors, ResolvedDataTableOptions, ResolvedDefinitionListOptions, ResolvedDocsEntryPoint, ResolvedDocsOptions, ResolvedDocsTestOptions, type ResolvedDocumentComponentImport, ResolvedEditThisPageOptions, ResolvedEmojiShortcodeOptions, ResolvedFeedChannel, ResolvedFeedsOptions, ResolvedFileTreeOptions, ResolvedHeadingPermalinksOptions, ResolvedI18nOptions, ResolvedIconsOptions, ResolvedImageGalleryOptions, ResolvedImageOptions, ResolvedIncludeOptions, ResolvedJsonLd, ResolvedKeyboardKeysOptions, ResolvedMagicLinkOptions, ResolvedMarkdownSourceOptions, ResolvedMathOptions, ResolvedNotByAiOptions, ResolvedNotFoundOptions, ResolvedOgImageOptions, ResolvedOpenApiDocsInput, ResolvedOpenApiDocsOptions, ResolvedOptions, ResolvedPartialsOptions, ResolvedPermalinksOptions, ResolvedPublishStateOptions, ResolvedPwaOptions, ResolvedReaderChrome, ResolvedRedirectsOptions, ResolvedResourcesOptions, ResolvedSanitizeOptions, ResolvedSearchOptions, ResolvedSectionIndexOptions, ResolvedSiteMapsOptions, ResolvedSsgOptions, ResolvedStepsOptions, ResolvedTaxonomiesOptions, ResolvedTeamOptions, type ResolvedThemeConfig, ResolvedTimelineOptions, ResolvedTypedHoverOptions, ResolvedVersionEntry, ResolvedVersionsOptions, ResolvedWikiLinkOptions, ResourcesOptions, ReturnDoc, type RunDocsTestsOptions, SanitizeOptions, ScopedSearchQuery, SearchDocument, SearchOptions, SearchResult, SectionIndexOptions, SectionIndexStyle, type SidebarItem, type SiteConfig, type SiteHead, SiteMapsOptions, type SocialLinks, SsgNavigationGroup, SsgNavigationItem, SsgOptions, SsgOutputPageInput, type SsgOutputPlan, StepsOptions, TaxonomiesOptions, TeamLink, TeamMember, TeamOptions, type ThemeAnnouncement, type ThemeColors, type ThemeComponent, type ThemeConfig, type ThemeEmbed, type ThemeEntryPage, type ThemeFontValue, type ThemeFonts, type ThemeFooter, type ThemeHeader, type ThemeLayout, type ThemeProps, type ThemeRenderOptions, type ThemeTokens, type ThemeWebFont, ThrowsDoc, TimelineOptions, TocEntry, type TransformAllOptions, TransformContext, TransformResult, type TwitterEmbedOptions, type TypecheckCodeBlockOptions, TypedHoverOptions, VersionBannerKind, VersionEntry, VersionsOptions, type VitePressConfig, type VitePressFooter, type VitePressLogo, type VitePressNavItem, type VitePressSidebar, type VitePressSidebarItem, type VitePressSocialLink, type VitePressThemeConfig, WikiLinkOptions, type WriteResourceFilesInput, type WriteResourceFilesPage, type WriteResourceFilesResult, type WrittenDocsTestFile, type YouTubeOptions, applyIslandSsrHtml, buildCollectionManifest, buildSearchIndex, buildSsg, classifyPublishState, clearRenderContext, collectDocsTests, collectGitHubRepos, collectGitHubSources, collectMdxIslandNamesFromHtml, collectMdxJsxNamesFromAst, collectOgpUrls, convertVitePressNav, convertVitePressSidebar, createFrameworkMarkdownOptions, createI18nPlugin, createIncrementalMarkdownParser, createIncrementalMarkdownRenderer, createMarkdownEnvironment, createMarkdownProcessor, createTheme, defaultTheme, defineCollection, defineCollections, defineTheme, discoverDocumentMdxIslands, discoverRegisteredMdxComponents, each, escapeSvelteMarkup, extractCodeBlocks, extractDocs, extractDocsTests, extractIslandInfo, extractVideoId, fetchGitHubSource, fetchOgpData, fetchRepoData, fromVitePressConfig, generateCollectionsVirtualModule, generateFrontmatterTypes, generateHydrationScript, generateMarkdown, generateOgImages, generateOpenApiDocs, generateTabsCSS, generateTypes, generateVirtualModule, generateVitePressMigrationConfig, hasIslands, inferType, intersectHydratableComponentNames, intersectRegisteredComponentNames, isMarkdownFilePath, isMdxFilePath, isRegisteredComponent, jsx, jsxs, lintCodeBlocks, lintMarkdown, lintMarkdownAsync, lintMarkdownFile, lintMarkdownFiles, mergeThemes, mermaidClientScript, normalizeMarkdownExtensions, normalizeVitePressFrontmatter, oxContent, parseGitHubLineRange, parseGitHubPermalink, parsePageChromeFlags, parseRedditPostReference, partitionPublishedPages, planSsgOutputs, prefetchGitHubRepos, prefetchGitHubSources, prefetchOgpData, raw, readingTimeMinutes, renderAllPages, renderHead, renderHtmlToFrameworkCode, renderHtmlToReactComponent, renderHtmlToReactCreateElement, renderHtmlToSvelteComponent, renderHtmlToVueComponent, renderHtmlToVueH, renderIslandComponentImports, renderMarkdown, renderMarkdownStream, renderPage, renderToString, resolveAbbreviationsOptions, resolveBadgeOptions, resolveBlogCollectionName, resolveBlogOptions, resolveBuiltinEmbedOptions, resolveCardOptions, resolveCascadeOptions, resolveCodeGroupOptions, resolveCollectionsOptions, resolveContentRootPath, resolveDataTableOptions, resolveDocsOptions, resolveDocumentComponentImports, resolveFeedsOptions, resolveFileTreeOptions, resolveGitLastmod, resolveHeadValidation, resolveHeaderNavItems, resolveHeadingPermalinksOptions, resolveI18nOptions, resolveImageGalleryOptions, resolveImageOptions, resolveIncludeOptions, resolveKeyboardKeysOptions, resolveLocaleLabel, resolveMarkdownSourceOptions, resolveMathOptions, resolveMdxForFilePath, resolveNotByAiOptions, resolveNotFoundOptions, resolveOgImageOptions, resolvePageChromeOption, resolvePartialsOptions, resolvePermalinksOptions, resolvePublishStateOptions, resolvePwaOptions, resolveRedirectsOptions, resolveResourcesOptions, resolveSearchOptions, resolveSectionIndexOptions, resolveSiteMapsOptions, resolveSsgOptions, resolveStepsOptions, resolveTaxonomiesOptions, resolveTeamOptions, resolveTheme, resolveTimelineOptions, resolveTypedHoverOptions, resolveVersionsOptions, runDocsTests, setRenderContext, shouldLintMarkdownFile, stripMarkdownExtension, stripViteQuery, transformAllPlugins, transformGitHub, transformIslands, transformMarkdown, transformMermaidStatic, transformOgp, transformRedditEmbeds, transformTabs, transformYouTube, typecheckCodeBlocks, useIsActive, useNav, usePageProps, useRenderContext, useSiteConfig, when, writeDocs, writeDocsTestFiles, writeFeedFiles, writeMarkdownCompanions, writeResourceFiles, writeSearchIndex, writeSiteMapFiles };
|
|
7900
|
+
export { A11yOptions, AbbreviationsOptions, AttrsOptions, BadgeOptions, type BasePageProps, type BibliographyEntry, BlogAuthor, BlogFeedError, BlogFeedFailurePolicy, BlogFeedSource, BlogOptions, type BudouxLanguage, type BudouxOptions, type BudouxParser, BuiltinEmbedOptions, BuiltinPmOptions, CardOptions, CascadeOptions, type CitationFailureMode, type CitationReference, type CitationsOptions, CodeAnnotationKind, CodeAnnotationSyntax, CodeAnnotationsOptions, type CodeBlockDiagnostic, CodeBlockLintOptions, CodeBlockTypecheckOptions, CodeGroupOptions, CodeImportOptions, type CollectedDocsTest, CollectionEntry, CollectionIncludeField, CollectionManifest, CollectionOptions, CollectionQueryBuilder, CollectionQueryOperator, CollectionsOptions, type ComponentRegistry, ConditionalBlockOptions, ContainerOptions, ContainerTypeOptions, ContributorsOptions, type CrossReferenceEntry, type CrossReferenceFailureMode, type CrossReferenceKind, type CrossReferenceLabelOptions, type CrossReferencesOptions, DEFAULT_HTML_TEMPLATE, DEFAULT_MARKDOWN_EXTENSIONS, DataTableOptions, DefaultTheme, DefinitionListOptions, type DiscoverDocumentMdxIslandsInput, type DiscoverDocumentMdxIslandsResult, type DiscoverRegisteredMdxComponentsInput, DocEntry, DocMember, DocsEntryPoint, DocsNavigationItem, DocsOptions, DocsSortStrategy, DocsSummary, type DocsTestFileOptions, type DocsTestHarnessOptions, DocsTestOptions, DocsTestRunError, type DocsTestRunResult, type DocsTestSource, type DocsTestWriteResult, type DocumentImportDiagnostic, type DocumentImportDiagnosticCode, EditThisPageOptions, EmojiShortcodeOptions, EntryPageConfig, type ExtractedCodeBlock, ExtractedDocs, FeatureConfig, FeedChannelOptions, FeedFormat, FeedItemAttachment, FeedItemAuthor, FeedItemAuthorInput, FeedItemInput, FeedItemsResolveContext, FeedItemsSource, FeedsOptions, type FeedsRenderInput, type FeedsRenderResult, FileTreeIconOptions, FileTreeOptions, Fragment, type FrameworkCodegenMode, type FrameworkCodegenTarget, type FrameworkComponentIsland, type FrameworkMarkdownOptions, type FrameworkRenderTarget, type FrameworkTransformData, type FrontmatterSchema, type GenerateVitePressMigrationConfigOptions, GeneratedDocsData, GeneratedOpenApiDocs, type GitHubLineRange, type GitHubOptions, type GitHubRepoData, type GitHubSourceCommit, type GitHubSourceData, type GitHubSourceRef, type GlobalComponentMap, type GraphvizFailureMode, type GraphvizOptions, type HeadAlternate, type HeadDiagnostic, type HeadInput, type HeadJsonLd, type HeadLink, type HeadMeta, type HeadValidationMode, type HeaderNavItem, HeadingPermalinksOptions, HeroAction, HeroConfig, HeroImage, HeroNotice, I18nOptions, IconsOptions, ImageGalleryOptions, ImageOptions, IncludeOptions, type IncrementalMarkdownParseAppendOptions, type IncrementalMarkdownParseResult, IncrementalMarkdownParser, type IncrementalMarkdownParserOptions, type IncrementalMarkdownRenderAppendOptions, type IncrementalMarkdownRenderResult, IncrementalMarkdownRenderer, type IncrementalMarkdownRendererOptions, type IslandInfo, type JSXChild, type JSXElementType, type JSXNode, type JSXProps, JsonLdOptions, JsonLdPageType, JsonLdPublisherOptions, KeyboardKeysOptions, type LoadStrategy, LocaleConfig, type LocaleLabel, MagicLinkAlias, MagicLinkImageOverride, MagicLinkOptions, type MarkdownChunkSource, MarkdownDisplayFormat, type MarkdownLintFileDiagnostic as MarkdownLintBatchDiagnostic, type MarkdownLintFileDiagnostic, type MarkdownLintDiagnostic, type MarkdownLintDictionaryOptions, type MarkdownLintFileOptions, type MarkdownLintFileOptions as MarkdownLintProjectOptions, type MarkdownLintFileResult, type MarkdownLintFilesResult, type MarkdownLintLanguage, type MarkdownLintOptions, type MarkdownLintResult, type MarkdownLintRuleOptions, type MarkdownLintSeverity, type MarkdownLintStandardDictionaryOptions, MarkdownNode, type MarkdownProcessor, MarkdownSourceOptions, type MarkdownTableEnhancementOptions, MarkdownTransformer, MathOptions, MdxImport, MdxImportSpecifier, MdxImportSpecifierKind, type MermaidOptions, type NavGroup, NavItem, NotByAiOptions, NotFoundOptions, type OgBrowserSession, OgImageOptions, type OgImagePageEntry, type OgImageOptions$1 as OgImagePluginOptions, OgImageRenderer, type OgImageResult, OgImageSatoriFont, OgImageSatoriFontWeight, OgImageSatoriOptions, type OgImageTemplateFn, type OgImageTemplateProps, type OgpData, type OgpOptions, OpenApiDocsInput, OpenApiDocsOptions, OpenApiDocsSource, OxContentOptions, type PageChromeFlags, type PageData, type PageProps, PageResourceError, ParamDoc, type ParseIslandsResult, PartialsOptions, PermalinksOptions, type PlanSsgOutputsInput, type PlanSsgOutputsOptions, PublishStateOptions, PwaOptions, ReaderChromeOptions, type RedditEmbedOptions, type RedditPostData, type RedditPostReference, RedirectProvider, RedirectsOptions, type RenderContext, type RenderFeedFilesInput, type RenderFeedFilesResult, type RenderIslandComponentImportsInput, type RenderIslandFn, type RenderedFeedFile, type RenderedHead, type ResolveDocumentComponentImportsInput, type ResolveDocumentComponentImportsResult, ResolvedA11y, ResolvedAbbreviationsOptions, ResolvedAttrsOptions, ResolvedBadgeOptions, ResolvedBlogFeedSource, ResolvedBlogOptions, type ResolvedBudouxOptions, ResolvedBuiltinEmbedOptions, ResolvedCardOptions, ResolvedCascadeOptions, type ResolvedCitationsOptions, ResolvedCodeAnnotationsOptions, ResolvedCodeBlockLintOptions, ResolvedCodeBlockTypecheckOptions, ResolvedCodeGroupOptions, ResolvedCodeImportOptions, ResolvedCollectionOptions, ResolvedCollectionsOptions, ResolvedConditionalBlockOptions, ResolvedContainerOptions, ResolvedContributors, type ResolvedCrossReferencesOptions, ResolvedDataTableOptions, ResolvedDefinitionListOptions, ResolvedDocsEntryPoint, ResolvedDocsOptions, ResolvedDocsTestOptions, type ResolvedDocumentComponentImport, ResolvedEditThisPageOptions, ResolvedEmojiShortcodeOptions, ResolvedFeedChannel, ResolvedFeedsOptions, ResolvedFileTreeOptions, type ResolvedGraphvizOptions, ResolvedHeadingPermalinksOptions, ResolvedI18nOptions, ResolvedIconsOptions, ResolvedImageGalleryOptions, ResolvedImageOptions, ResolvedIncludeOptions, ResolvedJsonLd, ResolvedKeyboardKeysOptions, ResolvedMagicLinkOptions, ResolvedMarkdownSourceOptions, ResolvedMathOptions, ResolvedNotByAiOptions, ResolvedNotFoundOptions, ResolvedOgImageOptions, ResolvedOpenApiDocsInput, ResolvedOpenApiDocsOptions, ResolvedOptions, ResolvedPartialsOptions, ResolvedPermalinksOptions, ResolvedPublishStateOptions, ResolvedPwaOptions, ResolvedReaderChrome, ResolvedRedirectsOptions, ResolvedResourcesOptions, ResolvedSanitizeOptions, ResolvedSearchOptions, ResolvedSectionIndexOptions, ResolvedSiteMapsOptions, ResolvedSsgOptions, ResolvedStepsOptions, ResolvedTaxonomiesOptions, ResolvedTeamOptions, type ResolvedThemeConfig, ResolvedTimelineOptions, ResolvedTypedHoverOptions, ResolvedVersionEntry, ResolvedVersionsOptions, ResolvedWikiLinkOptions, ResourcesOptions, ReturnDoc, type RunDocsTestsOptions, SanitizeOptions, ScopedSearchQuery, SearchDocument, SearchOptions, SearchResult, SectionIndexOptions, SectionIndexStyle, type SidebarItem, type SiteConfig, type SiteHead, SiteMapsOptions, type SocialLinks, SsgNavigationGroup, SsgNavigationItem, SsgOptions, SsgOutputPageInput, type SsgOutputPlan, StepsOptions, TaxonomiesOptions, TeamLink, TeamMember, TeamOptions, type ThemeAnnouncement, type ThemeColors, type ThemeComponent, type ThemeConfig, type ThemeEmbed, type ThemeEntryPage, type ThemeFontValue, type ThemeFonts, type ThemeFooter, type ThemeHeader, type ThemeLayout, type ThemeProps, type ThemeRenderOptions, type ThemeTokens, type ThemeWebFont, ThrowsDoc, TimelineOptions, TocEntry, type TransformAllOptions, TransformContext, TransformResult, type TwitterEmbedOptions, type TypecheckCodeBlockOptions, TypedHoverOptions, VersionBannerKind, VersionEntry, VersionsOptions, type VitePressConfig, type VitePressFooter, type VitePressLogo, type VitePressNavItem, type VitePressSidebar, type VitePressSidebarItem, type VitePressSocialLink, type VitePressThemeConfig, WikiLinkOptions, type WriteFeedFilesInput, type WriteResourceFilesInput, type WriteResourceFilesPage, type WriteResourceFilesResult, type WrittenDocsTestFile, type YouTubeOptions, applyIslandSsrHtml, buildCollectionManifest, buildSearchIndex, buildSsg, classifyPublishState, clearGraphvizCache, clearRenderContext, collectDocsTests, collectGitHubRepos, collectGitHubSources, collectMdxIslandNamesFromHtml, collectMdxJsxNamesFromAst, collectOgpUrls, convertVitePressNav, convertVitePressSidebar, createFrameworkMarkdownOptions, createI18nPlugin, createIncrementalMarkdownParser, createIncrementalMarkdownRenderer, createMarkdownEnvironment, createMarkdownProcessor, createTheme, defaultTheme, defineCollection, defineCollections, defineTheme, discoverDocumentMdxIslands, discoverRegisteredMdxComponents, each, enhanceMarkdownTables, escapeSvelteMarkup, extractCodeBlocks, extractDocs, extractDocsTests, extractIslandInfo, extractVideoId, fetchGitHubSource, fetchOgpData, fetchRepoData, fromVitePressConfig, generateCollectionsVirtualModule, generateFeeds, generateFrontmatterTypes, generateHydrationScript, generateMarkdown, generateOgImages, generateOpenApiDocs, generateTabsCSS, generateTypes, generateVirtualModule, generateVitePressMigrationConfig, hasIslands, inferType, intersectHydratableComponentNames, intersectRegisteredComponentNames, isMarkdownFilePath, isMdxFilePath, isRegisteredComponent, jsx, jsxs, lintCodeBlocks, lintMarkdown, lintMarkdownAsync, lintMarkdownFile, lintMarkdownFiles, markdownTableScrollLabel, mergeThemes, mermaidClientScript, normalizeMarkdownExtensions, normalizeVitePressFrontmatter, oxContent, parseGitHubLineRange, parseGitHubPermalink, parsePageChromeFlags, parseRedditPostReference, partitionPublishedPages, planSsgOutputs, prefetchGitHubRepos, prefetchGitHubSources, prefetchOgpData, raw, readingTimeMinutes, renderAllPages, renderFeedFiles, renderHead, renderHtmlToFrameworkCode, renderHtmlToReactComponent, renderHtmlToReactCreateElement, renderHtmlToSvelteComponent, renderHtmlToVueComponent, renderHtmlToVueH, renderIslandComponentImports, renderMarkdown, renderMarkdownStream, renderPage, renderToString, resolveAbbreviationsOptions, resolveBadgeOptions, resolveBlogCollectionName, resolveBlogOptions, resolveBudouxOptions, resolveBuiltinEmbedOptions, resolveCardOptions, resolveCascadeOptions, resolveCodeGroupOptions, resolveCollectionsOptions, resolveContentRootPath, resolveDataTableOptions, resolveDocsOptions, resolveDocumentComponentImports, resolveFeedsOptions, resolveFileTreeOptions, resolveGitLastmod, resolveGraphvizOptions, resolveHeadValidation, resolveHeaderNavItems, resolveHeadingPermalinksOptions, resolveI18nOptions, resolveImageGalleryOptions, resolveImageOptions, resolveIncludeOptions, resolveKeyboardKeysOptions, resolveLocaleLabel, resolveMarkdownSourceOptions, resolveMathOptions, resolveMdxForFilePath, resolveNotByAiOptions, resolveNotFoundOptions, resolveOgImageOptions, resolvePageChromeOption, resolvePartialsOptions, resolvePermalinksOptions, resolvePublishStateOptions, resolvePwaOptions, resolveRedirectsOptions, resolveResourcesOptions, resolveSearchOptions, resolveSectionIndexOptions, resolveSiteMapsOptions, resolveSsgOptions, resolveStepsOptions, resolveTaxonomiesOptions, resolveTeamOptions, resolveTheme, resolveTimelineOptions, resolveTypedHoverOptions, resolveVersionsOptions, runDocsTests, setRenderContext, shouldLintMarkdownFile, stripMarkdownExtension, stripViteQuery, transformAllPlugins, transformBudouxHtml, transformGitHub, transformGraphvizStatic, transformIslands, transformMarkdown, transformMermaidStatic, transformOgp, transformRedditEmbeds, transformTabs, transformYouTube, typecheckCodeBlocks, useIsActive, useNav, usePageProps, useRenderContext, useSiteConfig, when, writeDocs, writeDocsTestFiles, writeFeedFiles, writeMarkdownCompanions, writeResourceFiles, writeSearchIndex, writeSiteMapFiles };
|
|
7238
7901
|
//# sourceMappingURL=index.d.mts.map
|