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
|
@@ -1,51 +1,68 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import { computed } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import { EXTERNAL_URL_RE } from "../../shared";
|
|
4
|
+
import { normalizeLink } from "../support/utils";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
tag: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: false
|
|
9
|
+
},
|
|
10
|
+
size: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: false,
|
|
13
|
+
default: "medium"
|
|
14
|
+
},
|
|
15
|
+
theme: {
|
|
16
|
+
type: String,
|
|
17
|
+
required: false,
|
|
18
|
+
default: "brand"
|
|
19
|
+
},
|
|
20
|
+
text: {
|
|
21
|
+
type: String,
|
|
22
|
+
required: false
|
|
23
|
+
},
|
|
24
|
+
href: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: false
|
|
27
|
+
},
|
|
28
|
+
target: {
|
|
29
|
+
type: String,
|
|
30
|
+
required: false
|
|
31
|
+
},
|
|
32
|
+
rel: {
|
|
33
|
+
type: String,
|
|
34
|
+
required: false
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
const isExternal = computed(() => props.href && EXTERNAL_URL_RE.test(props.href));
|
|
24
38
|
const component = computed(() => {
|
|
25
|
-
|
|
26
|
-
})
|
|
39
|
+
return props.tag || (props.href ? "a" : "button");
|
|
40
|
+
});
|
|
27
41
|
</script>
|
|
28
42
|
|
|
29
43
|
<template>
|
|
30
44
|
<component
|
|
31
45
|
:is="component"
|
|
32
|
-
class="VPButton"
|
|
46
|
+
class="VPButton no-icon"
|
|
33
47
|
:class="[size, theme]"
|
|
34
48
|
:href="href ? normalizeLink(href) : undefined"
|
|
35
49
|
:target="props.target ?? (isExternal ? '_blank' : undefined)"
|
|
36
50
|
:rel="props.rel ?? (isExternal ? 'noreferrer' : undefined)"
|
|
37
51
|
>
|
|
38
|
-
{{ text }}
|
|
52
|
+
<slot>{{ text }}</slot>
|
|
39
53
|
</component>
|
|
40
54
|
</template>
|
|
41
55
|
|
|
42
56
|
<style scoped>
|
|
43
57
|
.VPButton {
|
|
44
|
-
display: inline-
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
45
61
|
border: 1px solid transparent;
|
|
46
62
|
text-align: center;
|
|
47
63
|
font-weight: 600;
|
|
48
64
|
white-space: nowrap;
|
|
65
|
+
text-decoration: none;
|
|
49
66
|
transition: color 0.25s, border-color 0.25s, background-color 0.25s;
|
|
50
67
|
}
|
|
51
68
|
|
|
@@ -54,17 +71,17 @@ const component = computed(() => {
|
|
|
54
71
|
}
|
|
55
72
|
|
|
56
73
|
.VPButton.medium {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
font-size:
|
|
74
|
+
height: 2.5rem;
|
|
75
|
+
border-radius: 1.25rem;
|
|
76
|
+
padding: 0 1.25rem;
|
|
77
|
+
font-size: 0.875rem;
|
|
61
78
|
}
|
|
62
79
|
|
|
63
80
|
.VPButton.big {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
font-size:
|
|
81
|
+
height: 3rem;
|
|
82
|
+
border-radius: 1.5rem;
|
|
83
|
+
padding: 0 1.5rem;
|
|
84
|
+
font-size: 1rem;
|
|
68
85
|
}
|
|
69
86
|
|
|
70
87
|
.VPButton.brand {
|
|
@@ -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,51 +1,50 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const { isAsideEnabled } = useAside()
|
|
15
|
-
const container = ref()
|
|
16
|
-
|
|
17
|
-
let isInitialized = false
|
|
18
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useMediaQuery } from "@vueuse/core";
|
|
3
|
+
import { useRoute } from "vitepress";
|
|
4
|
+
import { onMounted, useTemplateRef, watch } from "vue";
|
|
5
|
+
const route = useRoute();
|
|
6
|
+
const props = defineProps({ carbonAds: {
|
|
7
|
+
type: Object,
|
|
8
|
+
required: true
|
|
9
|
+
} });
|
|
10
|
+
const carbonOptions = props.carbonAds;
|
|
11
|
+
const isAsideVisible = useMediaQuery("(min-width: 80rem)");
|
|
12
|
+
const container = useTemplateRef("container");
|
|
13
|
+
let isInitialized = false;
|
|
19
14
|
function init() {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
if (!isInitialized) {
|
|
16
|
+
isInitialized = true;
|
|
17
|
+
const params = new URLSearchParams({
|
|
18
|
+
serve: carbonOptions.code,
|
|
19
|
+
placement: carbonOptions.placement,
|
|
20
|
+
format: carbonOptions?.format || "classic"
|
|
21
|
+
});
|
|
22
|
+
const s = document.createElement("script");
|
|
23
|
+
s.id = "_carbonads_js";
|
|
24
|
+
s.src = `//cdn.carbonads.com/carbon.js?${params.toString()}`;
|
|
25
|
+
s.async = true;
|
|
26
|
+
container.value?.appendChild(s);
|
|
27
|
+
}
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})
|
|
35
|
-
|
|
29
|
+
watch(() => route.data.relativePath, () => {
|
|
30
|
+
if (isInitialized && isAsideVisible.value) {
|
|
31
|
+
;
|
|
32
|
+
window._carbonads?.refresh();
|
|
33
|
+
}
|
|
34
|
+
});
|
|
36
35
|
// no need to account for option changes during dev, we can just
|
|
37
36
|
// refresh the page
|
|
38
37
|
if (carbonOptions) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
38
|
+
onMounted(() => {
|
|
39
|
+
// if the page is loaded when aside is active, load carbon directly.
|
|
40
|
+
// otherwise, only load it if the page resizes to wide enough. this avoids
|
|
41
|
+
// loading carbon at all on mobile where it's never shown
|
|
42
|
+
if (isAsideVisible.value) {
|
|
43
|
+
init();
|
|
44
|
+
} else {
|
|
45
|
+
watch(isAsideVisible, (visible) => visible && init());
|
|
46
|
+
}
|
|
47
|
+
});
|
|
49
48
|
}
|
|
50
49
|
</script>
|
|
51
50
|
|
|
@@ -58,25 +57,25 @@ if (carbonOptions) {
|
|
|
58
57
|
display: flex;
|
|
59
58
|
justify-content: center;
|
|
60
59
|
align-items: center;
|
|
61
|
-
padding:
|
|
62
|
-
border-radius:
|
|
63
|
-
min-height:
|
|
60
|
+
padding: 1.5rem;
|
|
61
|
+
border-radius: 0.75rem;
|
|
62
|
+
min-height: 16rem;
|
|
64
63
|
text-align: center;
|
|
65
|
-
line-height:
|
|
66
|
-
font-size:
|
|
64
|
+
line-height: 1.5;
|
|
65
|
+
font-size: 0.75rem;
|
|
67
66
|
font-weight: 500;
|
|
68
67
|
background-color: var(--vp-carbon-ads-bg-color);
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
.VPCarbonAds :deep(img) {
|
|
72
71
|
margin: 0 auto;
|
|
73
|
-
border-radius:
|
|
72
|
+
border-radius: 0.375rem;
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
.VPCarbonAds :deep(.carbon-text) {
|
|
77
76
|
display: block;
|
|
78
77
|
margin: 0 auto;
|
|
79
|
-
padding-top:
|
|
78
|
+
padding-top: 0.75rem;
|
|
80
79
|
color: var(--vp-carbon-ads-text-color);
|
|
81
80
|
transition: color 0.25s;
|
|
82
81
|
}
|
|
@@ -87,8 +86,8 @@ if (carbonOptions) {
|
|
|
87
86
|
|
|
88
87
|
.VPCarbonAds :deep(.carbon-poweredby) {
|
|
89
88
|
display: block;
|
|
90
|
-
padding-top:
|
|
91
|
-
font-size:
|
|
89
|
+
padding-top: 0.375rem;
|
|
90
|
+
font-size: 0.6875rem;
|
|
92
91
|
font-weight: 500;
|
|
93
92
|
color: var(--vp-carbon-ads-poweredby-color);
|
|
94
93
|
text-transform: uppercase;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare var __VLS_1: {}, __VLS_15: {}, __VLS_18: {}, __VLS_27: {}, __VLS_30: {}, __VLS_33: {}, __VLS_36: {}, __VLS_39: {}, __VLS_42: {}, __VLS_45: {}, __VLS_48: {}, __VLS_51: {}, __VLS_54: {}, __VLS_63: {}, __VLS_66: {}, __VLS_69: {}, __VLS_72: {}, __VLS_75: {}, __VLS_78: {}, __VLS_81: {}, __VLS_84: {}, __VLS_87: {}, __VLS_90: {}, __VLS_93: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
'not-found'?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
'page-top'?: (props: typeof __VLS_15) => any;
|
|
6
|
+
} & {
|
|
7
|
+
'page-bottom'?: (props: typeof __VLS_18) => any;
|
|
8
|
+
} & {
|
|
9
|
+
'home-hero-before'?: (props: typeof __VLS_27) => any;
|
|
10
|
+
} & {
|
|
11
|
+
'home-hero-info-before'?: (props: typeof __VLS_30) => any;
|
|
12
|
+
} & {
|
|
13
|
+
'home-hero-info'?: (props: typeof __VLS_33) => any;
|
|
14
|
+
} & {
|
|
15
|
+
'home-hero-info-after'?: (props: typeof __VLS_36) => any;
|
|
16
|
+
} & {
|
|
17
|
+
'home-hero-actions-after'?: (props: typeof __VLS_39) => any;
|
|
18
|
+
} & {
|
|
19
|
+
'home-hero-actions-before-actions'?: (props: typeof __VLS_42) => any;
|
|
20
|
+
} & {
|
|
21
|
+
'home-hero-image'?: (props: typeof __VLS_45) => any;
|
|
22
|
+
} & {
|
|
23
|
+
'home-hero-after'?: (props: typeof __VLS_48) => any;
|
|
24
|
+
} & {
|
|
25
|
+
'home-features-before'?: (props: typeof __VLS_51) => any;
|
|
26
|
+
} & {
|
|
27
|
+
'home-features-after'?: (props: typeof __VLS_54) => any;
|
|
28
|
+
} & {
|
|
29
|
+
'doc-top'?: (props: typeof __VLS_63) => any;
|
|
30
|
+
} & {
|
|
31
|
+
'doc-bottom'?: (props: typeof __VLS_66) => any;
|
|
32
|
+
} & {
|
|
33
|
+
'doc-footer-before'?: (props: typeof __VLS_69) => any;
|
|
34
|
+
} & {
|
|
35
|
+
'doc-before'?: (props: typeof __VLS_72) => any;
|
|
36
|
+
} & {
|
|
37
|
+
'doc-after'?: (props: typeof __VLS_75) => any;
|
|
38
|
+
} & {
|
|
39
|
+
'aside-top'?: (props: typeof __VLS_78) => any;
|
|
40
|
+
} & {
|
|
41
|
+
'aside-outline-before'?: (props: typeof __VLS_81) => any;
|
|
42
|
+
} & {
|
|
43
|
+
'aside-outline-after'?: (props: typeof __VLS_84) => any;
|
|
44
|
+
} & {
|
|
45
|
+
'aside-ads-before'?: (props: typeof __VLS_87) => any;
|
|
46
|
+
} & {
|
|
47
|
+
'aside-ads-after'?: (props: typeof __VLS_90) => any;
|
|
48
|
+
} & {
|
|
49
|
+
'aside-bottom'?: (props: typeof __VLS_93) => any;
|
|
50
|
+
};
|
|
51
|
+
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>;
|
|
52
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
53
|
+
declare const _default: typeof __VLS_export;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import { useData } from
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
const { page, frontmatter } = useData()
|
|
10
|
-
const { hasSidebar } =
|
|
1
|
+
<script setup>
|
|
2
|
+
import { resolveDynamicComponent } from "vue";
|
|
3
|
+
import { useData } from "../composables/data";
|
|
4
|
+
import { useLayout } from "../composables/layout";
|
|
5
|
+
import NotFound from "../NotFound.vue";
|
|
6
|
+
import VPDoc from "./VPDoc.vue";
|
|
7
|
+
import VPHome from "./VPHome.vue";
|
|
8
|
+
import VPPage from "./VPPage.vue";
|
|
9
|
+
const { page, frontmatter } = useData();
|
|
10
|
+
const { isHome, hasSidebar } = useLayout();
|
|
11
|
+
function isRegistered(component) {
|
|
12
|
+
return typeof resolveDynamicComponent(component) !== "string";
|
|
13
|
+
}
|
|
11
14
|
</script>
|
|
12
15
|
|
|
13
16
|
<template>
|
|
@@ -15,35 +18,31 @@ const { hasSidebar } = useSidebar()
|
|
|
15
18
|
class="VPContent"
|
|
16
19
|
id="VPContent"
|
|
17
20
|
:class="{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
'has-sidebar': hasSidebar,
|
|
22
|
+
'is-home': isHome
|
|
23
|
+
}"
|
|
21
24
|
>
|
|
22
25
|
<slot name="not-found" v-if="page.isNotFound"><NotFound /></slot>
|
|
23
26
|
|
|
24
|
-
<VPPage v-else-if="frontmatter.layout === 'page'">
|
|
27
|
+
<VPPage v-else-if="frontmatter.layout === 'page' && !isRegistered('page')">
|
|
25
28
|
<template #page-top><slot name="page-top" /></template>
|
|
26
29
|
<template #page-bottom><slot name="page-bottom" /></template>
|
|
27
30
|
</VPPage>
|
|
28
31
|
|
|
29
|
-
<VPHome v-else-if="frontmatter.layout === 'home'">
|
|
32
|
+
<VPHome v-else-if="frontmatter.layout === 'home' && !isRegistered('home')">
|
|
30
33
|
<template #home-hero-before><slot name="home-hero-before" /></template>
|
|
31
34
|
<template #home-hero-info-before><slot name="home-hero-info-before" /></template>
|
|
32
35
|
<template #home-hero-info><slot name="home-hero-info" /></template>
|
|
33
36
|
<template #home-hero-info-after><slot name="home-hero-info-after" /></template>
|
|
34
37
|
<template #home-hero-actions-after><slot name="home-hero-actions-after" /></template>
|
|
38
|
+
<template #home-hero-actions-before-actions><slot name="home-hero-actions-before-actions" /></template>
|
|
35
39
|
<template #home-hero-image><slot name="home-hero-image" /></template>
|
|
36
40
|
<template #home-hero-after><slot name="home-hero-after" /></template>
|
|
37
41
|
<template #home-features-before><slot name="home-features-before" /></template>
|
|
38
42
|
<template #home-features-after><slot name="home-features-after" /></template>
|
|
39
43
|
</VPHome>
|
|
40
44
|
|
|
41
|
-
<
|
|
42
|
-
v-else-if="frontmatter.layout && frontmatter.layout !== 'doc'"
|
|
43
|
-
:is="frontmatter.layout"
|
|
44
|
-
/>
|
|
45
|
-
|
|
46
|
-
<VPDoc v-else>
|
|
45
|
+
<VPDoc v-else-if="(!frontmatter.layout || frontmatter.layout === 'doc') && !isRegistered('doc')">
|
|
47
46
|
<template #doc-top><slot name="doc-top" /></template>
|
|
48
47
|
<template #doc-bottom><slot name="doc-bottom" /></template>
|
|
49
48
|
|
|
@@ -58,6 +57,8 @@ const { hasSidebar } = useSidebar()
|
|
|
58
57
|
<template #aside-ads-after><slot name="aside-ads-after" /></template>
|
|
59
58
|
<template #aside-bottom><slot name="aside-bottom" /></template>
|
|
60
59
|
</VPDoc>
|
|
60
|
+
|
|
61
|
+
<component v-else :is="frontmatter.layout || 'doc'" />
|
|
61
62
|
</div>
|
|
62
63
|
</template>
|
|
63
64
|
|
|
@@ -78,21 +79,21 @@ const { hasSidebar } = useSidebar()
|
|
|
78
79
|
margin: 0;
|
|
79
80
|
}
|
|
80
81
|
|
|
81
|
-
@media (min-width:
|
|
82
|
+
@media (min-width: 60rem) {
|
|
82
83
|
.VPContent {
|
|
83
84
|
padding-top: var(--vp-nav-height);
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
.VPContent.has-sidebar {
|
|
87
88
|
margin: var(--vp-layout-top-height, 0px) 0 0;
|
|
88
|
-
padding-
|
|
89
|
+
padding-inline-start: var(--vp-sidebar-width);
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
|
|
92
|
-
@media (min-width:
|
|
93
|
+
@media (min-width: 90rem) {
|
|
93
94
|
.VPContent.has-sidebar {
|
|
94
|
-
padding-
|
|
95
|
-
padding-
|
|
95
|
+
padding-inline-end: calc((100% - var(--vp-layout-max-width)) / 2);
|
|
96
|
+
padding-inline-start: calc((100% - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width));
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
</style>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
declare var __VLS_1: {}, __VLS_10: {}, __VLS_13: {}, __VLS_16: {}, __VLS_19: {}, __VLS_22: {}, __VLS_25: {}, __VLS_27: {}, __VLS_41: {}, __VLS_43: {}, __VLS_45: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
'doc-top'?: (props: typeof __VLS_1) => any;
|
|
4
|
+
} & {
|
|
5
|
+
'aside-top'?: (props: typeof __VLS_10) => any;
|
|
6
|
+
} & {
|
|
7
|
+
'aside-bottom'?: (props: typeof __VLS_13) => any;
|
|
8
|
+
} & {
|
|
9
|
+
'aside-outline-before'?: (props: typeof __VLS_16) => any;
|
|
10
|
+
} & {
|
|
11
|
+
'aside-outline-after'?: (props: typeof __VLS_19) => any;
|
|
12
|
+
} & {
|
|
13
|
+
'aside-ads-before'?: (props: typeof __VLS_22) => any;
|
|
14
|
+
} & {
|
|
15
|
+
'aside-ads-after'?: (props: typeof __VLS_25) => any;
|
|
16
|
+
} & {
|
|
17
|
+
'doc-before'?: (props: typeof __VLS_27) => any;
|
|
18
|
+
} & {
|
|
19
|
+
'doc-footer-before'?: (props: typeof __VLS_41) => any;
|
|
20
|
+
} & {
|
|
21
|
+
'doc-after'?: (props: typeof __VLS_43) => any;
|
|
22
|
+
} & {
|
|
23
|
+
'doc-bottom'?: (props: typeof __VLS_45) => any;
|
|
24
|
+
};
|
|
25
|
+
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>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -1,29 +1,34 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import { useRoute } from
|
|
3
|
-
import { computed } from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const route = useRoute()
|
|
12
|
-
const { hasSidebar, hasAside, leftAside } =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
)
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useRoute } from "vitepress";
|
|
3
|
+
import { computed } from "vue";
|
|
4
|
+
import { runtimeBase } from "../../app/utils";
|
|
5
|
+
import { isRelativeBase } from "../../shared";
|
|
6
|
+
import { useData } from "../composables/data";
|
|
7
|
+
import { useLayout } from "../composables/layout";
|
|
8
|
+
import VPDocAside from "./VPDocAside.vue";
|
|
9
|
+
import VPDocFooter from "./VPDocFooter.vue";
|
|
10
|
+
const { theme, site } = useData();
|
|
11
|
+
const route = useRoute();
|
|
12
|
+
const { hasSidebar, hasAside, leftAside } = useLayout();
|
|
13
|
+
const pageName = computed(() => {
|
|
14
|
+
// the mount point is unknown at build time, so the class must come from
|
|
15
|
+
// the site-relative path or ssr and hydration disagree
|
|
16
|
+
const path = isRelativeBase(site.value.base) ? "/" + route.path.slice(runtimeBase().length) : route.path;
|
|
17
|
+
return path.replace(/[./]+/g, "_").replace(/_html$/, "");
|
|
18
|
+
});
|
|
17
19
|
</script>
|
|
18
20
|
|
|
19
21
|
<template>
|
|
20
22
|
<div
|
|
21
23
|
class="VPDoc"
|
|
22
|
-
:class="{
|
|
24
|
+
:class="{
|
|
25
|
+
'has-sidebar': hasSidebar,
|
|
26
|
+
'has-aside': hasAside
|
|
27
|
+
}"
|
|
23
28
|
>
|
|
24
29
|
<slot name="doc-top" />
|
|
25
30
|
<div class="container">
|
|
26
|
-
<div v-if="hasAside" class="aside" :class="{'left-aside': leftAside}">
|
|
31
|
+
<div v-if="hasAside" class="aside" :class="{ 'left-aside': leftAside }">
|
|
27
32
|
<div class="aside-curtain" />
|
|
28
33
|
<div class="aside-container">
|
|
29
34
|
<div class="aside-content">
|
|
@@ -45,10 +50,7 @@ const pageName = computed(() =>
|
|
|
45
50
|
<main class="main">
|
|
46
51
|
<Content
|
|
47
52
|
class="vp-doc"
|
|
48
|
-
:class="[
|
|
49
|
-
pageName,
|
|
50
|
-
theme.externalLinkIcon && 'external-link-icon-enabled'
|
|
51
|
-
]"
|
|
53
|
+
:class="[pageName, theme.externalLinkIcon && 'external-link-icon-enabled']"
|
|
52
54
|
/>
|
|
53
55
|
</main>
|
|
54
56
|
<VPDocFooter>
|
|
@@ -64,33 +66,33 @@ const pageName = computed(() =>
|
|
|
64
66
|
|
|
65
67
|
<style scoped>
|
|
66
68
|
.VPDoc {
|
|
67
|
-
padding:
|
|
69
|
+
padding: 2rem 1.5rem 6rem;
|
|
68
70
|
width: 100%;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
@media (min-width:
|
|
73
|
+
@media (min-width: 48rem) {
|
|
72
74
|
.VPDoc {
|
|
73
|
-
padding:
|
|
75
|
+
padding: 3rem 2rem 8rem;
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
78
|
|
|
77
|
-
@media (min-width:
|
|
79
|
+
@media (min-width: 60rem) {
|
|
78
80
|
.VPDoc {
|
|
79
|
-
padding:
|
|
81
|
+
padding: 3rem 2rem 0;
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
.VPDoc:not(.has-sidebar) .container {
|
|
83
85
|
display: flex;
|
|
84
86
|
justify-content: center;
|
|
85
|
-
max-width:
|
|
87
|
+
max-width: 62rem;
|
|
86
88
|
}
|
|
87
89
|
|
|
88
90
|
.VPDoc:not(.has-sidebar) .content {
|
|
89
|
-
max-width:
|
|
91
|
+
max-width: 47rem;
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
94
|
|
|
93
|
-
@media (min-width:
|
|
95
|
+
@media (min-width: 80rem) {
|
|
94
96
|
.VPDoc .container {
|
|
95
97
|
display: flex;
|
|
96
98
|
justify-content: center;
|
|
@@ -101,13 +103,13 @@ const pageName = computed(() =>
|
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
105
|
|
|
104
|
-
@media (min-width:
|
|
106
|
+
@media (min-width: 90rem) {
|
|
105
107
|
.VPDoc:not(.has-sidebar) .content {
|
|
106
|
-
max-width:
|
|
108
|
+
max-width: 49rem;
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
.VPDoc:not(.has-sidebar) .container {
|
|
110
|
-
max-width:
|
|
112
|
+
max-width: 69rem;
|
|
111
113
|
}
|
|
112
114
|
}
|
|
113
115
|
|
|
@@ -121,25 +123,26 @@ const pageName = computed(() =>
|
|
|
121
123
|
display: none;
|
|
122
124
|
order: 2;
|
|
123
125
|
flex-grow: 1;
|
|
124
|
-
padding-
|
|
126
|
+
padding-inline-start: 2rem;
|
|
125
127
|
width: 100%;
|
|
126
|
-
max-width:
|
|
128
|
+
max-width: 16rem;
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
.left-aside {
|
|
130
132
|
order: 1;
|
|
131
|
-
padding-
|
|
132
|
-
padding-
|
|
133
|
+
padding-inline-start: unset;
|
|
134
|
+
padding-inline-end: 2rem;
|
|
133
135
|
}
|
|
134
136
|
|
|
135
137
|
.aside-container {
|
|
136
138
|
position: fixed;
|
|
137
139
|
top: 0;
|
|
138
|
-
padding-top: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) +
|
|
139
|
-
width:
|
|
140
|
+
padding-top: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 3rem);
|
|
141
|
+
width: 14rem;
|
|
140
142
|
height: 100vh;
|
|
141
143
|
overflow-x: hidden;
|
|
142
144
|
overflow-y: auto;
|
|
145
|
+
overscroll-behavior: contain;
|
|
143
146
|
scrollbar-width: none;
|
|
144
147
|
}
|
|
145
148
|
|
|
@@ -151,16 +154,17 @@ const pageName = computed(() =>
|
|
|
151
154
|
position: fixed;
|
|
152
155
|
bottom: 0;
|
|
153
156
|
z-index: 10;
|
|
154
|
-
width:
|
|
155
|
-
height:
|
|
157
|
+
width: 14rem;
|
|
158
|
+
height: 2rem;
|
|
156
159
|
background: linear-gradient(transparent, var(--vp-c-bg) 70%);
|
|
160
|
+
pointer-events: none;
|
|
157
161
|
}
|
|
158
162
|
|
|
159
163
|
.aside-content {
|
|
160
164
|
display: flex;
|
|
161
165
|
flex-direction: column;
|
|
162
|
-
min-height: calc(100vh - (var(--vp-nav-height) + var(--vp-layout-top-height, 0px) +
|
|
163
|
-
padding-bottom:
|
|
166
|
+
min-height: calc(100vh - (var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 3rem));
|
|
167
|
+
padding-bottom: 2rem;
|
|
164
168
|
}
|
|
165
169
|
|
|
166
170
|
.content {
|
|
@@ -169,17 +173,17 @@ const pageName = computed(() =>
|
|
|
169
173
|
width: 100%;
|
|
170
174
|
}
|
|
171
175
|
|
|
172
|
-
@media (min-width:
|
|
176
|
+
@media (min-width: 60rem) {
|
|
173
177
|
.content {
|
|
174
|
-
padding: 0
|
|
178
|
+
padding: 0 2rem 8rem;
|
|
175
179
|
}
|
|
176
180
|
}
|
|
177
181
|
|
|
178
|
-
@media (min-width:
|
|
182
|
+
@media (min-width: 80rem) {
|
|
179
183
|
.content {
|
|
180
184
|
order: 1;
|
|
181
185
|
margin: 0;
|
|
182
|
-
min-width:
|
|
186
|
+
min-width: 40rem;
|
|
183
187
|
}
|
|
184
188
|
}
|
|
185
189
|
|
|
@@ -188,6 +192,6 @@ const pageName = computed(() =>
|
|
|
188
192
|
}
|
|
189
193
|
|
|
190
194
|
.VPDoc.has-aside .content-container {
|
|
191
|
-
max-width:
|
|
195
|
+
max-width: 43rem;
|
|
192
196
|
}
|
|
193
197
|
</style>
|