@astrojs/starlight 0.41.11 → 0.42.0
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/_virtual/_rolldown/runtime.js +13 -0
- package/dist/components/MobileMenuToggle.astro +65 -0
- package/{components → dist/components}/PageFrame.astro +32 -8
- package/dist/components-internals/Icons.d.ts +415 -0
- package/dist/components-internals/Icons.js +140 -0
- package/dist/components-internals/SidebarPersistState.d.ts +1 -0
- package/dist/components-internals/SidebarPersistState.js +53 -0
- package/dist/components-internals/TableOfContents/starlight-toc.d.ts +18 -0
- package/dist/components-internals/TableOfContents/starlight-toc.js +88 -0
- package/dist/constants.d.ts +4 -0
- package/dist/constants.js +4 -0
- package/{expressive-code.d.ts → dist/expressive-code.d.ts} +6 -13
- package/dist/expressive-code.js +31 -0
- package/dist/global.d.ts +62 -0
- package/dist/global.js +2 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +109 -0
- package/dist/integrations/aside-utils.d.ts +9 -0
- package/dist/integrations/aside-utils.js +35 -0
- package/dist/integrations/expressive-code/hast.d.ts +1 -0
- package/dist/integrations/expressive-code/hast.js +2 -0
- package/dist/integrations/expressive-code/index.d.ts +60 -0
- package/dist/integrations/expressive-code/index.js +48 -0
- package/dist/integrations/expressive-code/preprocessor.d.ts +17 -0
- package/dist/integrations/expressive-code/preprocessor.js +76 -0
- package/dist/integrations/expressive-code/themes/night-owl-dark.js +4 -0
- package/dist/integrations/expressive-code/themes/night-owl-light.js +4 -0
- package/dist/integrations/expressive-code/theming.d.ts +16 -0
- package/dist/integrations/expressive-code/theming.js +71 -0
- package/dist/integrations/expressive-code/translations.d.ts +8 -0
- package/dist/integrations/expressive-code/translations.js +26 -0
- package/dist/integrations/markdown-icon.d.ts +8 -0
- package/dist/integrations/markdown-icon.js +14 -0
- package/dist/integrations/markdown-plugins.d.ts +18 -0
- package/dist/integrations/markdown-plugins.js +36 -0
- package/dist/integrations/markdown-processor.d.ts +29 -0
- package/dist/integrations/markdown-processor.js +44 -0
- package/dist/integrations/pagefind.d.ts +7 -0
- package/dist/integrations/pagefind.js +34 -0
- package/dist/integrations/rehype-code-rtl-support.d.ts +21 -0
- package/dist/integrations/rehype-code-rtl-support.js +36 -0
- package/dist/integrations/rehype-heading-links.d.ts +10 -0
- package/dist/integrations/rehype-heading-links.js +57 -0
- package/dist/integrations/remark-asides.d.ts +32 -0
- package/dist/integrations/remark-asides.js +166 -0
- package/dist/integrations/remark-rehype.d.ts +17 -0
- package/dist/integrations/remark-rehype.js +51 -0
- package/dist/integrations/satteri.d.ts +13 -0
- package/dist/integrations/satteri.js +209 -0
- package/dist/integrations/shared/absolutePathToLang.d.ts +10 -0
- package/dist/integrations/shared/absolutePathToLang.js +13 -0
- package/dist/integrations/shared/localeToLang.d.ts +10 -0
- package/dist/integrations/shared/localeToLang.js +13 -0
- package/dist/integrations/shared/slugToLocale.d.ts +12 -0
- package/dist/integrations/shared/slugToLocale.js +15 -0
- package/dist/integrations/sitemap.d.ts +12 -0
- package/dist/integrations/sitemap.js +19 -0
- package/dist/integrations/vite-layer-order.d.ts +15 -0
- package/dist/integrations/vite-layer-order.js +56 -0
- package/dist/integrations/vite-lazy-barrel-optimization.d.ts +12 -0
- package/dist/integrations/vite-lazy-barrel-optimization.js +33 -0
- package/dist/integrations/vite-virtual-modules.d.ts +14 -0
- package/dist/integrations/vite-virtual-modules.js +108 -0
- package/dist/internal.d.ts +3 -0
- package/dist/internal.js +3 -0
- package/dist/loaders.d.ts +20 -0
- package/dist/loaders.js +49 -0
- package/dist/locals.d.ts +15 -0
- package/dist/locals.js +33 -0
- package/dist/package.js +4 -0
- package/{props.ts → dist/props.d.ts} +6 -4
- package/dist/props.js +1 -0
- package/dist/route-data.d.ts +7 -0
- package/dist/route-data.js +6 -0
- package/dist/schema.d.ts +426 -0
- package/dist/schema.js +103 -0
- package/dist/schemas/badge.d.ts +86 -0
- package/dist/schemas/badge.js +39 -0
- package/dist/schemas/components.d.ts +236 -0
- package/dist/schemas/components.js +36 -0
- package/dist/schemas/expressiveCode.d.ts +7 -0
- package/dist/schemas/expressiveCode.js +5 -0
- package/dist/schemas/favicon.d.ts +9 -0
- package/dist/schemas/favicon.js +32 -0
- package/dist/schemas/head.d.ts +33 -0
- package/dist/schemas/head.js +41 -0
- package/dist/schemas/hero.d.ts +319 -0
- package/dist/schemas/hero.js +73 -0
- package/dist/schemas/i18n.d.ts +125 -0
- package/dist/schemas/i18n.js +76 -0
- package/dist/schemas/icon.d.ts +284 -0
- package/dist/schemas/icon.js +7 -0
- package/dist/schemas/locale.d.ts +20 -0
- package/dist/schemas/locale.js +11 -0
- package/dist/schemas/logo.d.ts +32 -0
- package/dist/schemas/logo.js +14 -0
- package/dist/schemas/pagefind.d.ts +166 -0
- package/dist/schemas/pagefind.js +31 -0
- package/dist/schemas/prevNextLink.d.ts +10 -0
- package/dist/schemas/prevNextLink.js +14 -0
- package/dist/schemas/sidebar.d.ts +205 -0
- package/dist/schemas/sidebar.js +71 -0
- package/dist/schemas/site-title.d.ts +7 -0
- package/dist/schemas/site-title.js +17 -0
- package/dist/schemas/social.d.ts +292 -0
- package/dist/schemas/social.js +18 -0
- package/dist/schemas/tableOfContents.d.ts +24 -0
- package/dist/schemas/tableOfContents.js +16 -0
- package/dist/translations/ar.js +36 -0
- package/dist/translations/ca.js +46 -0
- package/dist/translations/cs.js +46 -0
- package/dist/translations/da.js +33 -0
- package/dist/translations/de.js +33 -0
- package/dist/translations/el.js +33 -0
- package/dist/translations/en.js +33 -0
- package/dist/translations/es.js +46 -0
- package/dist/translations/fa.js +33 -0
- package/dist/translations/fi.js +33 -0
- package/dist/translations/fr.js +36 -0
- package/dist/translations/gl.js +46 -0
- package/dist/translations/he.js +33 -0
- package/dist/translations/hi.js +36 -0
- package/dist/translations/hu.js +46 -0
- package/dist/translations/id.js +33 -0
- package/dist/translations/index.d.ts +48 -0
- package/dist/translations/index.js +75 -0
- package/dist/translations/it.js +36 -0
- package/dist/translations/ja.js +36 -0
- package/dist/translations/ko.js +36 -0
- package/dist/translations/lv.js +33 -0
- package/dist/translations/nb.js +33 -0
- package/dist/translations/nl.js +33 -0
- package/dist/translations/pl.js +36 -0
- package/dist/translations/pt.js +36 -0
- package/dist/translations/ro.js +33 -0
- package/dist/translations/ru.js +36 -0
- package/dist/translations/sk.js +33 -0
- package/dist/translations/sv.js +33 -0
- package/dist/translations/th.js +33 -0
- package/dist/translations/tr.js +33 -0
- package/dist/translations/uk.js +33 -0
- package/dist/translations/vi.js +33 -0
- package/dist/translations/zh-CN.js +36 -0
- package/dist/translations/zh-TW.js +36 -0
- package/dist/types.d.ts +4 -0
- package/dist/types.js +1 -0
- package/{user-components → dist/user-components}/FileTree.astro +1 -1
- package/{user-components → dist/user-components}/Steps.astro +1 -1
- package/{user-components → dist/user-components}/TabItem.astro +1 -1
- package/{user-components → dist/user-components}/Tabs.astro +1 -1
- package/dist/user-components/file-tree-icons.d.ts +178 -0
- package/dist/user-components/file-tree-icons.js +632 -0
- package/dist/user-components/file-tree-processor.d.ts +16 -0
- package/dist/user-components/file-tree-processor.js +132 -0
- package/dist/user-components/steps-processor.d.ts +10 -0
- package/dist/user-components/steps-processor.js +39 -0
- package/dist/user-components/tabs-processor.d.ts +23 -0
- package/dist/user-components/tabs-processor.js +70 -0
- package/dist/utils/base.d.ts +7 -0
- package/dist/utils/base.js +15 -0
- package/dist/utils/canonical.d.ts +10 -0
- package/dist/utils/canonical.js +14 -0
- package/dist/utils/collection-fs.d.ts +13 -0
- package/dist/utils/collection-fs.js +19 -0
- package/{utils/collection.ts → dist/utils/collection.d.ts} +9 -20
- package/dist/utils/collection.js +26 -0
- package/dist/utils/createPathFormatter.d.ts +9 -0
- package/dist/utils/createPathFormatter.js +35 -0
- package/dist/utils/createTranslationSystem.d.ts +23 -0
- package/dist/utils/createTranslationSystem.js +84 -0
- package/dist/utils/error-map.d.ts +23 -0
- package/dist/utils/error-map.js +125 -0
- package/dist/utils/format-path.d.ts +4 -0
- package/dist/utils/format-path.js +9 -0
- package/dist/utils/generateToC.d.ts +14 -0
- package/dist/utils/generateToC.js +25 -0
- package/dist/utils/git.d.ts +12 -0
- package/dist/utils/git.js +71 -0
- package/dist/utils/gitInlined.d.ts +6 -0
- package/dist/utils/gitInlined.js +11 -0
- package/dist/utils/head.d.ts +7 -0
- package/dist/utils/head.js +233 -0
- package/dist/utils/i18n.d.ts +50 -0
- package/dist/utils/i18n.js +141 -0
- package/dist/utils/localizedUrl.d.ts +8 -0
- package/dist/utils/localizedUrl.js +28 -0
- package/dist/utils/navigation.d.ts +19 -0
- package/dist/utils/navigation.js +353 -0
- package/dist/utils/path.d.ts +21 -0
- package/dist/utils/path.js +51 -0
- package/dist/utils/plugins.d.ts +721 -0
- package/dist/utils/plugins.js +174 -0
- package/dist/utils/routing/data.d.ts +20 -0
- package/dist/utils/routing/data.js +127 -0
- package/dist/utils/routing/index.d.ts +21 -0
- package/dist/utils/routing/index.js +106 -0
- package/dist/utils/routing/middleware.d.ts +11 -0
- package/dist/utils/routing/middleware.js +65 -0
- package/dist/utils/routing/types.d.ts +93 -0
- package/dist/utils/routing/types.js +1 -0
- package/dist/utils/slugs.d.ts +45 -0
- package/dist/utils/slugs.js +104 -0
- package/dist/utils/starlight-page.d.ts +36 -0
- package/dist/utils/starlight-page.js +120 -0
- package/dist/utils/translations-fs.d.ts +15 -0
- package/dist/utils/translations-fs.js +39 -0
- package/dist/utils/translations.d.ts +20 -0
- package/dist/utils/translations.js +29 -0
- package/dist/utils/types.d.ts +5 -0
- package/dist/utils/types.js +1 -0
- package/dist/utils/url.d.ts +7 -0
- package/{utils/url.ts → dist/utils/url.js} +5 -4
- package/dist/utils/user-config.d.ts +2055 -0
- package/dist/utils/user-config.js +136 -0
- package/dist/utils/validateLogoImports.d.ts +5 -0
- package/dist/utils/validateLogoImports.js +16 -0
- package/dist/utils/zodDeepMerge.d.ts +16 -0
- package/dist/utils/zodDeepMerge.js +53 -0
- package/package.json +60 -34
- package/CHANGELOG.md +0 -3051
- package/components/MobileMenuToggle.astro +0 -114
- package/components-internals/Icons.ts +0 -248
- package/components-internals/SidebarPersistState.ts +0 -71
- package/components-internals/TableOfContents/starlight-toc.ts +0 -127
- package/constants.ts +0 -4
- package/expressive-code.mjs +0 -23
- package/global.d.ts +0 -11
- package/i18n.d.ts +0 -18
- package/index.ts +0 -200
- package/integrations/aside-utils.ts +0 -41
- package/integrations/expressive-code/hast.d.ts +0 -5
- package/integrations/expressive-code/hast.mjs +0 -9
- package/integrations/expressive-code/index.ts +0 -125
- package/integrations/expressive-code/preprocessor.ts +0 -126
- package/integrations/expressive-code/themes/night-owl-dark.jsonc +0 -1796
- package/integrations/expressive-code/themes/night-owl-light.jsonc +0 -1695
- package/integrations/expressive-code/theming.ts +0 -105
- package/integrations/expressive-code/translations.ts +0 -36
- package/integrations/markdown-icon.ts +0 -13
- package/integrations/markdown-plugins.ts +0 -71
- package/integrations/markdown-processor.ts +0 -64
- package/integrations/pagefind.ts +0 -60
- package/integrations/rehype-code-rtl-support.ts +0 -37
- package/integrations/rehype-heading-links.ts +0 -79
- package/integrations/remark-asides.ts +0 -219
- package/integrations/remark-rehype.ts +0 -87
- package/integrations/satteri.ts +0 -265
- package/integrations/shared/absolutePathToLang.ts +0 -26
- package/integrations/shared/localeToLang.ts +0 -15
- package/integrations/shared/slugToLocale.ts +0 -18
- package/integrations/sitemap.ts +0 -23
- package/integrations/vite-layer-order.ts +0 -69
- package/integrations/vite-lazy-barrel-optimization.ts +0 -40
- package/integrations/vite-virtual-modules.ts +0 -175
- package/internal.ts +0 -6
- package/loaders.ts +0 -63
- package/locals.d.ts +0 -43
- package/locals.ts +0 -43
- package/route-data.ts +0 -11
- package/schema.ts +0 -167
- package/schemas/badge.ts +0 -40
- package/schemas/components.ts +0 -265
- package/schemas/expressiveCode.ts +0 -12
- package/schemas/favicon.ts +0 -40
- package/schemas/head.ts +0 -50
- package/schemas/hero.ts +0 -69
- package/schemas/i18n.ts +0 -244
- package/schemas/icon.ts +0 -7
- package/schemas/logo.ts +0 -28
- package/schemas/pagefind.ts +0 -128
- package/schemas/prevNextLink.ts +0 -18
- package/schemas/sidebar.ts +0 -163
- package/schemas/site-title.ts +0 -20
- package/schemas/social.ts +0 -23
- package/schemas/tableOfContents.ts +0 -21
- package/translations/README.md +0 -14
- package/translations/ar.json +0 -33
- package/translations/ca.json +0 -43
- package/translations/cs.json +0 -43
- package/translations/da.json +0 -30
- package/translations/de.json +0 -30
- package/translations/el.json +0 -30
- package/translations/en.json +0 -30
- package/translations/es.json +0 -43
- package/translations/fa.json +0 -30
- package/translations/fi.json +0 -30
- package/translations/fr.json +0 -33
- package/translations/gl.json +0 -43
- package/translations/he.json +0 -30
- package/translations/hi.json +0 -33
- package/translations/hu.json +0 -43
- package/translations/id.json +0 -30
- package/translations/index.ts +0 -76
- package/translations/it.json +0 -33
- package/translations/ja.json +0 -33
- package/translations/ko.json +0 -33
- package/translations/lv.json +0 -30
- package/translations/nb.json +0 -30
- package/translations/nl.json +0 -30
- package/translations/pl.json +0 -33
- package/translations/pt.json +0 -33
- package/translations/ro.json +0 -30
- package/translations/ru.json +0 -33
- package/translations/sk.json +0 -30
- package/translations/sv.json +0 -30
- package/translations/th.json +0 -30
- package/translations/tr.json +0 -30
- package/translations/uk.json +0 -30
- package/translations/vi.json +0 -30
- package/translations/zh-CN.json +0 -33
- package/translations/zh-TW.json +0 -33
- package/types.ts +0 -7
- package/user-components/file-tree-icons.ts +0 -782
- package/user-components/rehype-file-tree.ts +0 -251
- package/user-components/rehype-steps.ts +0 -85
- package/user-components/rehype-tabs.ts +0 -121
- package/utils/base.ts +0 -15
- package/utils/canonical.ts +0 -19
- package/utils/collection-fs.ts +0 -20
- package/utils/createPathFormatter.ts +0 -60
- package/utils/createTranslationSystem.ts +0 -137
- package/utils/error-map.ts +0 -222
- package/utils/format-path.ts +0 -7
- package/utils/generateToC.ts +0 -33
- package/utils/git.ts +0 -121
- package/utils/gitInlined.ts +0 -20
- package/utils/head.ts +0 -235
- package/utils/i18n.ts +0 -221
- package/utils/localizedUrl.ts +0 -51
- package/utils/navigation.ts +0 -574
- package/utils/path.ts +0 -58
- package/utils/plugins.ts +0 -498
- package/utils/routing/data.ts +0 -154
- package/utils/routing/index.ts +0 -139
- package/utils/routing/middleware.ts +0 -81
- package/utils/routing/types.ts +0 -101
- package/utils/slugs.ts +0 -119
- package/utils/starlight-page.ts +0 -205
- package/utils/translations-fs.ts +0 -54
- package/utils/translations.ts +0 -57
- package/utils/types.ts +0 -15
- package/utils/user-config.ts +0 -348
- package/utils/validateLogoImports.ts +0 -21
- package/utils/zodDeepMerge.ts +0 -144
- package/virtual-internal.d.ts +0 -149
- package/virtual.d.ts +0 -27
- /package/{components → dist/components}/AnchorHeading.astro +0 -0
- /package/{components → dist/components}/Banner.astro +0 -0
- /package/{components → dist/components}/ContentNotice.astro +0 -0
- /package/{components → dist/components}/ContentPanel.astro +0 -0
- /package/{components → dist/components}/DraftContentNotice.astro +0 -0
- /package/{components → dist/components}/EditLink.astro +0 -0
- /package/{components → dist/components}/FallbackContentNotice.astro +0 -0
- /package/{components → dist/components}/Footer.astro +0 -0
- /package/{components → dist/components}/Head.astro +0 -0
- /package/{components → dist/components}/Header.astro +0 -0
- /package/{components → dist/components}/Hero.astro +0 -0
- /package/{components → dist/components}/LanguageSelect.astro +0 -0
- /package/{components → dist/components}/LastUpdated.astro +0 -0
- /package/{components → dist/components}/MarkdownContent.astro +0 -0
- /package/{components → dist/components}/MobileMenuFooter.astro +0 -0
- /package/{components → dist/components}/MobileTableOfContents.astro +0 -0
- /package/{components → dist/components}/Page.astro +0 -0
- /package/{components → dist/components}/PageSidebar.astro +0 -0
- /package/{components → dist/components}/PageTitle.astro +0 -0
- /package/{components → dist/components}/Pagination.astro +0 -0
- /package/{components → dist/components}/Search.astro +0 -0
- /package/{components → dist/components}/Select.astro +0 -0
- /package/{components → dist/components}/Sidebar.astro +0 -0
- /package/{components → dist/components}/SidebarPersister.astro +0 -0
- /package/{components → dist/components}/SidebarRestorePoint.astro +0 -0
- /package/{components → dist/components}/SidebarSublist.astro +0 -0
- /package/{components → dist/components}/SiteTitle.astro +0 -0
- /package/{components → dist/components}/SkipLink.astro +0 -0
- /package/{components → dist/components}/SocialIcons.astro +0 -0
- /package/{components → dist/components}/StarlightPage.astro +0 -0
- /package/{components → dist/components}/TableOfContents.astro +0 -0
- /package/{components → dist/components}/ThemeProvider.astro +0 -0
- /package/{components → dist/components}/ThemeSelect.astro +0 -0
- /package/{components → dist/components}/TwoColumnContent.astro +0 -0
- /package/{components-internals → dist/components-internals}/TableOfContents/TableOfContentsList.astro +0 -0
- /package/{components.ts → dist/components.ts} +0 -0
- /package/{routes → dist/routes}/common.astro +0 -0
- /package/{routes → dist/routes}/ssr/404.astro +0 -0
- /package/{routes → dist/routes}/ssr/index.astro +0 -0
- /package/{routes → dist/routes}/static/404.astro +0 -0
- /package/{routes → dist/routes}/static/index.astro +0 -0
- /package/{style → dist/style}/anchor-links.css +0 -0
- /package/{style → dist/style}/asides.css +0 -0
- /package/{style → dist/style}/layers.css +0 -0
- /package/{style → dist/style}/markdown.css +0 -0
- /package/{style → dist/style}/print.css +0 -0
- /package/{style → dist/style}/props.css +0 -0
- /package/{style → dist/style}/reset.css +0 -0
- /package/{style → dist/style}/util.css +0 -0
- /package/{user-components → dist/user-components}/Aside.astro +0 -0
- /package/{user-components → dist/user-components}/Badge.astro +0 -0
- /package/{user-components → dist/user-components}/Card.astro +0 -0
- /package/{user-components → dist/user-components}/CardGrid.astro +0 -0
- /package/{user-components → dist/user-components}/Icon.astro +0 -0
- /package/{user-components → dist/user-components}/LinkButton.astro +0 -0
- /package/{user-components → dist/user-components}/LinkCard.astro +0 -0
package/schemas/icon.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { z } from 'astro/zod';
|
|
2
|
-
import { Icons, type StarlightIcon } from '../components-internals/Icons';
|
|
3
|
-
|
|
4
|
-
const iconNames = Object.keys(Icons) as [StarlightIcon, ...StarlightIcon[]];
|
|
5
|
-
|
|
6
|
-
/** String that matches the name of one of Starlight’s built-in icons. */
|
|
7
|
-
export const IconSchema = () => z.enum(iconNames);
|
package/schemas/logo.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { z } from 'astro/zod';
|
|
2
|
-
|
|
3
|
-
export const LogoConfigSchema = () =>
|
|
4
|
-
z
|
|
5
|
-
.union([
|
|
6
|
-
z.object({
|
|
7
|
-
/** Source of the image file to use. */
|
|
8
|
-
src: z.string(),
|
|
9
|
-
/** Alternative text description of the logo. */
|
|
10
|
-
alt: z.string().default(''),
|
|
11
|
-
/** Set to `true` to hide the site title text and only show the logo. */
|
|
12
|
-
replacesTitle: z.boolean().default(false),
|
|
13
|
-
}),
|
|
14
|
-
z.object({
|
|
15
|
-
/** Source of the image file to use in dark mode. */
|
|
16
|
-
dark: z.string(),
|
|
17
|
-
/** Source of the image file to use in light mode. */
|
|
18
|
-
light: z.string(),
|
|
19
|
-
/** Alternative text description of the logo. */
|
|
20
|
-
alt: z.string().default(''),
|
|
21
|
-
/** Set to `true` to hide the site title text and only show the logo. */
|
|
22
|
-
replacesTitle: z.boolean().default(false),
|
|
23
|
-
}),
|
|
24
|
-
])
|
|
25
|
-
.optional();
|
|
26
|
-
|
|
27
|
-
export type LogoUserConfig = z.input<ReturnType<typeof LogoConfigSchema>>;
|
|
28
|
-
export type LogoConfig = z.output<ReturnType<typeof LogoConfigSchema>>;
|
package/schemas/pagefind.ts
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { z } from 'astro/zod';
|
|
2
|
-
|
|
3
|
-
const indexWeightSchema = z.number().nonnegative().optional();
|
|
4
|
-
|
|
5
|
-
const pagefindRankingWeightsSchema = z.object({
|
|
6
|
-
/**
|
|
7
|
-
* Set Pagefind’s `pageLength` ranking option.
|
|
8
|
-
*
|
|
9
|
-
* The default value is `0.1` and values must be in the range `0` to `1`.
|
|
10
|
-
*
|
|
11
|
-
* @see https://pagefind.app/docs/ranking/#configuring-page-length
|
|
12
|
-
*/
|
|
13
|
-
pageLength: z.number().min(0).max(1).default(0.1),
|
|
14
|
-
/**
|
|
15
|
-
* Set Pagefind’s `termFrequency` ranking option.
|
|
16
|
-
*
|
|
17
|
-
* The default value is `0.1` and values must be in the range `0` to `1`.
|
|
18
|
-
*
|
|
19
|
-
* @see https://pagefind.app/docs/ranking/#configuring-term-frequency
|
|
20
|
-
*/
|
|
21
|
-
termFrequency: z.number().min(0).max(1).default(0.1),
|
|
22
|
-
/**
|
|
23
|
-
* Set Pagefind’s `termSaturation` ranking option.
|
|
24
|
-
*
|
|
25
|
-
* The default value is `2` and values must be in the range `0` to `2`.
|
|
26
|
-
*
|
|
27
|
-
* @see https://pagefind.app/docs/ranking/#configuring-term-saturation
|
|
28
|
-
*/
|
|
29
|
-
termSaturation: z.number().min(0).max(2).default(2),
|
|
30
|
-
/**
|
|
31
|
-
* Set Pagefind’s `termSimilarity` ranking option.
|
|
32
|
-
*
|
|
33
|
-
* The default value is `9` and values must be greater than or equal to `0`.
|
|
34
|
-
*
|
|
35
|
-
* @see https://pagefind.app/docs/ranking/#configuring-term-similarity
|
|
36
|
-
*/
|
|
37
|
-
termSimilarity: z.number().min(0).default(9),
|
|
38
|
-
/**
|
|
39
|
-
* Set Pagefind’s `diacriticSimilarity` ranking option.
|
|
40
|
-
*
|
|
41
|
-
* The default value is `0.8` and values must be greater than or equal to `0`.
|
|
42
|
-
*
|
|
43
|
-
* @see https://pagefind.app/docs/ranking/#configuring-diacritic-similarity
|
|
44
|
-
*/
|
|
45
|
-
diacriticSimilarity: z.number().min(0).default(0.8),
|
|
46
|
-
/**
|
|
47
|
-
* Set Pagefind’s `metaWeights` ranking option.
|
|
48
|
-
*
|
|
49
|
-
* This is a map of metadata keys to their corresponding weights, with a default value of `{ title: 5 }`.
|
|
50
|
-
*
|
|
51
|
-
* @see https://pagefind.app/docs/ranking/#configuring-metadata-weights
|
|
52
|
-
*/
|
|
53
|
-
metaWeights: z.record(z.string(), z.number().min(0)).optional(),
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
const pagefindIndexOptionsSchema = z.object({
|
|
57
|
-
/**
|
|
58
|
-
* Overrides the URL path that Pagefind uses to load its search bundle
|
|
59
|
-
*/
|
|
60
|
-
basePath: z.string().optional(),
|
|
61
|
-
/**
|
|
62
|
-
* Appends the given baseURL to all search results. May be a path, or a full domain
|
|
63
|
-
*/
|
|
64
|
-
baseUrl: z.string().optional(),
|
|
65
|
-
/**
|
|
66
|
-
* Multiply all rankings for this index by the given weight.
|
|
67
|
-
*
|
|
68
|
-
* @see https://pagefind.app/docs/multisite/#changing-the-weighting-of-individual-indexes
|
|
69
|
-
*/
|
|
70
|
-
indexWeight: indexWeightSchema,
|
|
71
|
-
/**
|
|
72
|
-
* Apply this filter configuration to all search results from this index.
|
|
73
|
-
*
|
|
74
|
-
* Only applies in multisite setups.
|
|
75
|
-
*
|
|
76
|
-
* @see https://pagefind.app/docs/multisite/#filtering-results-by-index
|
|
77
|
-
*/
|
|
78
|
-
mergeFilter: z.record(z.string(), z.string().or(z.tuple([z.string()], z.string()))).optional(),
|
|
79
|
-
/**
|
|
80
|
-
* Language of this index.
|
|
81
|
-
*
|
|
82
|
-
* @see https://pagefind.app/docs/multisite/#merging-a-specific-language-index
|
|
83
|
-
*/
|
|
84
|
-
language: z.string().optional(),
|
|
85
|
-
/**
|
|
86
|
-
* Configure how search result rankings are calculated by Pagefind.
|
|
87
|
-
*/
|
|
88
|
-
// We apply a default value to merged indexes in order to share the same ranking for them and the current site when not set explicitly.
|
|
89
|
-
ranking: pagefindRankingWeightsSchema.prefault({}),
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
const pagefindSchema = z.object({
|
|
93
|
-
/**
|
|
94
|
-
* Configure how search results from the current website are weighted by Pagefind
|
|
95
|
-
* compared to results from other sites when using the `mergeIndex` option.
|
|
96
|
-
*
|
|
97
|
-
* @see https://pagefind.app/docs/multisite/#changing-the-weighting-of-individual-indexes
|
|
98
|
-
*/
|
|
99
|
-
indexWeight: indexWeightSchema,
|
|
100
|
-
/** Configure how search result rankings are calculated by Pagefind. */
|
|
101
|
-
ranking: pagefindRankingWeightsSchema.prefault({}),
|
|
102
|
-
/**
|
|
103
|
-
* Configure how search indexes from different sites are merged by Pagefind.
|
|
104
|
-
*
|
|
105
|
-
* @see https://pagefind.app/docs/multisite/#searching-additional-sites-from-pagefind-ui
|
|
106
|
-
*/
|
|
107
|
-
mergeIndex: z
|
|
108
|
-
.array(
|
|
109
|
-
/**
|
|
110
|
-
* Each entry of this array represents a `PagefindIndexOptions` from pagefind.
|
|
111
|
-
*
|
|
112
|
-
* @see https://github.com/CloudCannon/pagefind/blob/v1.3.0/pagefind_web_js/lib/coupled_search.ts#L549
|
|
113
|
-
*/
|
|
114
|
-
z.object({
|
|
115
|
-
...pagefindIndexOptionsSchema.shape,
|
|
116
|
-
/**
|
|
117
|
-
* Set Pagefind’s `bundlePath` mergeIndex option.
|
|
118
|
-
*
|
|
119
|
-
* @see https://pagefind.app/docs/multisite/#searching-additional-sites-from-pagefind-ui
|
|
120
|
-
*/
|
|
121
|
-
bundlePath: z.string(),
|
|
122
|
-
})
|
|
123
|
-
)
|
|
124
|
-
.optional(),
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
export const PagefindConfigSchema = () => pagefindSchema;
|
|
128
|
-
export const PagefindConfigDefaults = () => pagefindSchema.parse({});
|
package/schemas/prevNextLink.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from 'astro/zod';
|
|
2
|
-
|
|
3
|
-
export const PrevNextLinkConfigSchema = () =>
|
|
4
|
-
z
|
|
5
|
-
.union([
|
|
6
|
-
z.boolean(),
|
|
7
|
-
z.string(),
|
|
8
|
-
z.strictObject({
|
|
9
|
-
/** The navigation link URL. */
|
|
10
|
-
link: z.string().optional(),
|
|
11
|
-
/** The navigation link text. */
|
|
12
|
-
label: z.string().optional(),
|
|
13
|
-
}),
|
|
14
|
-
])
|
|
15
|
-
.optional();
|
|
16
|
-
|
|
17
|
-
export type PrevNextLinkUserConfig = z.input<ReturnType<typeof PrevNextLinkConfigSchema>>;
|
|
18
|
-
export type PrevNextLinkConfig = z.output<ReturnType<typeof PrevNextLinkConfigSchema>>;
|
package/schemas/sidebar.ts
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import type { AstroBuiltinAttributes } from 'astro';
|
|
2
|
-
import type { HTMLAttributes } from 'astro/types';
|
|
3
|
-
import { z } from 'astro/zod';
|
|
4
|
-
import { I18nBadgeConfigSchema } from './badge';
|
|
5
|
-
import { stripLeadingAndTrailingSlashes } from '../utils/path';
|
|
6
|
-
|
|
7
|
-
const SidebarBaseSchema = z.object({
|
|
8
|
-
/** The visible label for this item in the sidebar. */
|
|
9
|
-
label: z.string(),
|
|
10
|
-
/** Translations of the `label` for each supported language. */
|
|
11
|
-
translations: z.record(z.string(), z.string()).default({}),
|
|
12
|
-
/** Adds a badge to the item */
|
|
13
|
-
badge: I18nBadgeConfigSchema(),
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
const SidebarGroupSchema = z.object({
|
|
17
|
-
...SidebarBaseSchema.shape,
|
|
18
|
-
/**
|
|
19
|
-
* Explicitly prevent custom attributes on groups as the final type for supported sidebar item
|
|
20
|
-
* is a non-discriminated union where TypeScript will not perform excess property checks.
|
|
21
|
-
* This means that a user could define a sidebar group with custom attributes, not getting a
|
|
22
|
-
* TypeScript error, and only have it fail at runtime.
|
|
23
|
-
* @see https://github.com/microsoft/TypeScript/issues/20863
|
|
24
|
-
*/
|
|
25
|
-
attrs: z.never().optional(),
|
|
26
|
-
/** Whether this item should be collapsed by default. */
|
|
27
|
-
collapsed: z.boolean().default(false),
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
// HTML attributes that can be added to an anchor element, validated as
|
|
31
|
-
// `Record<string, string | number | boolean | undefined>` but typed as `HTMLAttributes<'a'>`
|
|
32
|
-
// for user convenience.
|
|
33
|
-
const linkHTMLAttributesSchema = z.record(
|
|
34
|
-
z.string(),
|
|
35
|
-
z.union([z.string(), z.number(), z.boolean(), z.undefined(), z.null()])
|
|
36
|
-
) as z.ZodType<LinkHTMLAttributes, LinkHTMLAttributes>;
|
|
37
|
-
export type LinkHTMLAttributes = Omit<
|
|
38
|
-
HTMLAttributes<'a'>,
|
|
39
|
-
keyof AstroBuiltinAttributes | 'children'
|
|
40
|
-
>;
|
|
41
|
-
|
|
42
|
-
export const SidebarLinkItemHTMLAttributesSchema = () => linkHTMLAttributesSchema.default({});
|
|
43
|
-
|
|
44
|
-
const SidebarLinkItemSchema = z.strictObject({
|
|
45
|
-
...SidebarBaseSchema.shape,
|
|
46
|
-
/** The link to this item’s content. Can be a relative link to local files or the full URL of an external page. */
|
|
47
|
-
link: z.string(),
|
|
48
|
-
/** HTML attributes to add to the link item. */
|
|
49
|
-
attrs: SidebarLinkItemHTMLAttributesSchema(),
|
|
50
|
-
});
|
|
51
|
-
export type SidebarLinkItem = z.infer<typeof SidebarLinkItemSchema>;
|
|
52
|
-
|
|
53
|
-
const AutoSidebarEntriesSchema = z
|
|
54
|
-
.object({
|
|
55
|
-
/**
|
|
56
|
-
* Explicitly prevent autogenerated groups which are no longer supported as the final type for
|
|
57
|
-
* supported sidebar item is a non-discriminated union where TypeScript will not perform excess
|
|
58
|
-
* property checks. This means that a user could define a sidebar group with an autogenerated
|
|
59
|
-
* property, not getting a TypeScript error, and only have it fail at runtime.
|
|
60
|
-
* @see https://github.com/microsoft/TypeScript/issues/20863
|
|
61
|
-
*/
|
|
62
|
-
label: z.custom<never>().optional(),
|
|
63
|
-
/** Enable autogenerating entries from a specific docs directory. */
|
|
64
|
-
autogenerate: z.object({
|
|
65
|
-
/** The directory to generate sidebar items for. */
|
|
66
|
-
directory: z.string().transform(stripLeadingAndTrailingSlashes),
|
|
67
|
-
/** Whether the autogenerated subgroups should be collapsed by default. Default: `false`. */
|
|
68
|
-
collapsed: z.boolean().optional(),
|
|
69
|
-
/** HTML attributes to add to the autogenerated link items. */
|
|
70
|
-
attrs: SidebarLinkItemHTMLAttributesSchema(),
|
|
71
|
-
// TODO: not supported by Docusaurus but would be good to have
|
|
72
|
-
/** How many directories deep to include from this directory in the sidebar. Default: `Infinity`. */
|
|
73
|
-
// depth: z.number().optional(),
|
|
74
|
-
}),
|
|
75
|
-
})
|
|
76
|
-
.strict()
|
|
77
|
-
.superRefine((config, ctx) => {
|
|
78
|
-
if (!('label' in config)) return;
|
|
79
|
-
|
|
80
|
-
// TODO: Remove this error message in a future release once most users have migrated
|
|
81
|
-
ctx.addIssue({
|
|
82
|
-
code: 'custom',
|
|
83
|
-
message:
|
|
84
|
-
`Found an \`autogenerate\` object with a \`label\`. Support for autogenerated sidebar groups was removed in Starlight v0.39.0.\n` +
|
|
85
|
-
`You should instead create a group with the desired \`label\` and an \`items\` array containing the autogenerate config:\n\n` +
|
|
86
|
-
`{\n` +
|
|
87
|
-
` label: '${config.label}',\n` +
|
|
88
|
-
` items: [{ autogenerate: ${JSON.stringify(
|
|
89
|
-
config.autogenerate,
|
|
90
|
-
// Hide empty attrs object that is automatically added by the schema default value.
|
|
91
|
-
(key, value: unknown) =>
|
|
92
|
-
key === 'attrs' &&
|
|
93
|
-
typeof value === 'object' &&
|
|
94
|
-
value !== null &&
|
|
95
|
-
Object.keys(value).length === 0
|
|
96
|
-
? undefined
|
|
97
|
-
: value,
|
|
98
|
-
' '
|
|
99
|
-
).replace(/\n\s*/g, ' ')} }]\n` +
|
|
100
|
-
`}`,
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
export type AutoSidebarEntries = z.infer<typeof AutoSidebarEntriesSchema>;
|
|
104
|
-
|
|
105
|
-
type ManualSidebarGroupInput = z.input<typeof SidebarGroupSchema> & {
|
|
106
|
-
/** Array of links and subcategories to display in this category. */
|
|
107
|
-
items: Array<
|
|
108
|
-
| z.input<typeof SidebarLinkItemSchema>
|
|
109
|
-
| z.input<typeof AutoSidebarEntriesSchema>
|
|
110
|
-
| z.input<typeof InternalSidebarLinkItemSchema>
|
|
111
|
-
| z.input<typeof InternalSidebarLinkItemShorthandSchema>
|
|
112
|
-
| ManualSidebarGroupInput
|
|
113
|
-
>;
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
type ManualSidebarGroupOutput = z.output<typeof SidebarGroupSchema> & {
|
|
117
|
-
/** Array of links and subcategories to display in this category. */
|
|
118
|
-
items: Array<
|
|
119
|
-
| z.output<typeof SidebarLinkItemSchema>
|
|
120
|
-
| z.output<typeof AutoSidebarEntriesSchema>
|
|
121
|
-
| z.output<typeof InternalSidebarLinkItemSchema>
|
|
122
|
-
| z.output<typeof InternalSidebarLinkItemShorthandSchema>
|
|
123
|
-
| ManualSidebarGroupOutput
|
|
124
|
-
>;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
const ManualSidebarGroupSchema: z.ZodType<ManualSidebarGroupOutput, ManualSidebarGroupInput> =
|
|
128
|
-
z.strictObject({
|
|
129
|
-
...SidebarGroupSchema.shape,
|
|
130
|
-
/** Array of links and subcategories to display in this category. */
|
|
131
|
-
items: z.lazy(() =>
|
|
132
|
-
z
|
|
133
|
-
.union([
|
|
134
|
-
SidebarLinkItemSchema,
|
|
135
|
-
ManualSidebarGroupSchema,
|
|
136
|
-
AutoSidebarEntriesSchema,
|
|
137
|
-
InternalSidebarLinkItemSchema,
|
|
138
|
-
InternalSidebarLinkItemShorthandSchema,
|
|
139
|
-
])
|
|
140
|
-
.array()
|
|
141
|
-
),
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
const InternalSidebarLinkItemSchema = z.object({
|
|
145
|
-
...SidebarBaseSchema.partial({ label: true }).shape,
|
|
146
|
-
/** The link to this item’s content. Must be a slug of a Content Collection entry. */
|
|
147
|
-
slug: z.string(),
|
|
148
|
-
/** HTML attributes to add to the link item. */
|
|
149
|
-
attrs: SidebarLinkItemHTMLAttributesSchema(),
|
|
150
|
-
});
|
|
151
|
-
const InternalSidebarLinkItemShorthandSchema = z
|
|
152
|
-
.string()
|
|
153
|
-
.transform((slug) => InternalSidebarLinkItemSchema.parse({ slug }));
|
|
154
|
-
export type InternalSidebarLinkItem = z.output<typeof InternalSidebarLinkItemSchema>;
|
|
155
|
-
|
|
156
|
-
export const SidebarItemSchema = z.union([
|
|
157
|
-
SidebarLinkItemSchema,
|
|
158
|
-
ManualSidebarGroupSchema,
|
|
159
|
-
AutoSidebarEntriesSchema,
|
|
160
|
-
InternalSidebarLinkItemSchema,
|
|
161
|
-
InternalSidebarLinkItemShorthandSchema,
|
|
162
|
-
]);
|
|
163
|
-
export type SidebarItem = z.infer<typeof SidebarItemSchema>;
|
package/schemas/site-title.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from 'astro/zod';
|
|
2
|
-
|
|
3
|
-
export const TitleConfigSchema = () => z.union([z.string(), z.record(z.string(), z.string())]);
|
|
4
|
-
|
|
5
|
-
// transform the title for runtime use
|
|
6
|
-
export const TitleTransformConfigSchema = (defaultLang: string) =>
|
|
7
|
-
TitleConfigSchema().transform((title, ctx) => {
|
|
8
|
-
if (typeof title === 'string') {
|
|
9
|
-
return { [defaultLang]: title };
|
|
10
|
-
}
|
|
11
|
-
if (!title[defaultLang] && title[defaultLang] !== '') {
|
|
12
|
-
ctx.issues.push({
|
|
13
|
-
code: 'custom',
|
|
14
|
-
message: `Title must have a key for the default language "${defaultLang}"`,
|
|
15
|
-
input: title,
|
|
16
|
-
});
|
|
17
|
-
return z.NEVER;
|
|
18
|
-
}
|
|
19
|
-
return title;
|
|
20
|
-
});
|
package/schemas/social.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { z } from 'astro/zod';
|
|
2
|
-
import { IconSchema } from './icon';
|
|
3
|
-
|
|
4
|
-
const LinksSchema = z
|
|
5
|
-
.object({ icon: IconSchema(), label: z.string().min(1), href: z.string() })
|
|
6
|
-
.array()
|
|
7
|
-
.optional();
|
|
8
|
-
|
|
9
|
-
export const SocialLinksSchema = () =>
|
|
10
|
-
// Add a more specific error message to help people migrate from the old object syntax.
|
|
11
|
-
// TODO: remove once most people have updated to v0.33 or higher (e.g. when releasing Starlight v1)
|
|
12
|
-
z.preprocess((value, ctx) => {
|
|
13
|
-
if (value && typeof value === 'object' && !Array.isArray(value)) {
|
|
14
|
-
ctx.issues.push({
|
|
15
|
-
code: 'custom',
|
|
16
|
-
message:
|
|
17
|
-
'Starlight v0.33.0 changed the `social` configuration syntax. Please specify an array of link items instead of an object.\n' +
|
|
18
|
-
'See the Starlight changelog for details: https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md#0330\n',
|
|
19
|
-
input: value,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
return value;
|
|
23
|
-
}, LinksSchema) as unknown as typeof LinksSchema;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { z } from 'astro/zod';
|
|
2
|
-
|
|
3
|
-
const defaults = { minHeadingLevel: 2, maxHeadingLevel: 3 };
|
|
4
|
-
|
|
5
|
-
const TableOfContentsBaseSchema = z
|
|
6
|
-
.union([
|
|
7
|
-
z.object({
|
|
8
|
-
/** The level to start including headings at in the table of contents. Default: 2. */
|
|
9
|
-
minHeadingLevel: z.int().min(1).max(6).optional().default(2),
|
|
10
|
-
/** The level to stop including headings at in the table of contents. Default: 3. */
|
|
11
|
-
maxHeadingLevel: z.int().min(1).max(6).optional().default(3),
|
|
12
|
-
}),
|
|
13
|
-
z.boolean().transform((enabled) => (enabled ? defaults : false)),
|
|
14
|
-
])
|
|
15
|
-
.refine((toc) => (toc ? toc.minHeadingLevel <= toc.maxHeadingLevel : true), {
|
|
16
|
-
error: 'minHeadingLevel must be less than or equal to maxHeadingLevel',
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export const UserConfigTableOfContentsSchema = () => TableOfContentsBaseSchema.default(defaults);
|
|
20
|
-
|
|
21
|
-
export const FrontmatterTableOfContentsSchema = () => TableOfContentsBaseSchema.optional();
|
package/translations/README.md
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# Starlight UI translation files
|
|
2
|
-
|
|
3
|
-
This directory contains translation data for Starlight’s UI.
|
|
4
|
-
Each language has its own JSON file and follows the [translation structure described in Starlight’s docs](https://starlight.astro.build/guides/i18n/#translate-starlights-ui).
|
|
5
|
-
|
|
6
|
-
## Add a new language
|
|
7
|
-
|
|
8
|
-
1. Create a JSON file named using the BCP-47 tag for the language, e.g. `en.json` or `ja.json`.
|
|
9
|
-
|
|
10
|
-
2. Fill the file with translations for each UI string. You can base your translations on [`en.json`](./en.json). Translate only the values, leaving the keys in English (e.g. `"search.label": "Buscar"`).
|
|
11
|
-
|
|
12
|
-
3. Import your file in [`index.ts`](./index.ts) and add your language to the `Object.entries`.
|
|
13
|
-
|
|
14
|
-
4. Open a pull request on GitHub to add your file to Starlight!
|
package/translations/ar.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"skipLink.label": "تخطَّ إلى المحتوى",
|
|
3
|
-
"search.label": "ابحث",
|
|
4
|
-
"search.ctrlKey": "Ctrl",
|
|
5
|
-
"search.cancelLabel": "إلغاء",
|
|
6
|
-
"search.devWarning": "البحث متوفر فقط في بنيات اﻹنتاج. \n جرب بناء المشروع ومعاينته على جهازك",
|
|
7
|
-
"themeSelect.accessibleLabel": "اختر سمة",
|
|
8
|
-
"themeSelect.dark": "داكن",
|
|
9
|
-
"themeSelect.light": "فاتح",
|
|
10
|
-
"themeSelect.auto": "تلقائي",
|
|
11
|
-
"languageSelect.accessibleLabel": "اختر لغة",
|
|
12
|
-
"menuButton.accessibleLabel": "القائمة",
|
|
13
|
-
"sidebarNav.accessibleLabel": "الرئيسية",
|
|
14
|
-
"tableOfContents.onThisPage": "على هذه الصفحة",
|
|
15
|
-
"tableOfContents.overview": "نظرة عامة",
|
|
16
|
-
"i18n.untranslatedContent": "هذا المحتوى غير متوفر بلغتك بعد.",
|
|
17
|
-
"page.editLink": "عدل الصفحة",
|
|
18
|
-
"page.lastUpdated": "آخر تحديث:",
|
|
19
|
-
"page.previousLink": "السابق",
|
|
20
|
-
"page.nextLink": "التالي",
|
|
21
|
-
"page.draft": "هذا المحتوى مجرد مسودة ولن يظهر في بنيات الإنتاج",
|
|
22
|
-
"404.text": "الصفحة غير موجودة. تأكد من الرابط أو ابحث بإستعمال شريط البحث.",
|
|
23
|
-
"aside.note": "ملاحظة",
|
|
24
|
-
"aside.tip": "نصيحة",
|
|
25
|
-
"aside.caution": "تنبيه",
|
|
26
|
-
"aside.danger": "تحذير",
|
|
27
|
-
"expressiveCode.terminalWindowFallbackTitle": "نافذة طرفيّة",
|
|
28
|
-
"expressiveCode.copyButtonTooltip": "نسخ إلى الحافظة",
|
|
29
|
-
"expressiveCode.copyButtonCopied": "تم النسخ!",
|
|
30
|
-
"fileTree.directory": "Directory",
|
|
31
|
-
"builtWithStarlight.label": "طوِّر بواسطة Starlight",
|
|
32
|
-
"heading.anchorLabel": "Section titled “{{title}}”"
|
|
33
|
-
}
|
package/translations/ca.json
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"skipLink.label": "Saltar al contingut",
|
|
3
|
-
"search.label": "Cercar",
|
|
4
|
-
"search.ctrlKey": "Ctrl",
|
|
5
|
-
"search.cancelLabel": "Cancel·lar",
|
|
6
|
-
"search.devWarning": "La cerca només està disponible a les versions de producció. \nProva de construir i previsualitzar el lloc per provar-ho localment.",
|
|
7
|
-
"themeSelect.accessibleLabel": "Seleccionar tema",
|
|
8
|
-
"themeSelect.dark": "Fosc",
|
|
9
|
-
"themeSelect.light": "Clar",
|
|
10
|
-
"themeSelect.auto": "Automàtic",
|
|
11
|
-
"languageSelect.accessibleLabel": "Seleccionar idioma",
|
|
12
|
-
"menuButton.accessibleLabel": "Menú",
|
|
13
|
-
"sidebarNav.accessibleLabel": "Primari",
|
|
14
|
-
"tableOfContents.onThisPage": "En aquesta pàgina",
|
|
15
|
-
"tableOfContents.overview": "Sinopsi",
|
|
16
|
-
"i18n.untranslatedContent": "Aquesta pàgina encara no està disponible en el teu idioma.",
|
|
17
|
-
"page.editLink": "Edita aquesta pàgina",
|
|
18
|
-
"page.lastUpdated": "Última actualització:",
|
|
19
|
-
"page.previousLink": "Pàgina anterior",
|
|
20
|
-
"page.nextLink": "Pàgina següent",
|
|
21
|
-
"page.draft": "Aquest contingut és un esborrany i no s'inclourà en les versions de producció.",
|
|
22
|
-
"404.text": "Pàgina no trobada. Comprova la URL o intenta utilitzar la barra de cerca.",
|
|
23
|
-
"aside.note": "Nota",
|
|
24
|
-
"aside.tip": "Consell",
|
|
25
|
-
"aside.caution": "Precaució",
|
|
26
|
-
"aside.danger": "Perill",
|
|
27
|
-
"expressiveCode.copyButtonCopied": "Copiat!",
|
|
28
|
-
"expressiveCode.copyButtonTooltip": "Copiar al porta-retalls",
|
|
29
|
-
"expressiveCode.terminalWindowFallbackTitle": "Finestra del terminal",
|
|
30
|
-
"fileTree.directory": "Directori",
|
|
31
|
-
"builtWithStarlight.label": "Fet amb Starlight",
|
|
32
|
-
"pagefind.clear_search": "Netejar",
|
|
33
|
-
"pagefind.load_more": "Carregar més resultats",
|
|
34
|
-
"pagefind.search_label": "Cercar pàgina",
|
|
35
|
-
"pagefind.filters_label": "Filtres",
|
|
36
|
-
"pagefind.zero_results": "Cap resultat per a: [SEARCH_TERM]",
|
|
37
|
-
"pagefind.many_results": "[COUNT] resultats per a: [SEARCH_TERM]",
|
|
38
|
-
"pagefind.one_result": "[COUNT] resultat per a: [SEARCH_TERM]",
|
|
39
|
-
"pagefind.alt_search": "Cap resultat per a [SEARCH_TERM]. Mostrant resultats per a: [DIFFERENT_TERM]",
|
|
40
|
-
"pagefind.search_suggestion": "Cap resultat per a [SEARCH_TERM]. Prova alguna d’aquestes cerques:",
|
|
41
|
-
"pagefind.searching": "Cercant [SEARCH_TERM]...",
|
|
42
|
-
"heading.anchorLabel": "Section titled “{{title}}”"
|
|
43
|
-
}
|
package/translations/cs.json
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"skipLink.label": "Přeskočit na obsah",
|
|
3
|
-
"search.label": "Hledat",
|
|
4
|
-
"search.ctrlKey": "Ctrl",
|
|
5
|
-
"search.cancelLabel": "Zrušit",
|
|
6
|
-
"search.devWarning": "Vyhledávání je dostupné pouze v produkčních sestaveních. \nZkuste sestavit a zobrazit náhled webu a otestovat jej lokálně.",
|
|
7
|
-
"themeSelect.accessibleLabel": "Vyberte motiv",
|
|
8
|
-
"themeSelect.dark": "Tmavý",
|
|
9
|
-
"themeSelect.light": "Světlý",
|
|
10
|
-
"themeSelect.auto": "Auto",
|
|
11
|
-
"languageSelect.accessibleLabel": "Vyberte jazyk",
|
|
12
|
-
"menuButton.accessibleLabel": "Nabídka",
|
|
13
|
-
"sidebarNav.accessibleLabel": "Hlavní",
|
|
14
|
-
"tableOfContents.onThisPage": "Na této stránce",
|
|
15
|
-
"tableOfContents.overview": "Přehled",
|
|
16
|
-
"i18n.untranslatedContent": "Tento obsah zatím není dostupný ve vašem jazyce.",
|
|
17
|
-
"page.editLink": "Upravit stránku",
|
|
18
|
-
"page.lastUpdated": "Aktualizováno:",
|
|
19
|
-
"page.previousLink": "Předchozí",
|
|
20
|
-
"page.nextLink": "Další",
|
|
21
|
-
"page.draft": "Tento obsah je koncept a nebude zahrnutý v produkčním sestavení.",
|
|
22
|
-
"404.text": "Stránka nenalezena. Zkontrolujte adresu nebo zkuste použít vyhledávač.",
|
|
23
|
-
"aside.note": "Poznámka",
|
|
24
|
-
"aside.tip": "Tip",
|
|
25
|
-
"aside.caution": "Upozornění",
|
|
26
|
-
"aside.danger": "Nebezpečí",
|
|
27
|
-
"fileTree.directory": "Adresář",
|
|
28
|
-
"builtWithStarlight.label": "Postaveno se Starlight",
|
|
29
|
-
"expressiveCode.copyButtonCopied": "Zkopírováno!",
|
|
30
|
-
"expressiveCode.copyButtonTooltip": "Kopírovat do schránky",
|
|
31
|
-
"expressiveCode.terminalWindowFallbackTitle": "Terminál",
|
|
32
|
-
"pagefind.clear_search": "Vyčistit",
|
|
33
|
-
"pagefind.load_more": "Načíst další výsledky",
|
|
34
|
-
"pagefind.search_label": "Vyhledat stránku",
|
|
35
|
-
"pagefind.filters_label": "Filtry",
|
|
36
|
-
"pagefind.zero_results": "Žádný výsledek pro: [SEARCH_TERM]",
|
|
37
|
-
"pagefind.many_results": "počet výsledků: [COUNT] pro: [SEARCH_TERM]",
|
|
38
|
-
"pagefind.one_result": "[COUNT] výsledek pro: [SEARCH_TERM]",
|
|
39
|
-
"pagefind.alt_search": "Žádné výsledky pro [SEARCH_TERM]. Namísto toho zobrazuji výsledky pro: [DIFFERENT_TERM]",
|
|
40
|
-
"pagefind.search_suggestion": "Žádný výsledek pro [SEARCH_TERM]. Zkus nějaké z těchto hledání:",
|
|
41
|
-
"pagefind.searching": "Hledám [SEARCH_TERM]...",
|
|
42
|
-
"heading.anchorLabel": "Sekce “{{title}}”"
|
|
43
|
-
}
|
package/translations/da.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"skipLink.label": "Gå til indhold",
|
|
3
|
-
"search.label": "Søg",
|
|
4
|
-
"search.ctrlKey": "Ctrl",
|
|
5
|
-
"search.cancelLabel": "Annuller",
|
|
6
|
-
"search.devWarning": "Søgning er kun tilgængeligt i produktions versioner. \nPrøv at bygge siden og forhåndsvis den for at teste det lokalt.",
|
|
7
|
-
"themeSelect.accessibleLabel": "Vælg tema",
|
|
8
|
-
"themeSelect.dark": "Mørk",
|
|
9
|
-
"themeSelect.light": "Lys",
|
|
10
|
-
"themeSelect.auto": "Auto",
|
|
11
|
-
"languageSelect.accessibleLabel": "Vælg sprog",
|
|
12
|
-
"menuButton.accessibleLabel": "Menu",
|
|
13
|
-
"sidebarNav.accessibleLabel": "Hovednavigation",
|
|
14
|
-
"tableOfContents.onThisPage": "På denne side",
|
|
15
|
-
"tableOfContents.overview": "Oversigt",
|
|
16
|
-
"i18n.untranslatedContent": "Dette indhold er ikke tilgængeligt i dit sprog endnu.",
|
|
17
|
-
"page.editLink": "Rediger siden",
|
|
18
|
-
"page.lastUpdated": "Sidst opdateret:",
|
|
19
|
-
"page.previousLink": "Forrige",
|
|
20
|
-
"page.nextLink": "Næste",
|
|
21
|
-
"page.draft": "Indholdet er en kladde og vil ikke blive inkluderet i produktions versioner.",
|
|
22
|
-
"404.text": "Siden er ikke fundet. Tjek din URL eller prøv søgelinjen.",
|
|
23
|
-
"aside.note": "Note",
|
|
24
|
-
"aside.tip": "Tip",
|
|
25
|
-
"aside.caution": "Bemærk",
|
|
26
|
-
"aside.danger": "Advarsel",
|
|
27
|
-
"fileTree.directory": "Mappe",
|
|
28
|
-
"builtWithStarlight.label": "Bygget med Starlight",
|
|
29
|
-
"heading.anchorLabel": "Sektion kaldt “{{title}}”"
|
|
30
|
-
}
|
package/translations/de.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"skipLink.label": "Zum Inhalt springen",
|
|
3
|
-
"search.label": "Suchen",
|
|
4
|
-
"search.ctrlKey": "Strg",
|
|
5
|
-
"search.cancelLabel": "Abbrechen",
|
|
6
|
-
"search.devWarning": "Die Suche ist nur in Produktions-Builds verfügbar. \nVersuche, die Website zu bauen und in der Vorschau anzusehen, um sie lokal zu testen.",
|
|
7
|
-
"themeSelect.accessibleLabel": "Farbschema wählen",
|
|
8
|
-
"themeSelect.dark": "Dunkel",
|
|
9
|
-
"themeSelect.light": "Hell",
|
|
10
|
-
"themeSelect.auto": "System",
|
|
11
|
-
"languageSelect.accessibleLabel": "Sprache wählen",
|
|
12
|
-
"menuButton.accessibleLabel": "Menü",
|
|
13
|
-
"sidebarNav.accessibleLabel": "Hauptnavigation",
|
|
14
|
-
"tableOfContents.onThisPage": "Auf dieser Seite",
|
|
15
|
-
"tableOfContents.overview": "Überblick",
|
|
16
|
-
"i18n.untranslatedContent": "Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.",
|
|
17
|
-
"page.editLink": "Seite bearbeiten",
|
|
18
|
-
"page.lastUpdated": "Zuletzt aktualisiert:",
|
|
19
|
-
"page.previousLink": "Vorherige Seite",
|
|
20
|
-
"page.nextLink": "Nächste Seite",
|
|
21
|
-
"page.draft": "Dieser Inhalt ist ein Entwurf und wird nicht in den Produktions-Builds enthalten sein.",
|
|
22
|
-
"404.text": "Seite nicht gefunden. Überprüfe die URL oder nutze die Suchleiste.",
|
|
23
|
-
"aside.note": "Hinweis",
|
|
24
|
-
"aside.tip": "Tipp",
|
|
25
|
-
"aside.caution": "Achtung",
|
|
26
|
-
"aside.danger": "Gefahr",
|
|
27
|
-
"fileTree.directory": "Ordner",
|
|
28
|
-
"builtWithStarlight.label": "Erstellt mit Starlight",
|
|
29
|
-
"heading.anchorLabel": "Abschnitt betitelt „{{title}}“"
|
|
30
|
-
}
|
package/translations/el.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"skipLink.label": "Μετάβαση στο περιεχόμενο",
|
|
3
|
-
"search.label": "Αναζήτηση",
|
|
4
|
-
"search.ctrlKey": "Ctrl",
|
|
5
|
-
"search.cancelLabel": "Ακύρωση",
|
|
6
|
-
"search.devWarning": "Η αναζήτηση είναι διαθέσιμη μόνο σε builds παραγωγής.\nΔοκίμασε να κάνεις build τον ιστότοπο και να τον προεπισκοπήσεις για να τον ελέγξεις τοπικά.",
|
|
7
|
-
"themeSelect.accessibleLabel": "Επιλογή χρωματικού θέματος",
|
|
8
|
-
"themeSelect.dark": "Σκοτεινό",
|
|
9
|
-
"themeSelect.light": "Φωτεινό",
|
|
10
|
-
"themeSelect.auto": "Σύστημα",
|
|
11
|
-
"languageSelect.accessibleLabel": "Επιλογή γλώσσας",
|
|
12
|
-
"menuButton.accessibleLabel": "Μενού",
|
|
13
|
-
"sidebarNav.accessibleLabel": "Κύρια πλοήγηση",
|
|
14
|
-
"tableOfContents.onThisPage": "Σε αυτή τη σελίδα",
|
|
15
|
-
"tableOfContents.overview": "Επισκόπηση",
|
|
16
|
-
"i18n.untranslatedContent": "Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.",
|
|
17
|
-
"page.editLink": "Επεξεργασία σελίδας",
|
|
18
|
-
"page.lastUpdated": "Τελευταία ενημέρωση:",
|
|
19
|
-
"page.previousLink": "Προηγούμενη σελίδα",
|
|
20
|
-
"page.nextLink": "Επόμενη σελίδα",
|
|
21
|
-
"page.draft": "Αυτό το περιεχόμενο είναι πρόχειρο και δεν θα περιλαμβάνεται στα builds παραγωγής.",
|
|
22
|
-
"404.text": "Η σελίδα δεν βρέθηκε. Έλεγξε το URL ή χρησιμοποίησε τη γραμμή αναζήτησης.",
|
|
23
|
-
"aside.note": "Σημείωση",
|
|
24
|
-
"aside.tip": "Συμβουλή",
|
|
25
|
-
"aside.caution": "Προσοχή",
|
|
26
|
-
"aside.danger": "Κίνδυνος",
|
|
27
|
-
"fileTree.directory": "Φάκελος",
|
|
28
|
-
"builtWithStarlight.label": "Δημιουργήθηκε με το Starlight",
|
|
29
|
-
"heading.anchorLabel": "Ενότητα με τίτλο «{{title}}»"
|
|
30
|
-
}
|