vitepress 2.0.0-alpha.2 → 2.0.0-alpha.21
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/README.md +34 -2
- package/THIRD-PARTY-NOTICES.md +1736 -0
- package/bin/vitepress.js +14 -0
- package/client.d.ts +9 -0
- package/dist/client/app/components/ClientOnly.d.ts +5 -0
- package/dist/client/app/components/ClientOnly.js +11 -10
- package/dist/client/app/components/Content.d.ts +17 -0
- package/dist/client/app/components/Content.js +25 -22
- package/dist/client/app/composables/codeGroups.d.ts +3 -0
- package/dist/client/app/composables/codeGroups.js +36 -39
- package/dist/client/app/composables/copyCode.d.ts +3 -0
- package/dist/client/app/composables/copyCode.js +59 -70
- package/dist/client/app/composables/head.d.ts +5 -0
- package/dist/client/app/composables/head.js +56 -74
- package/dist/client/app/composables/icon.d.ts +12 -0
- package/dist/client/app/composables/icon.js +56 -0
- package/dist/client/app/composables/preFetch.d.ts +3 -0
- package/dist/client/app/composables/preFetch.js +64 -96
- package/dist/client/app/data.d.ts +9 -0
- package/dist/client/app/data.js +34 -59
- package/dist/client/app/devtools.d.ts +7 -0
- package/dist/client/app/devtools.js +29 -28
- package/dist/client/app/index.d.ts +11 -0
- package/dist/client/app/index.js +106 -131
- package/dist/client/app/router.d.ts +49 -0
- package/dist/client/app/router.js +198 -239
- package/dist/client/app/ssr.d.ts +4 -0
- package/dist/client/app/ssr.js +14 -9
- package/dist/client/app/theme.d.ts +24 -0
- package/dist/client/app/theme.js +0 -1
- package/dist/client/app/utils.d.ts +35 -0
- package/dist/client/app/utils.js +77 -110
- package/dist/client/index.d.ts +21 -137
- package/dist/client/index.js +8 -9
- package/dist/client/shared.d.ts +88 -0
- package/dist/client/shared.js +265 -141
- package/dist/client/theme-default/Layout.d.vue.ts +79 -0
- package/dist/client/theme-default/Layout.vue +33 -36
- package/dist/client/theme-default/NotFound.d.vue.ts +3 -0
- package/dist/client/theme-default/NotFound.vue +33 -35
- package/dist/client/theme-default/components/VPAlgoliaSearchBox.d.vue.ts +11 -0
- package/dist/client/theme-default/components/VPAlgoliaSearchBox.vue +202 -70
- package/dist/client/theme-default/components/VPBackdrop.d.vue.ts +6 -0
- package/dist/client/theme-default/components/VPBackdrop.vue +8 -12
- package/dist/client/theme-default/components/VPBadge.d.vue.ts +19 -0
- package/dist/client/theme-default/components/VPBadge.vue +49 -26
- package/dist/client/theme-default/components/VPButton.d.vue.ts +25 -0
- package/dist/client/theme-default/components/VPButton.vue +53 -36
- package/dist/client/theme-default/components/VPCarbonAds.d.vue.ts +7 -0
- package/dist/client/theme-default/components/VPCarbonAds.vue +51 -52
- package/dist/client/theme-default/components/VPContent.d.vue.ts +59 -0
- package/dist/client/theme-default/components/VPContent.vue +27 -26
- package/dist/client/theme-default/components/VPDoc.d.vue.ts +33 -0
- package/dist/client/theme-default/components/VPDoc.vue +52 -48
- package/dist/client/theme-default/components/VPDocAside.d.vue.ts +23 -0
- package/dist/client/theme-default/components/VPDocAside.vue +7 -8
- package/dist/client/theme-default/components/VPDocAsideCarbonAds.d.vue.ts +7 -0
- package/dist/client/theme-default/components/VPDocAsideCarbonAds.vue +7 -11
- package/dist/client/theme-default/components/VPDocAsideOutline.d.vue.ts +3 -0
- package/dist/client/theme-default/components/VPDocAsideOutline.vue +22 -38
- package/dist/client/theme-default/components/VPDocAsideSponsors.d.vue.ts +10 -0
- package/dist/client/theme-default/components/VPDocAsideSponsors.vue +17 -11
- package/dist/client/theme-default/components/VPDocFooter.d.vue.ts +13 -0
- package/dist/client/theme-default/components/VPDocFooter.vue +38 -45
- package/dist/client/theme-default/components/VPDocFooterLastUpdated.d.vue.ts +3 -0
- package/dist/client/theme-default/components/VPDocFooterLastUpdated.vue +30 -29
- package/dist/client/theme-default/components/VPDocOutlineItem.d.vue.ts +8 -0
- package/dist/client/theme-default/components/VPDocOutlineItem.vue +20 -19
- package/dist/client/theme-default/components/VPFeature.d.vue.ts +13 -0
- package/dist/client/theme-default/components/VPFeature.vue +62 -36
- package/dist/client/theme-default/components/VPFeatures.d.vue.ts +16 -0
- package/dist/client/theme-default/components/VPFeatures.vue +35 -48
- package/dist/client/theme-default/components/VPFlyout.d.vue.ts +26 -0
- package/dist/client/theme-default/components/VPFlyout.vue +111 -47
- package/dist/client/theme-default/components/VPFooter.d.vue.ts +3 -0
- package/dist/client/theme-default/components/VPFooter.vue +22 -15
- package/dist/client/theme-default/components/VPHero.d.vue.ts +38 -0
- package/dist/client/theme-default/components/VPHero.vue +109 -99
- package/dist/client/theme-default/components/VPHome.d.vue.ts +31 -0
- package/dist/client/theme-default/components/VPHome.vue +15 -15
- package/dist/client/theme-default/components/VPHomeContent.d.vue.ts +13 -0
- package/dist/client/theme-default/components/VPHomeContent.vue +9 -27
- package/dist/client/theme-default/components/VPHomeFeatures.d.vue.ts +3 -0
- package/dist/client/theme-default/components/VPHomeFeatures.vue +4 -5
- package/dist/client/theme-default/components/VPHomeHero.d.vue.ts +23 -0
- package/dist/client/theme-default/components/VPHomeHero.vue +5 -5
- package/dist/client/theme-default/components/VPHomeSponsors.d.vue.ts +21 -0
- package/dist/client/theme-default/components/VPHomeSponsors.vue +42 -43
- package/dist/client/theme-default/components/VPIcon.d.vue.ts +8 -0
- package/dist/client/theme-default/components/VPIcon.vue +29 -0
- package/dist/client/theme-default/components/VPImage.d.vue.ts +8 -0
- package/dist/client/theme-default/components/VPImage.vue +20 -14
- package/dist/client/theme-default/components/VPLink.d.vue.ts +23 -0
- package/dist/client/theme-default/components/VPLink.vue +42 -23
- package/dist/client/theme-default/components/VPLocalNav.d.vue.ts +10 -0
- package/dist/client/theme-default/components/VPLocalNav.vue +69 -86
- package/dist/client/theme-default/components/VPLocalNavOutlineDropdown.d.vue.ts +8 -0
- package/dist/client/theme-default/components/VPLocalNavOutlineDropdown.vue +98 -96
- package/dist/client/theme-default/components/VPLocalSearchBox.d.vue.ts +7 -0
- package/dist/client/theme-default/components/VPLocalSearchBox.vue +391 -454
- package/dist/client/theme-default/components/VPMenu.d.vue.ts +23 -0
- package/dist/client/theme-default/components/VPMenu.vue +19 -31
- package/dist/client/theme-default/components/VPMenuGroup.d.vue.ts +22 -0
- package/dist/client/theme-default/components/VPMenuGroup.vue +72 -18
- package/dist/client/theme-default/components/VPMenuLink.d.vue.ts +22 -0
- package/dist/client/theme-default/components/VPMenuLink.vue +65 -31
- package/dist/client/theme-default/components/VPNav.d.vue.ts +23 -0
- package/dist/client/theme-default/components/VPNav.vue +18 -24
- package/dist/client/theme-default/components/VPNavAppearance.d.vue.ts +9 -0
- package/dist/client/theme-default/components/VPNavAppearance.vue +88 -0
- package/dist/client/theme-default/components/VPNavBar.d.vue.ts +26 -0
- package/dist/client/theme-default/components/VPNavBar.vue +170 -142
- package/dist/client/theme-default/components/VPNavBarAskAiButton.d.vue.ts +3 -0
- package/dist/client/theme-default/components/VPNavBarAskAiButton.vue +31 -0
- package/dist/client/theme-default/components/VPNavBarExtra.d.vue.ts +3 -0
- package/dist/client/theme-default/components/VPNavBarExtra.vue +51 -73
- package/dist/client/theme-default/components/VPNavBarHamburger.d.vue.ts +10 -0
- package/dist/client/theme-default/components/VPNavBarHamburger.vue +38 -28
- package/dist/client/theme-default/components/VPNavBarSearch.d.vue.ts +3 -0
- package/dist/client/theme-default/components/VPNavBarSearch.vue +129 -160
- package/dist/client/theme-default/components/VPNavBarSearchButton.d.vue.ts +6 -0
- package/dist/client/theme-default/components/VPNavBarSearchButton.vue +48 -182
- package/dist/client/theme-default/components/VPNavBarTitle.d.vue.ts +15 -0
- package/dist/client/theme-default/components/VPNavBarTitle.vue +39 -38
- package/dist/client/theme-default/components/VPNavMenu.d.vue.ts +6 -0
- package/dist/client/theme-default/components/VPNavMenu.vue +76 -0
- package/dist/client/theme-default/components/VPNavMenuGroup.d.vue.ts +11 -0
- package/dist/client/theme-default/components/VPNavMenuGroup.vue +140 -0
- package/dist/client/theme-default/components/VPNavMenuLink.d.vue.ts +8 -0
- package/dist/client/theme-default/components/VPNavMenuLink.vue +69 -0
- package/dist/client/theme-default/components/VPNavScreen.d.vue.ts +18 -0
- package/dist/client/theme-default/components/VPNavScreen.vue +36 -34
- package/dist/client/theme-default/components/VPNavSocialLinks.d.vue.ts +6 -0
- package/dist/client/theme-default/components/VPNavSocialLinks.vue +36 -0
- package/dist/client/theme-default/components/VPNavTranslations.d.vue.ts +9 -0
- package/dist/client/theme-default/components/VPNavTranslations.vue +170 -0
- package/dist/client/theme-default/components/VPPage.d.vue.ts +15 -0
- package/dist/client/theme-default/components/VPSidebar.d.vue.ts +18 -0
- package/dist/client/theme-default/components/VPSidebar.vue +40 -53
- package/dist/client/theme-default/components/VPSidebarGroup.d.vue.ts +7 -0
- package/dist/client/theme-default/components/VPSidebarGroup.vue +24 -29
- package/dist/client/theme-default/components/VPSidebarItem.d.vue.ts +8 -0
- package/dist/client/theme-default/components/VPSidebarItem.vue +60 -93
- package/dist/client/theme-default/components/VPSkipLink.d.vue.ts +6 -0
- package/dist/client/theme-default/components/VPSkipLink.vue +23 -42
- package/dist/client/theme-default/components/VPSocialLink.d.vue.ts +11 -0
- package/dist/client/theme-default/components/VPSocialLink.vue +42 -49
- package/dist/client/theme-default/components/VPSocialLinks.d.vue.ts +10 -0
- package/dist/client/theme-default/components/VPSocialLinks.vue +26 -16
- package/dist/client/theme-default/components/VPSponsors.d.vue.ts +18 -0
- package/dist/client/theme-default/components/VPSponsors.vue +34 -33
- package/dist/client/theme-default/components/VPSponsorsGrid.d.vue.ts +15 -0
- package/dist/client/theme-default/components/VPSponsorsGrid.vue +23 -26
- package/dist/client/theme-default/components/VPSwitch.d.vue.ts +13 -0
- package/dist/client/theme-default/components/VPSwitch.vue +12 -13
- package/dist/client/theme-default/components/VPSwitchAppearance.d.vue.ts +3 -0
- package/dist/client/theme-default/components/VPSwitchAppearance.vue +16 -21
- package/dist/client/theme-default/components/VPTeamMembers.d.vue.ts +10 -0
- package/dist/client/theme-default/components/VPTeamMembers.vue +59 -32
- package/dist/client/theme-default/components/VPTeamMembersItem.d.vue.ts +10 -0
- package/dist/client/theme-default/components/VPTeamMembersItem.vue +62 -58
- package/dist/client/theme-default/components/VPTeamPage.d.vue.ts +13 -0
- package/dist/client/theme-default/components/VPTeamPage.vue +14 -14
- package/dist/client/theme-default/components/VPTeamPageSection.d.vue.ts +17 -0
- package/dist/client/theme-default/components/VPTeamPageSection.vue +20 -19
- package/dist/client/theme-default/components/VPTeamPageTitle.d.vue.ts +15 -0
- package/dist/client/theme-default/components/VPTeamPageTitle.vue +22 -22
- package/dist/client/theme-default/composables/data.d.ts +5 -0
- package/dist/client/theme-default/composables/data.js +5 -2
- package/dist/client/theme-default/composables/edit-link.d.ts +6 -0
- package/dist/client/theme-default/composables/edit-link.js +17 -15
- package/dist/client/theme-default/composables/flyout.d.ts +10 -0
- package/dist/client/theme-default/composables/flyout.js +33 -32
- package/dist/client/theme-default/composables/langs.d.ts +44 -0
- package/dist/client/theme-default/composables/langs.js +48 -24
- package/dist/client/theme-default/composables/layout.d.ts +13 -0
- package/dist/client/theme-default/composables/layout.js +68 -0
- package/dist/client/theme-default/composables/nav-overflow.d.ts +54 -0
- package/dist/client/theme-default/composables/nav-overflow.js +179 -0
- package/dist/client/theme-default/composables/nav.d.ts +25 -0
- package/dist/client/theme-default/composables/nav.js +58 -29
- package/dist/client/theme-default/composables/outline.d.ts +8 -0
- package/dist/client/theme-default/composables/outline.js +144 -166
- package/dist/client/theme-default/composables/prev-next.d.ts +16 -0
- package/dist/client/theme-default/composables/prev-next.js +34 -56
- package/dist/client/theme-default/composables/scroll-lock.d.ts +4 -0
- package/dist/client/theme-default/composables/scroll-lock.js +95 -0
- package/dist/client/theme-default/composables/sidebar.d.ts +25 -0
- package/dist/client/theme-default/composables/sidebar.js +96 -133
- package/dist/client/theme-default/composables/sponsor-grid.d.ts +10 -0
- package/dist/client/theme-default/composables/sponsor-grid.js +69 -76
- package/dist/client/theme-default/fonts/inter-italic-cyrillic-ext.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-italic-cyrillic.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-italic-greek-ext.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-italic-greek.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-italic-latin-ext.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-italic-latin.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-italic-symbols.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-italic-vietnamese.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-roman-cyrillic-ext.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-roman-cyrillic.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-roman-greek-ext.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-roman-greek.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-roman-latin-ext.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-roman-latin.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-roman-symbols.woff2 +0 -0
- package/dist/client/theme-default/fonts/inter-roman-vietnamese.woff2 +0 -0
- package/dist/client/theme-default/index.d.ts +3 -0
- package/dist/client/theme-default/index.js +4 -3
- package/dist/client/theme-default/styles/base.css +279 -211
- package/dist/client/theme-default/styles/components/custom-block.css +12 -7
- package/dist/client/theme-default/styles/components/vp-code-group.css +13 -16
- package/dist/client/theme-default/styles/components/vp-code.css +10 -2
- package/dist/client/theme-default/styles/components/vp-doc.css +188 -142
- package/dist/client/theme-default/styles/components/vp-sponsor.css +48 -37
- package/dist/client/theme-default/styles/docsearch.css +138 -0
- package/dist/client/theme-default/styles/fonts.css +216 -55
- package/dist/client/theme-default/styles/icons.css +42 -22
- package/dist/client/theme-default/styles/vars.css +111 -46
- package/dist/client/theme-default/support/docsearch.d.ts +57 -0
- package/dist/client/theme-default/support/docsearch.js +145 -0
- package/dist/client/theme-default/support/local-search.d.ts +9 -0
- package/dist/client/theme-default/support/local-search.js +31 -0
- package/dist/client/theme-default/support/lru.d.ts +11 -0
- package/dist/client/theme-default/support/lru.js +30 -33
- package/dist/client/theme-default/support/reactivity.d.ts +4 -0
- package/dist/client/theme-default/support/reactivity.js +10 -0
- package/dist/client/theme-default/support/sidebar.d.ts +27 -0
- package/dist/client/theme-default/support/sidebar.js +69 -80
- package/dist/client/theme-default/support/translation.d.ts +6 -0
- package/dist/client/theme-default/support/translation.js +33 -47
- package/dist/client/theme-default/support/utils.d.ts +7 -0
- package/dist/client/theme-default/support/utils.js +39 -30
- package/dist/client/theme-default/without-fonts.d.ts +25 -0
- package/dist/client/theme-default/without-fonts.js +37 -36
- package/dist/node/chunk-BjrVv9r8.js +28627 -0
- package/dist/node/cli.d.ts +1 -0
- package/dist/node/cli.js +160 -423
- package/dist/node/index.d.ts +1761 -2476
- package/dist/node/index.js +1 -121
- package/dist/web-types.json +75 -0
- package/package.json +89 -98
- package/template/.vitepress/config.js +3 -1
- package/template/.vitepress/theme/style.css +3 -11
- package/theme.d.ts +30 -23
- package/types/default-theme.d.ts +109 -113
- package/types/docsearch.d.ts +61 -142
- package/types/shared.d.ts +469 -50
- package/dist/client/theme-default/components/VPNavBarAppearance.vue +0 -32
- package/dist/client/theme-default/components/VPNavBarMenu.vue +0 -40
- package/dist/client/theme-default/components/VPNavBarMenuGroup.vue +0 -42
- package/dist/client/theme-default/components/VPNavBarMenuLink.vue +0 -53
- package/dist/client/theme-default/components/VPNavBarSocialLinks.vue +0 -27
- package/dist/client/theme-default/components/VPNavBarTranslations.vue +0 -47
- package/dist/client/theme-default/components/VPNavScreenAppearance.vue +0 -40
- package/dist/client/theme-default/components/VPNavScreenMenu.vue +0 -26
- package/dist/client/theme-default/components/VPNavScreenMenuGroup.vue +0 -112
- package/dist/client/theme-default/components/VPNavScreenMenuGroupLink.vue +0 -40
- package/dist/client/theme-default/components/VPNavScreenMenuGroupSection.vue +0 -34
- package/dist/client/theme-default/components/VPNavScreenMenuLink.vue +0 -43
- package/dist/client/theme-default/components/VPNavScreenSocialLinks.vue +0 -14
- package/dist/client/theme-default/components/VPNavScreenTranslations.vue +0 -73
- package/dist/client/theme-default/components/icons/VPIconAlignJustify.vue +0 -8
- package/dist/client/theme-default/components/icons/VPIconAlignLeft.vue +0 -8
- package/dist/client/theme-default/components/icons/VPIconAlignRight.vue +0 -8
- package/dist/client/theme-default/components/icons/VPIconArrowLeft.vue +0 -7
- package/dist/client/theme-default/components/icons/VPIconArrowRight.vue +0 -7
- package/dist/client/theme-default/components/icons/VPIconChevronDown.vue +0 -5
- package/dist/client/theme-default/components/icons/VPIconChevronLeft.vue +0 -5
- package/dist/client/theme-default/components/icons/VPIconChevronRight.vue +0 -5
- package/dist/client/theme-default/components/icons/VPIconChevronUp.vue +0 -5
- package/dist/client/theme-default/components/icons/VPIconEdit.vue +0 -6
- package/dist/client/theme-default/components/icons/VPIconHeart.vue +0 -5
- package/dist/client/theme-default/components/icons/VPIconLanguages.vue +0 -9
- package/dist/client/theme-default/components/icons/VPIconMinus.vue +0 -5
- package/dist/client/theme-default/components/icons/VPIconMinusSquare.vue +0 -6
- package/dist/client/theme-default/components/icons/VPIconMoon.vue +0 -5
- package/dist/client/theme-default/components/icons/VPIconMoreHorizontal.vue +0 -7
- package/dist/client/theme-default/components/icons/VPIconPlus.vue +0 -5
- package/dist/client/theme-default/components/icons/VPIconPlusSquare.vue +0 -6
- package/dist/client/theme-default/components/icons/VPIconSun.vue +0 -13
- package/dist/client/theme-default/composables/aside.js +0 -17
- package/dist/client/theme-default/composables/local-nav.js +0 -18
- package/dist/node/chunk-C-d2RJOW.js +0 -470
- package/dist/node/chunk-CxQfvv8o.js +0 -49065
- package/dist/node/worker_shikiResolveLang.js +0 -13
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_10: {}, __VLS_12: {}, __VLS_19: {}, __VLS_21: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
'aside-top'?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
'aside-outline-before'?: (props: typeof __VLS_3) => any;
|
|
6
|
+
} & {
|
|
7
|
+
'aside-outline-after'?: (props: typeof __VLS_10) => any;
|
|
8
|
+
} & {
|
|
9
|
+
'aside-ads-before'?: (props: typeof __VLS_12) => any;
|
|
10
|
+
} & {
|
|
11
|
+
'aside-ads-after'?: (props: typeof __VLS_19) => any;
|
|
12
|
+
} & {
|
|
13
|
+
'aside-bottom'?: (props: typeof __VLS_21) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import { useData } from
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const { theme } = useData()
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useData } from "../composables/data";
|
|
3
|
+
import VPDocAsideCarbonAds from "./VPDocAsideCarbonAds.vue";
|
|
4
|
+
import VPDocAsideOutline from "./VPDocAsideOutline.vue";
|
|
5
|
+
const { theme } = useData();
|
|
7
6
|
</script>
|
|
8
7
|
|
|
9
8
|
<template>
|
|
@@ -37,10 +36,10 @@ const { theme } = useData()
|
|
|
37
36
|
|
|
38
37
|
.VPDocAside :deep(.spacer + .VPDocAsideSponsors),
|
|
39
38
|
.VPDocAside :deep(.spacer + .VPDocAsideCarbonAds) {
|
|
40
|
-
margin-top:
|
|
39
|
+
margin-top: 1.5rem;
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
.VPDocAside :deep(.VPDocAsideSponsors + .VPDocAsideCarbonAds) {
|
|
44
|
-
margin-top:
|
|
43
|
+
margin-top: 1rem;
|
|
45
44
|
}
|
|
46
45
|
</style>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DefaultTheme } from 'vitepress/theme';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
carbonAds: DefaultTheme.CarbonAdsOptions;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import { defineAsyncComponent } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const VPCarbonAds = __CARBON__
|
|
10
|
-
? defineAsyncComponent(() => import('./VPCarbonAds.vue'))
|
|
11
|
-
: () => null
|
|
1
|
+
<script setup>
|
|
2
|
+
import { defineAsyncComponent } from "vue";
|
|
3
|
+
defineProps({ carbonAds: {
|
|
4
|
+
type: Object,
|
|
5
|
+
required: true
|
|
6
|
+
} });
|
|
7
|
+
const VPCarbonAds = __CARBON__ ? defineAsyncComponent(() => import("./VPCarbonAds.vue")) : () => null;
|
|
12
8
|
</script>
|
|
13
9
|
|
|
14
10
|
<template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,34 +1,21 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const { frontmatter, theme } = useData()
|
|
14
|
-
|
|
15
|
-
const headers = shallowRef<MenuItem[]>([])
|
|
16
|
-
|
|
17
|
-
onContentUpdated(() => {
|
|
18
|
-
headers.value = getHeaders(frontmatter.value.outline ?? theme.value.outline)
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
const container = ref()
|
|
22
|
-
const marker = ref()
|
|
23
|
-
|
|
24
|
-
useActiveAnchor(container, marker)
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useTemplateRef } from "vue";
|
|
3
|
+
import { useData } from "../composables/data";
|
|
4
|
+
import { useLayout } from "../composables/layout";
|
|
5
|
+
import { resolveTitle, useActiveAnchor } from "../composables/outline";
|
|
6
|
+
import VPDocOutlineItem from "./VPDocOutlineItem.vue";
|
|
7
|
+
const { theme } = useData();
|
|
8
|
+
const container = useTemplateRef("container");
|
|
9
|
+
const marker = useTemplateRef("marker");
|
|
10
|
+
const { headers, hasLocalNav } = useLayout();
|
|
11
|
+
useActiveAnchor(container, marker);
|
|
25
12
|
</script>
|
|
26
13
|
|
|
27
14
|
<template>
|
|
28
15
|
<nav
|
|
29
16
|
aria-labelledby="doc-outline-aria-label"
|
|
30
17
|
class="VPDocAsideOutline"
|
|
31
|
-
:class="{ 'has-outline':
|
|
18
|
+
:class="{ 'has-outline': hasLocalNav }"
|
|
32
19
|
ref="container"
|
|
33
20
|
>
|
|
34
21
|
<div class="content">
|
|
@@ -43,7 +30,7 @@ useActiveAnchor(container, marker)
|
|
|
43
30
|
{{ resolveTitle(theme) }}
|
|
44
31
|
</div>
|
|
45
32
|
|
|
46
|
-
<VPDocOutlineItem :headers
|
|
33
|
+
<VPDocOutlineItem :headers :root="true" />
|
|
47
34
|
</div>
|
|
48
35
|
</nav>
|
|
49
36
|
</template>
|
|
@@ -59,31 +46,28 @@ useActiveAnchor(container, marker)
|
|
|
59
46
|
|
|
60
47
|
.content {
|
|
61
48
|
position: relative;
|
|
62
|
-
border-
|
|
63
|
-
padding-
|
|
64
|
-
font-size:
|
|
49
|
+
border-inline-start: 1px solid var(--vp-c-divider);
|
|
50
|
+
padding-inline-start: 1rem;
|
|
51
|
+
font-size: 0.8125rem;
|
|
65
52
|
font-weight: 500;
|
|
66
53
|
}
|
|
67
54
|
|
|
68
55
|
.outline-marker {
|
|
69
56
|
position: absolute;
|
|
70
|
-
top:
|
|
71
|
-
|
|
57
|
+
top: 2rem;
|
|
58
|
+
inset-inline-start: -1px;
|
|
72
59
|
z-index: 0;
|
|
73
60
|
opacity: 0;
|
|
74
61
|
width: 2px;
|
|
75
62
|
border-radius: 2px;
|
|
76
|
-
height:
|
|
63
|
+
height: 1.125rem;
|
|
77
64
|
background-color: var(--vp-c-brand-1);
|
|
78
|
-
transition:
|
|
79
|
-
top 0.25s cubic-bezier(0, 1, 0.5, 1),
|
|
80
|
-
background-color 0.5s,
|
|
81
|
-
opacity 0.25s;
|
|
65
|
+
transition: top 0.25s cubic-bezier(0, 1, 0.5, 1), background-color 0.5s, opacity 0.25s;
|
|
82
66
|
}
|
|
83
67
|
|
|
84
68
|
.outline-title {
|
|
85
|
-
line-height:
|
|
86
|
-
font-size:
|
|
69
|
+
line-height: 2.2857143;
|
|
70
|
+
font-size: 0.875rem;
|
|
87
71
|
font-weight: 600;
|
|
88
72
|
}
|
|
89
73
|
</style>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Sponsors } from './VPSponsors.vue';
|
|
2
|
+
import type { Sponsor } from './VPSponsorsGrid.vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
tier?: string;
|
|
5
|
+
size?: 'xmini' | 'mini' | 'small';
|
|
6
|
+
data: Sponsors[] | Sponsor[];
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -1,17 +1,23 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import VPSponsors from "./VPSponsors.vue";
|
|
3
|
+
defineProps({
|
|
4
|
+
tier: {
|
|
5
|
+
type: String,
|
|
6
|
+
required: false
|
|
7
|
+
},
|
|
8
|
+
size: {
|
|
9
|
+
type: String,
|
|
10
|
+
required: false
|
|
11
|
+
},
|
|
12
|
+
data: {
|
|
13
|
+
type: Array,
|
|
14
|
+
required: true
|
|
15
|
+
}
|
|
16
|
+
});
|
|
11
17
|
</script>
|
|
12
18
|
|
|
13
19
|
<template>
|
|
14
20
|
<div class="VPDocAsideSponsors">
|
|
15
|
-
<VPSponsors mode="aside" :tier
|
|
21
|
+
<VPSponsors mode="aside" :tier :size :data />
|
|
16
22
|
</div>
|
|
17
23
|
</template>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
'doc-footer-before'?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -1,27 +1,16 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import { computed } from
|
|
3
|
-
import { useData } from
|
|
4
|
-
import { useEditLink } from
|
|
5
|
-
import { usePrevNext } from
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const hasEditLink = computed(
|
|
15
|
-
() => theme.value.editLink && frontmatter.value.editLink !== false
|
|
16
|
-
)
|
|
17
|
-
const hasLastUpdated = computed(() => page.value.lastUpdated)
|
|
18
|
-
const showFooter = computed(
|
|
19
|
-
() =>
|
|
20
|
-
hasEditLink.value ||
|
|
21
|
-
hasLastUpdated.value ||
|
|
22
|
-
control.value.prev ||
|
|
23
|
-
control.value.next
|
|
24
|
-
)
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { useData } from "../composables/data";
|
|
4
|
+
import { useEditLink } from "../composables/edit-link";
|
|
5
|
+
import { usePrevNext } from "../composables/prev-next";
|
|
6
|
+
import VPDocFooterLastUpdated from "./VPDocFooterLastUpdated.vue";
|
|
7
|
+
import VPLink from "./VPLink.vue";
|
|
8
|
+
const { theme, page, frontmatter } = useData();
|
|
9
|
+
const editLink = useEditLink();
|
|
10
|
+
const control = usePrevNext();
|
|
11
|
+
const hasEditLink = computed(() => theme.value.editLink && frontmatter.value.editLink !== false);
|
|
12
|
+
const hasLastUpdated = computed(() => page.value.lastUpdated);
|
|
13
|
+
const showFooter = computed(() => hasEditLink.value || hasLastUpdated.value || control.value.prev || control.value.next);
|
|
25
14
|
</script>
|
|
26
15
|
|
|
27
16
|
<template>
|
|
@@ -53,12 +42,14 @@ const showFooter = computed(
|
|
|
53
42
|
v-if="control.prev?.link"
|
|
54
43
|
class="pager-link prev"
|
|
55
44
|
:href="control.prev.link"
|
|
45
|
+
:target="control.prev.target"
|
|
46
|
+
:rel="control.prev.rel"
|
|
56
47
|
>
|
|
57
48
|
<span
|
|
58
49
|
class="desc"
|
|
59
50
|
v-html="theme.docFooter?.prev || 'Previous page'"
|
|
60
51
|
></span>
|
|
61
|
-
<span class="title" v-html="control.prev.text"
|
|
52
|
+
<span class="title"><bdi v-html="control.prev.text" /></span>
|
|
62
53
|
</VPLink>
|
|
63
54
|
</div>
|
|
64
55
|
<div class="pager">
|
|
@@ -66,12 +57,14 @@ const showFooter = computed(
|
|
|
66
57
|
v-if="control.next?.link"
|
|
67
58
|
class="pager-link next"
|
|
68
59
|
:href="control.next.link"
|
|
60
|
+
:target="control.next.target"
|
|
61
|
+
:rel="control.next.rel"
|
|
69
62
|
>
|
|
70
63
|
<span
|
|
71
64
|
class="desc"
|
|
72
65
|
v-html="theme.docFooter?.next || 'Next page'"
|
|
73
66
|
></span>
|
|
74
|
-
<span class="title" v-html="control.next.text"
|
|
67
|
+
<span class="title"><bdi v-html="control.next.text" /></span>
|
|
75
68
|
</VPLink>
|
|
76
69
|
</div>
|
|
77
70
|
</nav>
|
|
@@ -80,19 +73,19 @@ const showFooter = computed(
|
|
|
80
73
|
|
|
81
74
|
<style scoped>
|
|
82
75
|
.VPDocFooter {
|
|
83
|
-
margin-top:
|
|
76
|
+
margin-top: 4rem;
|
|
84
77
|
}
|
|
85
78
|
|
|
86
79
|
.edit-info {
|
|
87
|
-
padding-bottom:
|
|
80
|
+
padding-bottom: 1.125rem;
|
|
88
81
|
}
|
|
89
82
|
|
|
90
|
-
@media (min-width:
|
|
83
|
+
@media (min-width: 40rem) {
|
|
91
84
|
.edit-info {
|
|
92
85
|
display: flex;
|
|
93
86
|
justify-content: space-between;
|
|
94
87
|
align-items: center;
|
|
95
|
-
padding-bottom:
|
|
88
|
+
padding-bottom: 0.875rem;
|
|
96
89
|
}
|
|
97
90
|
}
|
|
98
91
|
|
|
@@ -100,8 +93,8 @@ const showFooter = computed(
|
|
|
100
93
|
display: flex;
|
|
101
94
|
align-items: center;
|
|
102
95
|
border: 0;
|
|
103
|
-
line-height:
|
|
104
|
-
font-size:
|
|
96
|
+
line-height: 2.2857143;
|
|
97
|
+
font-size: 0.875rem;
|
|
105
98
|
font-weight: 500;
|
|
106
99
|
color: var(--vp-c-brand-1);
|
|
107
100
|
transition: color 0.25s;
|
|
@@ -112,28 +105,28 @@ const showFooter = computed(
|
|
|
112
105
|
}
|
|
113
106
|
|
|
114
107
|
.edit-link-icon {
|
|
115
|
-
margin-
|
|
108
|
+
margin-inline-end: 0.5rem;
|
|
116
109
|
}
|
|
117
110
|
|
|
118
111
|
.prev-next {
|
|
119
112
|
border-top: 1px solid var(--vp-c-divider);
|
|
120
|
-
padding-top:
|
|
113
|
+
padding-top: 1.5rem;
|
|
121
114
|
display: grid;
|
|
122
|
-
grid-row-gap:
|
|
115
|
+
grid-row-gap: 0.5rem;
|
|
123
116
|
}
|
|
124
117
|
|
|
125
|
-
@media (min-width:
|
|
118
|
+
@media (min-width: 40rem) {
|
|
126
119
|
.prev-next {
|
|
127
120
|
grid-template-columns: repeat(2, 1fr);
|
|
128
|
-
grid-column-gap:
|
|
121
|
+
grid-column-gap: 1rem;
|
|
129
122
|
}
|
|
130
123
|
}
|
|
131
124
|
|
|
132
125
|
.pager-link {
|
|
133
126
|
display: block;
|
|
134
127
|
border: 1px solid var(--vp-c-divider);
|
|
135
|
-
border-radius:
|
|
136
|
-
padding:
|
|
128
|
+
border-radius: 0.5rem;
|
|
129
|
+
padding: 0.6875rem 1rem 0.8125rem;
|
|
137
130
|
width: 100%;
|
|
138
131
|
height: 100%;
|
|
139
132
|
transition: border-color 0.25s;
|
|
@@ -144,22 +137,22 @@ const showFooter = computed(
|
|
|
144
137
|
}
|
|
145
138
|
|
|
146
139
|
.pager-link.next {
|
|
147
|
-
margin-
|
|
148
|
-
text-align:
|
|
140
|
+
margin-inline-start: auto;
|
|
141
|
+
text-align: end;
|
|
149
142
|
}
|
|
150
143
|
|
|
151
144
|
.desc {
|
|
152
145
|
display: block;
|
|
153
|
-
line-height:
|
|
154
|
-
font-size:
|
|
146
|
+
line-height: 1.6666667;
|
|
147
|
+
font-size: 0.75rem;
|
|
155
148
|
font-weight: 500;
|
|
156
149
|
color: var(--vp-c-text-2);
|
|
157
150
|
}
|
|
158
151
|
|
|
159
152
|
.title {
|
|
160
153
|
display: block;
|
|
161
|
-
line-height:
|
|
162
|
-
font-size:
|
|
154
|
+
line-height: 1.4285714;
|
|
155
|
+
font-size: 0.875rem;
|
|
163
156
|
font-weight: 500;
|
|
164
157
|
color: var(--vp-c-brand-1);
|
|
165
158
|
transition: color 0.25s;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -1,49 +1,50 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const { theme, page, lang } = useData()
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
)
|
|
10
|
-
const
|
|
11
|
-
const datetime = ref('')
|
|
12
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useNavigatorLanguage } from "@vueuse/core";
|
|
3
|
+
import { computed, onMounted, shallowRef, useTemplateRef, watchEffect } from "vue";
|
|
4
|
+
import { useData } from "../composables/data";
|
|
5
|
+
const { theme, page, lang: pageLang } = useData();
|
|
6
|
+
const { language: browserLang } = useNavigatorLanguage();
|
|
7
|
+
const timeRef = useTemplateRef("timeRef");
|
|
8
|
+
const date = computed(() => new Date(page.value.lastUpdated));
|
|
9
|
+
const isoDatetime = computed(() => date.value.toISOString());
|
|
10
|
+
const datetime = shallowRef("");
|
|
13
11
|
// set time on mounted hook to avoid hydration mismatch due to
|
|
14
12
|
// potential differences in timezones of the server and clients
|
|
15
13
|
onMounted(() => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
watchEffect(() => {
|
|
15
|
+
const lang = theme.value.lastUpdated?.formatOptions?.forceLocale ? pageLang.value : browserLang.value;
|
|
16
|
+
datetime.value = new Intl.DateTimeFormat(lang, theme.value.lastUpdated?.formatOptions ?? {
|
|
17
|
+
dateStyle: "medium",
|
|
18
|
+
timeStyle: "medium"
|
|
19
|
+
}).format(date.value);
|
|
20
|
+
if (lang && pageLang.value !== lang) {
|
|
21
|
+
timeRef.value?.setAttribute("lang", lang);
|
|
22
|
+
} else {
|
|
23
|
+
timeRef.value?.removeAttribute("lang");
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
26
27
|
</script>
|
|
27
28
|
|
|
28
29
|
<template>
|
|
29
30
|
<p class="VPLastUpdated">
|
|
30
|
-
{{ theme.lastUpdated?.text ||
|
|
31
|
-
<time :datetime="isoDatetime">{{ datetime }}</time>
|
|
31
|
+
<bdi>{{ theme.lastUpdated?.text || "Last updated" }}:</bdi>
|
|
32
|
+
<time ref="timeRef" dir="auto" :datetime="isoDatetime">{{ datetime }}</time>
|
|
32
33
|
</p>
|
|
33
34
|
</template>
|
|
34
35
|
|
|
35
36
|
<style scoped>
|
|
36
37
|
.VPLastUpdated {
|
|
37
|
-
line-height:
|
|
38
|
-
font-size:
|
|
38
|
+
line-height: 1.7142857;
|
|
39
|
+
font-size: 0.875rem;
|
|
39
40
|
font-weight: 500;
|
|
40
41
|
color: var(--vp-c-text-2);
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
@media (min-width:
|
|
44
|
+
@media (min-width: 40rem) {
|
|
44
45
|
.VPLastUpdated {
|
|
45
|
-
line-height:
|
|
46
|
-
font-size:
|
|
46
|
+
line-height: 2.2857143;
|
|
47
|
+
font-size: 0.875rem;
|
|
47
48
|
font-weight: 500;
|
|
48
49
|
}
|
|
49
50
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DefaultTheme } from 'vitepress/theme';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
headers: DefaultTheme.OutlineItem[];
|
|
4
|
+
root?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
heading?.focus({ preventScroll: true })
|
|
13
|
-
}
|
|
1
|
+
<script setup>
|
|
2
|
+
defineProps({
|
|
3
|
+
headers: {
|
|
4
|
+
type: Array,
|
|
5
|
+
required: true
|
|
6
|
+
},
|
|
7
|
+
root: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
required: false
|
|
10
|
+
}
|
|
11
|
+
});
|
|
14
12
|
</script>
|
|
15
13
|
|
|
16
14
|
<template>
|
|
17
15
|
<ul class="VPDocOutlineItem" :class="root ? 'root' : 'nested'">
|
|
18
16
|
<li v-for="{ children, link, title } in headers">
|
|
19
|
-
<a class="outline-link" :href="link"
|
|
17
|
+
<a class="outline-link" :href="link" :title>
|
|
18
|
+
<bdi>{{ title }}</bdi>
|
|
19
|
+
</a>
|
|
20
20
|
<template v-if="children?.length">
|
|
21
21
|
<VPDocOutlineItem :headers="children" />
|
|
22
22
|
</template>
|
|
@@ -31,16 +31,17 @@ function onClick({ target: el }: Event) {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.nested {
|
|
34
|
-
padding-
|
|
35
|
-
padding-left: 16px;
|
|
34
|
+
padding-inline: 1rem;
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
.outline-link {
|
|
39
38
|
display: block;
|
|
40
|
-
line-height:
|
|
41
|
-
font-size:
|
|
39
|
+
line-height: 2.2857143;
|
|
40
|
+
font-size: 0.875rem;
|
|
42
41
|
font-weight: 400;
|
|
43
42
|
color: var(--vp-c-text-2);
|
|
43
|
+
scroll-margin-top: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 2rem);
|
|
44
|
+
scroll-margin-bottom: 3rem;
|
|
44
45
|
white-space: nowrap;
|
|
45
46
|
overflow: hidden;
|
|
46
47
|
text-overflow: ellipsis;
|
|
@@ -54,6 +55,6 @@ function onClick({ target: el }: Event) {
|
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
.outline-link.nested {
|
|
57
|
-
padding-
|
|
58
|
+
padding-inline-start: 0.8125rem;
|
|
58
59
|
}
|
|
59
60
|
</style>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DefaultTheme } from 'vitepress/theme';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
icon?: DefaultTheme.FeatureIcon;
|
|
4
|
+
title: string;
|
|
5
|
+
details?: string;
|
|
6
|
+
link?: string;
|
|
7
|
+
linkText?: string;
|
|
8
|
+
rel?: string;
|
|
9
|
+
target?: string;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|