@docusaurus/theme-classic 2.0.0-beta.1 → 2.0.0-beta.10
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 +1 -1
- package/lib/__tests__/validateThemeConfig.test.js +277 -3
- package/lib/admonitions.css +35 -0
- package/lib/deps.d.ts +13 -0
- package/lib/index.js +41 -16
- package/lib/prism-include-languages.js +9 -5
- package/lib/theme/AnnouncementBar/index.js +10 -16
- package/lib/theme/AnnouncementBar/styles.module.css +25 -30
- package/lib/theme/BackToTopButton/index.js +140 -0
- package/lib/theme/BackToTopButton/styles.module.css +42 -0
- package/lib/theme/BlogArchivePage/index.js +89 -0
- package/lib/theme/BlogLayout/index.js +51 -0
- package/lib/theme/BlogListPage/index.js +10 -21
- package/lib/theme/BlogPostAuthor/index.js +51 -0
- package/lib/theme/BlogPostAuthor/styles.module.css +12 -0
- package/lib/theme/BlogPostAuthors/index.js +47 -0
- package/lib/theme/BlogPostAuthors/styles.module.css +11 -0
- package/lib/theme/BlogPostItem/index.js +58 -67
- package/lib/theme/BlogPostPage/index.js +37 -24
- package/lib/theme/BlogSidebar/index.js +5 -7
- package/lib/theme/BlogSidebar/styles.module.css +2 -2
- package/lib/theme/BlogTagsListPage/index.js +8 -44
- package/lib/theme/BlogTagsPostsPage/index.js +24 -38
- package/lib/theme/CodeBlock/index.js +18 -138
- package/lib/theme/CodeBlock/styles.module.css +6 -9
- package/lib/theme/Details/index.js +30 -0
- package/lib/theme/Details/styles.module.css +13 -0
- package/lib/theme/DocCard/index.js +84 -0
- package/lib/theme/DocCard/styles.module.css +43 -0
- package/lib/theme/DocCardList/index.js +28 -0
- package/lib/theme/DocCategoryGeneratedIndexPage/index.js +57 -0
- package/lib/theme/DocCategoryGeneratedIndexPage/styles.module.css +18 -0
- package/lib/theme/DocItem/index.js +29 -46
- package/lib/theme/DocItem/styles.module.css +5 -9
- package/lib/theme/DocItemFooter/index.js +79 -0
- package/lib/theme/DocItemFooter/styles.module.css +18 -0
- package/lib/theme/DocPage/index.js +35 -52
- package/lib/theme/DocPage/styles.module.css +8 -23
- package/lib/theme/DocPaginator/index.js +6 -7
- package/lib/theme/DocSidebar/index.js +53 -235
- package/lib/theme/DocSidebar/styles.module.css +0 -18
- package/lib/theme/DocSidebarItem/index.js +209 -0
- package/lib/theme/DocSidebarItem/styles.module.css +19 -0
- package/lib/theme/DocTagDocListPage/index.js +89 -0
- package/lib/theme/DocTagsListPage/index.js +44 -0
- package/lib/theme/DocVersionBadge/index.js +34 -0
- package/lib/theme/{DocVersionSuggestions → DocVersionBanner}/index.js +39 -20
- package/lib/theme/EditThisPage/index.js +3 -1
- package/lib/theme/ErrorPageContent.js +43 -0
- package/lib/theme/Footer/index.js +16 -5
- package/lib/theme/Heading/index.js +17 -22
- package/lib/theme/Heading/styles.css +5 -6
- package/lib/theme/Heading/styles.module.css +9 -5
- package/lib/theme/IconArrow/index.js +2 -2
- package/lib/theme/IconClose/index.js +31 -0
- package/lib/theme/IconEdit/index.js +3 -3
- package/lib/theme/IconExternalLink/index.js +3 -3
- package/lib/theme/IconLanguage/index.js +3 -3
- package/lib/theme/IconMenu/index.js +3 -3
- package/lib/theme/LastUpdated/index.js +4 -2
- package/lib/theme/Layout/index.js +5 -1
- package/lib/theme/LayoutHead/index.js +22 -17
- package/lib/theme/LayoutProviders/index.js +11 -5
- package/lib/theme/Logo/index.js +16 -14
- package/lib/theme/MDXComponents/index.js +45 -4
- package/lib/theme/MDXComponents/styles.css +11 -0
- package/lib/theme/MDXPage/index.js +2 -1
- package/lib/theme/Navbar/index.js +162 -42
- package/lib/theme/Navbar/styles.module.css +10 -3
- package/lib/theme/NavbarItem/DefaultNavbarItem.js +27 -123
- package/lib/theme/NavbarItem/DocNavbarItem.js +7 -8
- package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +19 -12
- package/lib/theme/NavbarItem/DropdownNavbarItem.js +155 -0
- package/lib/theme/NavbarItem/{LocaleDropdownNavbarItem.js → LocaleDropdownNavbarItem/index.js} +6 -10
- package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/styles.module.css +11 -0
- package/lib/theme/NavbarItem/index.js +31 -11
- package/lib/theme/{SearchMetadatas → SearchMetadata}/index.js +2 -2
- package/lib/theme/Seo/index.js +10 -7
- package/lib/theme/SkipToContent/index.js +12 -4
- package/lib/theme/SkipToContent/styles.module.css +1 -0
- package/lib/theme/TOC/index.js +9 -29
- package/lib/theme/TOC/styles.module.css +1 -1
- package/lib/theme/TOCCollapsible/index.js +53 -0
- package/lib/theme/TOCCollapsible/styles.module.css +50 -0
- package/lib/theme/TOCInline/index.js +7 -27
- package/lib/theme/TOCItems/index.js +78 -0
- package/lib/theme/Tabs/__tests__/index.test.js +123 -0
- package/lib/theme/Tabs/index.js +73 -50
- package/lib/theme/Tabs/styles.module.css +0 -13
- package/lib/theme/Tag/index.js +40 -0
- package/lib/theme/Tag/styles.module.css +70 -0
- package/lib/theme/TagsListByLetter/index.js +48 -0
- package/lib/theme/TagsListByLetter/styles.module.css +11 -0
- package/lib/theme/TagsListInline/index.js +44 -0
- package/lib/theme/TagsListInline/styles.module.css +15 -0
- package/lib/theme/ThemeProvider/index.js +8 -3
- package/lib/theme/ThemedImage/index.js +6 -7
- package/lib/theme/Toggle/index.js +41 -44
- package/lib/theme/Toggle/styles.module.css +91 -3
- package/lib/theme/UserPreferencesProvider/index.js +9 -12
- package/lib/theme/hooks/useHideableNavbar.js +14 -32
- package/lib/theme/hooks/useTabGroupChoice.js +2 -4
- package/lib/theme/hooks/useTheme.js +3 -5
- package/lib/theme/hooks/useWindowSize.js +33 -20
- package/lib/theme/prism-include-languages.js +4 -3
- package/lib/theme-classic.d.ts +806 -0
- package/lib/translations.js +4 -4
- package/lib/types.d.ts +0 -599
- package/lib/validateThemeConfig.js +230 -246
- package/lib-next/__tests__/validateThemeConfig.test.js +277 -3
- package/lib-next/admonitions.css +35 -0
- package/lib-next/deps.d.ts +13 -0
- package/lib-next/index.js +45 -13
- package/lib-next/prism-include-languages.js +0 -2
- package/lib-next/theme/AnnouncementBar/index.js +9 -18
- package/lib-next/theme/AnnouncementBar/styles.module.css +25 -30
- package/lib-next/theme/BackToTopButton/index.js +131 -0
- package/lib-next/theme/BackToTopButton/styles.module.css +42 -0
- package/lib-next/theme/BlogArchivePage/index.js +80 -0
- package/lib-next/theme/BlogLayout/index.js +40 -0
- package/lib-next/theme/BlogListPage/index.js +17 -25
- package/lib-next/theme/BlogPostAuthor/index.js +46 -0
- package/lib-next/theme/BlogPostAuthor/styles.module.css +12 -0
- package/lib-next/theme/BlogPostAuthors/index.js +34 -0
- package/lib-next/theme/BlogPostAuthors/styles.module.css +11 -0
- package/lib-next/theme/BlogPostItem/index.js +79 -86
- package/lib-next/theme/BlogPostPage/index.js +70 -35
- package/lib-next/theme/BlogSidebar/index.js +11 -13
- package/lib-next/theme/BlogSidebar/styles.module.css +2 -2
- package/lib-next/theme/BlogTagsListPage/index.js +14 -55
- package/lib-next/theme/BlogTagsPostsPage/index.js +29 -39
- package/lib-next/theme/CodeBlock/index.js +17 -149
- package/lib-next/theme/CodeBlock/styles.module.css +6 -9
- package/lib-next/theme/Details/index.js +20 -0
- package/lib-next/theme/Details/styles.module.css +13 -0
- package/lib-next/theme/DocCard/index.js +80 -0
- package/lib-next/theme/DocCard/styles.module.css +43 -0
- package/lib-next/theme/DocCardList/index.js +19 -0
- package/lib-next/theme/DocCategoryGeneratedIndexPage/index.js +49 -0
- package/lib-next/theme/DocCategoryGeneratedIndexPage/styles.module.css +18 -0
- package/lib-next/theme/DocItem/index.js +40 -56
- package/lib-next/theme/DocItem/styles.module.css +5 -9
- package/lib-next/theme/DocItemFooter/index.js +79 -0
- package/lib-next/theme/DocItemFooter/styles.module.css +18 -0
- package/lib-next/theme/DocPage/index.js +46 -47
- package/lib-next/theme/DocPage/styles.module.css +8 -23
- package/lib-next/theme/DocPaginator/index.js +7 -11
- package/lib-next/theme/DocSidebar/index.js +69 -295
- package/lib-next/theme/DocSidebar/styles.module.css +0 -18
- package/lib-next/theme/DocSidebarItem/index.js +217 -0
- package/lib-next/theme/DocSidebarItem/styles.module.css +19 -0
- package/lib-next/theme/DocTagDocListPage/index.js +89 -0
- package/lib-next/theme/DocTagsListPage/index.js +38 -0
- package/lib-next/theme/DocVersionBadge/index.js +27 -0
- package/lib-next/theme/{DocVersionSuggestions → DocVersionBanner}/index.js +51 -36
- package/lib-next/theme/EditThisPage/index.js +6 -1
- package/lib-next/theme/ErrorPageContent.js +35 -0
- package/lib-next/theme/Footer/index.js +27 -5
- package/lib-next/theme/Heading/index.js +25 -29
- package/lib-next/theme/Heading/styles.css +5 -6
- package/lib-next/theme/Heading/styles.module.css +9 -5
- package/lib-next/theme/IconArrow/index.js +2 -2
- package/lib-next/theme/IconClose/index.js +23 -0
- package/lib-next/theme/IconEdit/index.js +2 -2
- package/lib-next/theme/IconExternalLink/index.js +2 -2
- package/lib-next/theme/IconLanguage/index.js +2 -2
- package/lib-next/theme/IconMenu/index.js +2 -2
- package/lib-next/theme/LastUpdated/index.js +3 -2
- package/lib-next/theme/Layout/index.js +3 -1
- package/lib-next/theme/LayoutHead/index.js +18 -23
- package/lib-next/theme/LayoutProviders/index.js +17 -6
- package/lib-next/theme/Logo/index.js +25 -21
- package/lib-next/theme/MDXComponents/index.js +34 -7
- package/lib-next/theme/MDXComponents/styles.css +11 -0
- package/lib-next/theme/MDXPage/index.js +10 -2
- package/lib-next/theme/Navbar/index.js +193 -56
- package/lib-next/theme/Navbar/styles.module.css +10 -3
- package/lib-next/theme/NavbarItem/DefaultNavbarItem.js +45 -147
- package/lib-next/theme/NavbarItem/DocNavbarItem.js +7 -7
- package/lib-next/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +31 -19
- package/lib-next/theme/NavbarItem/DropdownNavbarItem.js +159 -0
- package/lib-next/theme/NavbarItem/{LocaleDropdownNavbarItem.js → LocaleDropdownNavbarItem/index.js} +4 -12
- package/lib-next/theme/NavbarItem/LocaleDropdownNavbarItem/styles.module.css +11 -0
- package/lib-next/theme/NavbarItem/index.js +25 -12
- package/lib-next/theme/{SearchMetadatas → SearchMetadata}/index.js +1 -1
- package/lib-next/theme/Seo/index.js +11 -7
- package/lib-next/theme/SkipToContent/index.js +7 -8
- package/lib-next/theme/SkipToContent/styles.module.css +1 -0
- package/lib-next/theme/TOC/index.js +12 -36
- package/lib-next/theme/TOC/styles.module.css +1 -1
- package/lib-next/theme/TOCCollapsible/index.js +54 -0
- package/lib-next/theme/TOCCollapsible/styles.module.css +50 -0
- package/lib-next/theme/TOCInline/index.js +10 -28
- package/lib-next/theme/TOCItems/index.js +85 -0
- package/lib-next/theme/Tabs/__tests__/index.test.js +142 -0
- package/lib-next/theme/Tabs/index.js +91 -43
- package/lib-next/theme/Tabs/styles.module.css +0 -13
- package/lib-next/theme/Tag/index.js +27 -0
- package/lib-next/theme/Tag/styles.module.css +70 -0
- package/lib-next/theme/TagsListByLetter/index.js +42 -0
- package/lib-next/theme/TagsListByLetter/styles.module.css +11 -0
- package/lib-next/theme/TagsListInline/index.js +31 -0
- package/lib-next/theme/TagsListInline/styles.module.css +15 -0
- package/lib-next/theme/ThemeProvider/index.js +10 -7
- package/lib-next/theme/ThemedImage/index.js +7 -8
- package/lib-next/theme/Toggle/index.js +34 -37
- package/lib-next/theme/Toggle/styles.module.css +91 -3
- package/lib-next/theme/UserPreferencesProvider/index.js +9 -10
- package/lib-next/theme/hooks/useHideableNavbar.js +31 -44
- package/lib-next/theme/hooks/useTabGroupChoice.js +2 -4
- package/lib-next/theme/hooks/useTheme.js +4 -5
- package/lib-next/theme/hooks/useWindowSize.js +34 -20
- package/lib-next/theme/prism-include-languages.js +2 -1
- package/lib-next/theme-classic.d.ts +806 -0
- package/lib-next/translations.js +6 -10
- package/lib-next/types.d.ts +0 -599
- package/lib-next/validateThemeConfig.js +141 -114
- package/package.json +28 -25
- package/src/__tests__/validateThemeConfig.test.js +277 -3
- package/src/admonitions.css +35 -0
- package/src/deps.d.ts +13 -0
- package/src/index.ts +55 -22
- package/src/{prism-include-languages.js → prism-include-languages.ts} +0 -0
- package/src/theme/AnnouncementBar/index.tsx +10 -17
- package/src/theme/AnnouncementBar/styles.module.css +25 -30
- package/src/theme/BackToTopButton/index.tsx +142 -0
- package/src/theme/BackToTopButton/styles.module.css +42 -0
- package/src/theme/BlogArchivePage/index.tsx +91 -0
- package/src/theme/BlogLayout/index.tsx +44 -0
- package/src/theme/BlogListPage/index.tsx +18 -25
- package/src/theme/BlogPostAuthor/index.tsx +49 -0
- package/src/theme/BlogPostAuthor/styles.module.css +12 -0
- package/src/theme/BlogPostAuthors/index.tsx +39 -0
- package/src/theme/BlogPostAuthors/styles.module.css +11 -0
- package/src/theme/BlogPostItem/index.tsx +70 -80
- package/src/theme/BlogPostPage/index.tsx +72 -35
- package/src/theme/BlogSidebar/index.tsx +11 -13
- package/src/theme/BlogSidebar/styles.module.css +2 -2
- package/src/theme/BlogTagsListPage/index.tsx +14 -57
- package/src/theme/BlogTagsPostsPage/index.tsx +29 -39
- package/src/theme/CodeBlock/index.tsx +21 -151
- package/src/theme/CodeBlock/styles.module.css +6 -9
- package/src/theme/Details/index.tsx +24 -0
- package/src/theme/Details/styles.module.css +13 -0
- package/src/theme/DocCard/index.tsx +100 -0
- package/src/theme/DocCard/styles.module.css +43 -0
- package/src/theme/DocCardList/index.tsx +27 -0
- package/src/theme/DocCategoryGeneratedIndexPage/index.tsx +53 -0
- package/src/theme/DocCategoryGeneratedIndexPage/styles.module.css +18 -0
- package/src/theme/DocItem/index.tsx +43 -56
- package/src/theme/DocItem/styles.module.css +5 -9
- package/src/theme/DocItemFooter/index.tsx +91 -0
- package/src/theme/DocItemFooter/styles.module.css +18 -0
- package/src/theme/DocPage/index.tsx +44 -42
- package/src/theme/DocPage/styles.module.css +8 -23
- package/src/theme/DocPaginator/index.tsx +9 -13
- package/src/theme/DocSidebar/index.tsx +80 -307
- package/src/theme/DocSidebar/styles.module.css +0 -18
- package/src/theme/DocSidebarItem/index.tsx +242 -0
- package/src/theme/DocSidebarItem/styles.module.css +19 -0
- package/src/theme/DocTagDocListPage/index.tsx +89 -0
- package/src/theme/DocTagsListPage/index.tsx +41 -0
- package/src/theme/DocVersionBadge/index.tsx +30 -0
- package/src/theme/{DocVersionSuggestions → DocVersionBanner}/index.tsx +74 -44
- package/src/theme/EditThisPage/index.tsx +6 -1
- package/src/theme/ErrorPageContent.tsx +41 -0
- package/src/theme/Footer/index.tsx +30 -6
- package/src/theme/Heading/index.tsx +25 -31
- package/src/theme/Heading/styles.css +5 -6
- package/src/theme/Heading/styles.module.css +9 -5
- package/src/theme/IconArrow/index.tsx +2 -2
- package/src/theme/IconClose/index.tsx +26 -0
- package/src/theme/IconEdit/index.tsx +2 -2
- package/src/theme/IconExternalLink/index.tsx +2 -5
- package/src/theme/IconLanguage/index.tsx +2 -6
- package/src/theme/IconMenu/index.tsx +3 -3
- package/src/theme/LastUpdated/index.tsx +3 -2
- package/src/theme/Layout/index.tsx +3 -1
- package/src/theme/LayoutHead/index.tsx +18 -17
- package/src/theme/LayoutProviders/index.tsx +17 -6
- package/src/theme/Logo/index.tsx +21 -17
- package/src/theme/MDXComponents/index.tsx +39 -5
- package/src/theme/MDXComponents/styles.css +11 -0
- package/src/theme/MDXPage/index.tsx +10 -2
- package/src/theme/Navbar/index.tsx +203 -61
- package/src/theme/Navbar/styles.module.css +10 -3
- package/src/theme/NavbarItem/DefaultNavbarItem.tsx +42 -154
- package/src/theme/NavbarItem/DocNavbarItem.tsx +12 -16
- package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +33 -21
- package/src/theme/NavbarItem/DocsVersionNavbarItem.tsx +7 -3
- package/src/theme/NavbarItem/DropdownNavbarItem.tsx +181 -0
- package/src/theme/NavbarItem/{LocaleDropdownNavbarItem.tsx → LocaleDropdownNavbarItem/index.tsx} +8 -9
- package/src/theme/NavbarItem/LocaleDropdownNavbarItem/styles.module.css +11 -0
- package/src/theme/NavbarItem/index.tsx +41 -16
- package/src/theme/{SearchMetadatas → SearchMetadata}/index.tsx +2 -2
- package/src/theme/Seo/index.tsx +7 -4
- package/src/theme/SkipToContent/index.tsx +7 -8
- package/src/theme/SkipToContent/styles.module.css +1 -0
- package/src/theme/TOC/index.tsx +12 -41
- package/src/theme/TOC/styles.module.css +1 -1
- package/src/theme/TOCCollapsible/index.tsx +58 -0
- package/src/theme/TOCCollapsible/styles.module.css +50 -0
- package/src/theme/TOCInline/index.tsx +13 -32
- package/src/theme/TOCItems/index.tsx +96 -0
- package/src/theme/Tabs/__tests__/index.test.tsx +129 -0
- package/src/theme/Tabs/index.tsx +93 -49
- package/src/theme/Tabs/styles.module.css +0 -13
- package/src/theme/Tag/index.tsx +31 -0
- package/src/theme/Tag/styles.module.css +70 -0
- package/src/theme/TagsListByLetter/index.tsx +45 -0
- package/src/theme/TagsListByLetter/styles.module.css +11 -0
- package/src/theme/TagsListInline/index.tsx +35 -0
- package/src/theme/TagsListInline/styles.module.css +15 -0
- package/src/theme/ThemeProvider/index.tsx +6 -2
- package/src/theme/ThemedImage/index.tsx +8 -8
- package/src/theme/Toggle/index.tsx +36 -43
- package/src/theme/Toggle/styles.module.css +91 -3
- package/src/theme/UserPreferencesProvider/index.tsx +9 -11
- package/src/theme/hooks/useHideableNavbar.ts +32 -45
- package/src/theme/hooks/useTabGroupChoice.ts +4 -4
- package/src/theme/hooks/useTheme.ts +4 -5
- package/src/theme/hooks/useWindowSize.ts +38 -20
- package/src/theme/prism-include-languages.ts +3 -2
- package/src/theme-classic.d.ts +806 -0
- package/src/translations.ts +8 -10
- package/src/types.d.ts +0 -599
- package/src/{validateThemeConfig.js → validateThemeConfig.ts} +151 -94
- package/tsconfig.json +1 -2
- package/codeTranslations/README.md +0 -20
- package/codeTranslations/ar.json +0 -57
- package/codeTranslations/base.json +0 -112
- package/codeTranslations/bn.json +0 -56
- package/codeTranslations/da.json +0 -57
- package/codeTranslations/de.json +0 -57
- package/codeTranslations/es.json +0 -57
- package/codeTranslations/fa.json +0 -57
- package/codeTranslations/fil.json +0 -57
- package/codeTranslations/fr.json +0 -57
- package/codeTranslations/he.json +0 -57
- package/codeTranslations/hi.json +0 -57
- package/codeTranslations/ja.json +0 -57
- package/codeTranslations/ko.json +0 -57
- package/codeTranslations/pl.json +0 -57
- package/codeTranslations/pt-BR.json +0 -57
- package/codeTranslations/pt-PT.json +0 -57
- package/codeTranslations/ru.json +0 -57
- package/codeTranslations/tr.json +0 -57
- package/codeTranslations/vi.json +0 -57
- package/codeTranslations/zh-Hans.json +0 -57
- package/codeTranslations/zh-Hant.json +0 -57
- package/lib/theme/Toggle/styles.css +0 -103
- package/lib/theme/hooks/useAnnouncementBar.js +0 -63
- package/lib/theme/hooks/useContextualSearchFilters.js +0 -47
- package/lib/theme/hooks/useScrollPosition.js +0 -49
- package/lib/theme/hooks/useTOCHighlight.js +0 -87
- package/lib-next/theme/Toggle/styles.css +0 -103
- package/lib-next/theme/hooks/useAnnouncementBar.js +0 -49
- package/lib-next/theme/hooks/useContextualSearchFilters.js +0 -41
- package/lib-next/theme/hooks/useScrollPosition.js +0 -38
- package/lib-next/theme/hooks/useTOCHighlight.js +0 -84
- package/src/theme/Toggle/styles.css +0 -103
- package/src/theme/hooks/useAnnouncementBar.ts +0 -58
- package/src/theme/hooks/useContextualSearchFilters.ts +0 -52
- package/src/theme/hooks/useScrollPosition.ts +0 -45
- package/src/theme/hooks/useTOCHighlight.ts +0 -98
- package/update-code-translations.js +0 -239
- package/update-code-translations.test.js +0 -33
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
import {Joi, URISchema} from '@docusaurus/utils-validation';
|
|
9
|
+
import type {ThemeConfig, Validate, ValidationResult} from '@docusaurus/types';
|
|
9
10
|
|
|
10
11
|
const DEFAULT_DOCS_CONFIG = {
|
|
11
12
|
versionPersistence: 'localStorage',
|
|
@@ -31,7 +32,7 @@ const DEFAULT_COLOR_MODE_CONFIG = {
|
|
|
31
32
|
const DEFAULT_CONFIG = {
|
|
32
33
|
colorMode: DEFAULT_COLOR_MODE_CONFIG,
|
|
33
34
|
docs: DEFAULT_DOCS_CONFIG,
|
|
34
|
-
|
|
35
|
+
metadata: [],
|
|
35
36
|
prism: {
|
|
36
37
|
additionalLanguages: [],
|
|
37
38
|
},
|
|
@@ -40,84 +41,55 @@ const DEFAULT_CONFIG = {
|
|
|
40
41
|
items: [],
|
|
41
42
|
},
|
|
42
43
|
hideableSidebar: false,
|
|
44
|
+
tableOfContents: {
|
|
45
|
+
minHeadingLevel: 2,
|
|
46
|
+
maxHeadingLevel: 3,
|
|
47
|
+
},
|
|
43
48
|
};
|
|
44
|
-
exports.DEFAULT_CONFIG = DEFAULT_CONFIG;
|
|
45
49
|
|
|
46
50
|
const NavbarItemPosition = Joi.string().equal('left', 'right').default('left');
|
|
47
51
|
|
|
48
|
-
const
|
|
49
|
-
to: Joi.string(),
|
|
50
|
-
href: URISchema,
|
|
52
|
+
const NavbarItemBaseSchema = Joi.object({
|
|
51
53
|
label: Joi.string(),
|
|
52
54
|
className: Joi.string(),
|
|
53
|
-
prependBaseUrlToHref: Joi.bool(),
|
|
54
55
|
})
|
|
55
56
|
// We allow any unknown attributes on the links
|
|
56
57
|
// (users may need additional attributes like target, aria-role, data-customAttribute...)
|
|
57
58
|
.unknown();
|
|
58
59
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const DefaultNavbarItemSchema = BaseNavbarItemSchema.append({
|
|
63
|
-
items: Joi.array().optional().items(BaseNavbarItemSchema),
|
|
64
|
-
position: NavbarItemPosition,
|
|
60
|
+
const DefaultNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
61
|
+
to: Joi.string(),
|
|
62
|
+
href: URISchema,
|
|
65
63
|
activeBasePath: Joi.string(),
|
|
66
64
|
activeBaseRegex: Joi.string(),
|
|
67
|
-
|
|
68
|
-
//
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
prependBaseUrlToHref: Joi.bool(),
|
|
66
|
+
// This is only triggered in case of a nested dropdown
|
|
67
|
+
items: Joi.forbidden().messages({
|
|
68
|
+
'any.unknown': 'Nested dropdowns are not allowed',
|
|
69
|
+
}),
|
|
70
|
+
})
|
|
71
|
+
.xor('href', 'to')
|
|
72
|
+
.messages({
|
|
73
|
+
'object.xor': 'One and only one between "to" and "href" should be provided',
|
|
74
|
+
});
|
|
71
75
|
|
|
72
|
-
const DocsVersionNavbarItemSchema =
|
|
76
|
+
const DocsVersionNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
73
77
|
type: Joi.string().equal('docsVersion').required(),
|
|
74
|
-
position: NavbarItemPosition,
|
|
75
|
-
label: Joi.string(),
|
|
76
78
|
to: Joi.string(),
|
|
77
79
|
docsPluginId: Joi.string(),
|
|
78
|
-
className: Joi.string(),
|
|
79
80
|
});
|
|
80
81
|
|
|
81
|
-
const
|
|
82
|
-
type: Joi.string().equal('docsVersionDropdown').required(),
|
|
83
|
-
position: NavbarItemPosition,
|
|
84
|
-
docsPluginId: Joi.string(),
|
|
85
|
-
dropdownActiveClassDisabled: Joi.boolean(),
|
|
86
|
-
dropdownItemsBefore: Joi.array().items(BaseNavbarItemSchema).default([]),
|
|
87
|
-
dropdownItemsAfter: Joi.array().items(BaseNavbarItemSchema).default([]),
|
|
88
|
-
className: Joi.string(),
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
const DocItemSchema = Joi.object({
|
|
82
|
+
const DocItemSchema = NavbarItemBaseSchema.append({
|
|
92
83
|
type: Joi.string().equal('doc').required(),
|
|
93
|
-
position: NavbarItemPosition,
|
|
94
84
|
docId: Joi.string().required(),
|
|
95
|
-
label: Joi.string(),
|
|
96
85
|
docsPluginId: Joi.string(),
|
|
97
|
-
activeSidebarClassName: Joi.string().default('navbar__link--active'),
|
|
98
|
-
className: Joi.string(),
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
const LocaleDropdownNavbarItemSchema = Joi.object({
|
|
102
|
-
type: Joi.string().equal('localeDropdown').required(),
|
|
103
|
-
position: NavbarItemPosition,
|
|
104
|
-
dropdownItemsBefore: Joi.array().items(BaseNavbarItemSchema).default([]),
|
|
105
|
-
dropdownItemsAfter: Joi.array().items(BaseNavbarItemSchema).default([]),
|
|
106
|
-
className: Joi.string(),
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
const SearchItemSchema = Joi.object({
|
|
110
|
-
type: Joi.string().equal('search').required(),
|
|
111
|
-
position: NavbarItemPosition,
|
|
112
86
|
});
|
|
113
87
|
|
|
114
|
-
|
|
115
|
-
const isOfType = (type) => {
|
|
116
|
-
let typeSchema = Joi.string().required();
|
|
88
|
+
const itemWithType = (type: string | undefined) => {
|
|
117
89
|
// because equal(undefined) is not supported :/
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
90
|
+
const typeSchema = type
|
|
91
|
+
? Joi.string().required().equal(type)
|
|
92
|
+
: Joi.string().forbidden();
|
|
121
93
|
return Joi.object({
|
|
122
94
|
type: typeSchema,
|
|
123
95
|
})
|
|
@@ -125,58 +97,105 @@ const isOfType = (type) => {
|
|
|
125
97
|
.required();
|
|
126
98
|
};
|
|
127
99
|
|
|
128
|
-
const
|
|
100
|
+
const DropdownSubitemSchema = Joi.object({
|
|
101
|
+
position: Joi.forbidden(),
|
|
102
|
+
}).when('.', {
|
|
103
|
+
switch: [
|
|
104
|
+
{
|
|
105
|
+
is: itemWithType('docsVersion'),
|
|
106
|
+
then: DocsVersionNavbarItemSchema,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
is: itemWithType('doc'),
|
|
110
|
+
then: DocItemSchema,
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
is: itemWithType(undefined),
|
|
114
|
+
then: DefaultNavbarItemSchema,
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
is: Joi.alternatives().try(
|
|
118
|
+
itemWithType('dropdown'),
|
|
119
|
+
itemWithType('docsVersionDropdown'),
|
|
120
|
+
itemWithType('localeDropdown'),
|
|
121
|
+
itemWithType('search'),
|
|
122
|
+
),
|
|
123
|
+
then: Joi.forbidden().messages({
|
|
124
|
+
'any.unknown': 'Nested dropdowns are not allowed',
|
|
125
|
+
}),
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
otherwise: Joi.forbidden().messages({
|
|
129
|
+
'any.unknown': 'Bad navbar item type {.type}',
|
|
130
|
+
}),
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
const DropdownNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
134
|
+
items: Joi.array().items(DropdownSubitemSchema).required(),
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
const DocsVersionDropdownNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
138
|
+
type: Joi.string().equal('docsVersionDropdown').required(),
|
|
139
|
+
docsPluginId: Joi.string(),
|
|
140
|
+
dropdownActiveClassDisabled: Joi.boolean(),
|
|
141
|
+
dropdownItemsBefore: Joi.array().items(DropdownSubitemSchema).default([]),
|
|
142
|
+
dropdownItemsAfter: Joi.array().items(DropdownSubitemSchema).default([]),
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
const LocaleDropdownNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
146
|
+
type: Joi.string().equal('localeDropdown').required(),
|
|
147
|
+
dropdownItemsBefore: Joi.array().items(DropdownSubitemSchema).default([]),
|
|
148
|
+
dropdownItemsAfter: Joi.array().items(DropdownSubitemSchema).default([]),
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
const SearchItemSchema = Joi.object({
|
|
152
|
+
type: Joi.string().equal('search').required(),
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
const NavbarItemSchema = Joi.object({
|
|
156
|
+
position: NavbarItemPosition,
|
|
157
|
+
}).when('.', {
|
|
129
158
|
switch: [
|
|
130
159
|
{
|
|
131
|
-
is:
|
|
160
|
+
is: itemWithType('docsVersion'),
|
|
132
161
|
then: DocsVersionNavbarItemSchema,
|
|
133
162
|
},
|
|
134
163
|
{
|
|
135
|
-
is:
|
|
164
|
+
is: itemWithType('dropdown'),
|
|
165
|
+
then: DropdownNavbarItemSchema,
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
is: itemWithType('docsVersionDropdown'),
|
|
136
169
|
then: DocsVersionDropdownNavbarItemSchema,
|
|
137
170
|
},
|
|
138
171
|
{
|
|
139
|
-
is:
|
|
172
|
+
is: itemWithType('doc'),
|
|
140
173
|
then: DocItemSchema,
|
|
141
174
|
},
|
|
142
175
|
{
|
|
143
|
-
is:
|
|
176
|
+
is: itemWithType('localeDropdown'),
|
|
144
177
|
then: LocaleDropdownNavbarItemSchema,
|
|
145
178
|
},
|
|
146
179
|
{
|
|
147
|
-
is:
|
|
180
|
+
is: itemWithType('search'),
|
|
148
181
|
then: SearchItemSchema,
|
|
149
182
|
},
|
|
150
183
|
{
|
|
151
|
-
is:
|
|
152
|
-
then: Joi.
|
|
153
|
-
|
|
184
|
+
is: itemWithType(undefined),
|
|
185
|
+
then: Joi.object().when('.', {
|
|
186
|
+
// Dropdown item can be specified without type field
|
|
187
|
+
is: Joi.object({
|
|
188
|
+
items: Joi.array().required(),
|
|
189
|
+
}).unknown(),
|
|
190
|
+
then: DropdownNavbarItemSchema,
|
|
191
|
+
otherwise: DefaultNavbarItemSchema,
|
|
154
192
|
}),
|
|
155
193
|
},
|
|
156
194
|
],
|
|
157
|
-
otherwise:
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/*
|
|
161
|
-
const NavbarItemSchema = Joi.object({
|
|
162
|
-
type: Joi.string().only(['docsVersion'])
|
|
163
|
-
})
|
|
164
|
-
.when(Joi.object({ type: 'docsVersion' }).unknown(), {
|
|
165
|
-
then: Joi.object({ pepperoni: Joi.boolean() })
|
|
166
|
-
})
|
|
167
|
-
.when(Joi.object().unknown(), {
|
|
168
|
-
then: Joi.object({ croutons: Joi.boolean() })
|
|
169
|
-
})
|
|
170
|
-
|
|
171
|
-
*/
|
|
172
|
-
|
|
173
|
-
/*
|
|
174
|
-
const NavbarItemSchema = Joi.object().when('type', {
|
|
175
|
-
is: Joi.valid('docsVersion'),
|
|
176
|
-
then: DocsVersionNavbarItemSchema,
|
|
177
|
-
otherwise: DefaultNavbarItemSchema,
|
|
195
|
+
otherwise: Joi.forbidden().messages({
|
|
196
|
+
'any.unknown': 'Bad navbar item type {.type}',
|
|
197
|
+
}),
|
|
178
198
|
});
|
|
179
|
-
*/
|
|
180
199
|
|
|
181
200
|
const ColorModeSchema = Joi.object({
|
|
182
201
|
defaultMode: Joi.string()
|
|
@@ -231,12 +250,12 @@ const CustomCssSchema = Joi.alternatives()
|
|
|
231
250
|
|
|
232
251
|
const ThemeConfigSchema = Joi.object({
|
|
233
252
|
// TODO temporary (@alpha-58)
|
|
234
|
-
disableDarkMode: Joi.any().forbidden(
|
|
253
|
+
disableDarkMode: Joi.any().forbidden().messages({
|
|
235
254
|
'any.unknown':
|
|
236
255
|
'disableDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.disableSwitch = true',
|
|
237
256
|
}),
|
|
238
257
|
// TODO temporary (@alpha-58)
|
|
239
|
-
defaultDarkMode: Joi.any().forbidden(
|
|
258
|
+
defaultDarkMode: Joi.any().forbidden().messages({
|
|
240
259
|
'any.unknown':
|
|
241
260
|
'defaultDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.defaultMode = "dark"',
|
|
242
261
|
}),
|
|
@@ -244,12 +263,16 @@ const ThemeConfigSchema = Joi.object({
|
|
|
244
263
|
colorMode: ColorModeSchema,
|
|
245
264
|
image: Joi.string(),
|
|
246
265
|
docs: DocsSchema,
|
|
247
|
-
|
|
266
|
+
metadata: Joi.array()
|
|
248
267
|
.items(HtmlMetadataSchema)
|
|
249
|
-
.default(DEFAULT_CONFIG.
|
|
268
|
+
.default(DEFAULT_CONFIG.metadata),
|
|
269
|
+
metadatas: Joi.any().forbidden().messages({
|
|
270
|
+
'any.unknown':
|
|
271
|
+
'themeConfig.metadatas has been renamed as themeConfig.metadata. See https://github.com/facebook/docusaurus/pull/5871',
|
|
272
|
+
}),
|
|
250
273
|
announcementBar: Joi.object({
|
|
251
274
|
id: Joi.string().default('announcement-bar'),
|
|
252
|
-
content: Joi.string(),
|
|
275
|
+
content: Joi.string().required(),
|
|
253
276
|
backgroundColor: Joi.string(),
|
|
254
277
|
textColor: Joi.string(),
|
|
255
278
|
isCloseable: Joi.bool().default(true),
|
|
@@ -270,6 +293,8 @@ const ThemeConfigSchema = Joi.object({
|
|
|
270
293
|
alt: Joi.string().allow(''),
|
|
271
294
|
src: Joi.string().required(),
|
|
272
295
|
srcDark: Joi.string(),
|
|
296
|
+
width: Joi.alternatives().try(Joi.string(), Joi.number()),
|
|
297
|
+
height: Joi.alternatives().try(Joi.string(), Joi.number()),
|
|
273
298
|
href: Joi.string(),
|
|
274
299
|
target: Joi.string(),
|
|
275
300
|
}),
|
|
@@ -280,6 +305,9 @@ const ThemeConfigSchema = Joi.object({
|
|
|
280
305
|
alt: Joi.string().allow(''),
|
|
281
306
|
src: Joi.string(),
|
|
282
307
|
srcDark: Joi.string(),
|
|
308
|
+
// TODO infer this from reading the image
|
|
309
|
+
width: Joi.alternatives().try(Joi.string(), Joi.number()),
|
|
310
|
+
height: Joi.alternatives().try(Joi.string(), Joi.number()),
|
|
283
311
|
href: Joi.string(),
|
|
284
312
|
}),
|
|
285
313
|
copyright: Joi.string(),
|
|
@@ -309,9 +337,38 @@ const ThemeConfigSchema = Joi.object({
|
|
|
309
337
|
.default(DEFAULT_CONFIG.prism)
|
|
310
338
|
.unknown(),
|
|
311
339
|
hideableSidebar: Joi.bool().default(DEFAULT_CONFIG.hideableSidebar),
|
|
340
|
+
sidebarCollapsible: Joi.forbidden().messages({
|
|
341
|
+
'any.unknown':
|
|
342
|
+
'The themeConfig.sidebarCollapsible has been moved to docs plugin options. See: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs',
|
|
343
|
+
}),
|
|
344
|
+
tableOfContents: Joi.object({
|
|
345
|
+
minHeadingLevel: Joi.number()
|
|
346
|
+
.default(DEFAULT_CONFIG.tableOfContents.minHeadingLevel)
|
|
347
|
+
.when('maxHeadingLevel', {
|
|
348
|
+
is: Joi.exist(),
|
|
349
|
+
then: Joi.number()
|
|
350
|
+
.integer()
|
|
351
|
+
.min(2)
|
|
352
|
+
.max(6)
|
|
353
|
+
.max(Joi.ref('maxHeadingLevel')),
|
|
354
|
+
otherwise: Joi.number().integer().min(2).max(6),
|
|
355
|
+
}),
|
|
356
|
+
maxHeadingLevel: Joi.number()
|
|
357
|
+
.integer()
|
|
358
|
+
.min(2)
|
|
359
|
+
.max(6)
|
|
360
|
+
.default(DEFAULT_CONFIG.tableOfContents.maxHeadingLevel),
|
|
361
|
+
}).default(DEFAULT_CONFIG.tableOfContents),
|
|
312
362
|
});
|
|
313
|
-
exports.ThemeConfigSchema = ThemeConfigSchema;
|
|
314
363
|
|
|
315
|
-
|
|
364
|
+
export {DEFAULT_CONFIG, ThemeConfigSchema};
|
|
365
|
+
|
|
366
|
+
export function validateThemeConfig({
|
|
367
|
+
validate,
|
|
368
|
+
themeConfig,
|
|
369
|
+
}: {
|
|
370
|
+
validate: Validate<ThemeConfig>;
|
|
371
|
+
themeConfig: ThemeConfig;
|
|
372
|
+
}): ValidationResult<ThemeConfig> {
|
|
316
373
|
return validate(ThemeConfigSchema, themeConfig);
|
|
317
|
-
}
|
|
374
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Default theme translations
|
|
2
|
-
|
|
3
|
-
The Docusaurus theme includes default translations for labels used by the theme itself (like the pagination "Next" / "Previous").
|
|
4
|
-
|
|
5
|
-
## For Docusaurus users:
|
|
6
|
-
|
|
7
|
-
Please help us provide exhaustive translations:
|
|
8
|
-
|
|
9
|
-
- add your `language.json` file if it is missing (copy `base.json` and remove the attributes `___DESCRIPTION`)
|
|
10
|
-
- double-check your `language.json` file for bad or missing translations
|
|
11
|
-
|
|
12
|
-
## For maintainers:
|
|
13
|
-
|
|
14
|
-
After updating the theme code, you can "synchronize" the translations by running:
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
yarn workspace @docusaurus/theme-classic update-code-translations
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
Then, ask contributors to translate the newly added labels on this [issue](https://github.com/facebook/docusaurus/issues/3526)
|
package/codeTranslations/ar.json
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"theme.AnnouncementBar.closeButtonAriaLabel": "إغلاق",
|
|
3
|
-
"theme.CodeBlock.copied": "تم النسخ",
|
|
4
|
-
"theme.CodeBlock.copy": "نسخ",
|
|
5
|
-
"theme.CodeBlock.copyButtonAriaLabel": "نسخ الرمز إلى الحافظة",
|
|
6
|
-
"theme.NotFound.p1": "لم نتمكن من العثور على ما كنت تبحث عنه.",
|
|
7
|
-
"theme.NotFound.p2": "يرجى الاتصال بمالك الموقع الذي ربطك بعنوان URL الأصلي وإخباره بأن الارتباط الخاص به معطل.",
|
|
8
|
-
"theme.NotFound.title": "الصفحة غير موجودة",
|
|
9
|
-
"theme.Playground.liveEditor": "محرر مباشر",
|
|
10
|
-
"theme.Playground.result": "النتيجة",
|
|
11
|
-
"theme.PwaReloadPopup.closeButtonAriaLabel": "إغلاق",
|
|
12
|
-
"theme.PwaReloadPopup.info": "نسخة جديدة متاحة",
|
|
13
|
-
"theme.PwaReloadPopup.refreshButtonText": "تحديث",
|
|
14
|
-
"theme.SearchBar.label": "بحث",
|
|
15
|
-
"theme.SearchPage.algoliaLabel": "البحث بواسطه Algolia",
|
|
16
|
-
"theme.SearchPage.documentsFound.plurals": "One document found|{count} documents found",
|
|
17
|
-
"theme.SearchPage.emptyResultsTitle": "ابحث في الوثائق",
|
|
18
|
-
"theme.SearchPage.existingResultsTitle": "نتائج البحث عن \"{query}\"",
|
|
19
|
-
"theme.SearchPage.fetchingNewResults": "جلب نتائج جديدة ...",
|
|
20
|
-
"theme.SearchPage.inputLabel": "بحث",
|
|
21
|
-
"theme.SearchPage.inputPlaceholder": "اكتب ما تبحث عنه هنا",
|
|
22
|
-
"theme.SearchPage.noResultsText": "لم يتم العثور على نتائج",
|
|
23
|
-
"theme.blog.paginator.navAriaLabel": "التنقل في صفحة قائمة المدونة",
|
|
24
|
-
"theme.blog.paginator.newerEntries": "إدخالات أحدث",
|
|
25
|
-
"theme.blog.paginator.olderEntries": "إدخالات أقدم",
|
|
26
|
-
"theme.blog.post.paginator.navAriaLabel": "التنقل في صفحة مقالات المدونة",
|
|
27
|
-
"theme.blog.post.paginator.newerPost": "مقالات أحدث",
|
|
28
|
-
"theme.blog.post.paginator.olderPost": "مقالات أقدم",
|
|
29
|
-
"theme.blog.post.plurals": "مقاله واحده|{count} مقالات",
|
|
30
|
-
"theme.blog.post.readMore": "اقرأ المزيد",
|
|
31
|
-
"theme.blog.post.readingTime.plurals": "{readingTime} دقائق قراءة|{readingTime} دقائق قراءة",
|
|
32
|
-
"theme.blog.sidebar.navAriaLabel": "Blog recent posts navigation",
|
|
33
|
-
"theme.blog.tagTitle": "{nPosts} موسومة ب \"{tagName}\"",
|
|
34
|
-
"theme.common.editThisPage": "تعديل هذه الصفحة",
|
|
35
|
-
"theme.common.headingLinkTitle": "ارتباط مباشر بالعنوان",
|
|
36
|
-
"theme.common.skipToMainContent": "انتقل إلى المحتوى الرئيسي",
|
|
37
|
-
"theme.docs.paginator.navAriaLabel": "التنقل بين صفحات المستندات",
|
|
38
|
-
"theme.docs.paginator.next": "التالى",
|
|
39
|
-
"theme.docs.paginator.previous": "السابق",
|
|
40
|
-
"theme.docs.sidebar.collapseButtonAriaLabel": "طي الشريط الجانبي",
|
|
41
|
-
"theme.docs.sidebar.collapseButtonTitle": "طي الشريط الجانبي",
|
|
42
|
-
"theme.docs.sidebar.expandButtonAriaLabel": "توسيع الشريط الجانبي",
|
|
43
|
-
"theme.docs.sidebar.expandButtonTitle": "توسيع الشريط الجانبي",
|
|
44
|
-
"theme.docs.sidebar.navAriaLabel": "Sidebar navigation",
|
|
45
|
-
"theme.docs.sidebar.responsiveCloseButtonLabel": "إغلاق القائمة",
|
|
46
|
-
"theme.docs.sidebar.responsiveOpenButtonLabel": "فتح القائمة",
|
|
47
|
-
"theme.docs.versions.latestVersionLinkLabel": "احدث اصدار",
|
|
48
|
-
"theme.docs.versions.latestVersionSuggestionLabel": "للحصول على أحدث الوثائق، راجع {latestVersionLink} ({versionLabel}).",
|
|
49
|
-
"theme.docs.versions.unmaintainedVersionLabel": "هذه هي وثائق {siteTitle} {versionLabel}، التي لم تعد تتم صيانتها بشكل نشط.",
|
|
50
|
-
"theme.docs.versions.unreleasedVersionLabel": "هذه وثائق لم يتم طرحها لإصدار {siteTitle} {versionLabel}.",
|
|
51
|
-
"theme.lastUpdated.atDate": " في {date}",
|
|
52
|
-
"theme.lastUpdated.byUser": " بواسطة {user}",
|
|
53
|
-
"theme.lastUpdated.lastUpdatedAtBy": "آخر تحديث{atDate}{byUser}",
|
|
54
|
-
"theme.tags.tagsListLabel": "الوسوم:",
|
|
55
|
-
"theme.tags.tagsPageLink": "عرض كل الوسوم",
|
|
56
|
-
"theme.tags.tagsPageTitle": "الوسوم"
|
|
57
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"theme.AnnouncementBar.closeButtonAriaLabel": "Close",
|
|
3
|
-
"theme.AnnouncementBar.closeButtonAriaLabel___DESCRIPTION": "The ARIA label for close button of announcement bar",
|
|
4
|
-
"theme.CodeBlock.copied": "Copied",
|
|
5
|
-
"theme.CodeBlock.copied___DESCRIPTION": "The copied button label on code blocks",
|
|
6
|
-
"theme.CodeBlock.copy": "Copy",
|
|
7
|
-
"theme.CodeBlock.copy___DESCRIPTION": "The copy button label on code blocks",
|
|
8
|
-
"theme.CodeBlock.copyButtonAriaLabel": "Copy code to clipboard",
|
|
9
|
-
"theme.CodeBlock.copyButtonAriaLabel___DESCRIPTION": "The ARIA label for copy code blocks button",
|
|
10
|
-
"theme.NotFound.p1": "We could not find what you were looking for.",
|
|
11
|
-
"theme.NotFound.p1___DESCRIPTION": "The first paragraph of the 404 page",
|
|
12
|
-
"theme.NotFound.p2": "Please contact the owner of the site that linked you to the original URL and let them know their link is broken.",
|
|
13
|
-
"theme.NotFound.p2___DESCRIPTION": "The 2nd paragraph of the 404 page",
|
|
14
|
-
"theme.NotFound.title": "Page Not Found",
|
|
15
|
-
"theme.NotFound.title___DESCRIPTION": "The title of the 404 page",
|
|
16
|
-
"theme.Playground.liveEditor": "Live Editor",
|
|
17
|
-
"theme.Playground.liveEditor___DESCRIPTION": "The live editor label of the live codeblocks",
|
|
18
|
-
"theme.Playground.result": "Result",
|
|
19
|
-
"theme.Playground.result___DESCRIPTION": "The result label of the live codeblocks",
|
|
20
|
-
"theme.PwaReloadPopup.closeButtonAriaLabel": "Close",
|
|
21
|
-
"theme.PwaReloadPopup.closeButtonAriaLabel___DESCRIPTION": "The ARIA label for close button of PWA reload popup",
|
|
22
|
-
"theme.PwaReloadPopup.info": "New version available",
|
|
23
|
-
"theme.PwaReloadPopup.info___DESCRIPTION": "The text for PWA reload popup",
|
|
24
|
-
"theme.PwaReloadPopup.refreshButtonText": "Refresh",
|
|
25
|
-
"theme.PwaReloadPopup.refreshButtonText___DESCRIPTION": "The text for PWA reload button",
|
|
26
|
-
"theme.SearchBar.label": "Search",
|
|
27
|
-
"theme.SearchBar.label___DESCRIPTION": "The ARIA label and placeholder for search button",
|
|
28
|
-
"theme.SearchPage.algoliaLabel": "Search by Algolia",
|
|
29
|
-
"theme.SearchPage.algoliaLabel___DESCRIPTION": "The ARIA label for Algolia mention",
|
|
30
|
-
"theme.SearchPage.documentsFound.plurals": "One document found|{count} documents found",
|
|
31
|
-
"theme.SearchPage.documentsFound.plurals___DESCRIPTION": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)",
|
|
32
|
-
"theme.SearchPage.emptyResultsTitle": "Search the documentation",
|
|
33
|
-
"theme.SearchPage.emptyResultsTitle___DESCRIPTION": "The search page title for empty query",
|
|
34
|
-
"theme.SearchPage.existingResultsTitle": "Search results for \"{query}\"",
|
|
35
|
-
"theme.SearchPage.existingResultsTitle___DESCRIPTION": "The search page title for non-empty query",
|
|
36
|
-
"theme.SearchPage.fetchingNewResults": "Fetching new results...",
|
|
37
|
-
"theme.SearchPage.fetchingNewResults___DESCRIPTION": "The paragraph for fetching new search results",
|
|
38
|
-
"theme.SearchPage.inputLabel": "Search",
|
|
39
|
-
"theme.SearchPage.inputLabel___DESCRIPTION": "The ARIA label for search page input",
|
|
40
|
-
"theme.SearchPage.inputPlaceholder": "Type your search here",
|
|
41
|
-
"theme.SearchPage.inputPlaceholder___DESCRIPTION": "The placeholder for search page input",
|
|
42
|
-
"theme.SearchPage.noResultsText": "No results were found",
|
|
43
|
-
"theme.SearchPage.noResultsText___DESCRIPTION": "The paragraph for empty search result",
|
|
44
|
-
"theme.blog.paginator.navAriaLabel": "Blog list page navigation",
|
|
45
|
-
"theme.blog.paginator.navAriaLabel___DESCRIPTION": "The ARIA label for the blog pagination",
|
|
46
|
-
"theme.blog.paginator.newerEntries": "Newer Entries",
|
|
47
|
-
"theme.blog.paginator.newerEntries___DESCRIPTION": "The label used to navigate to the newer blog posts page (previous page)",
|
|
48
|
-
"theme.blog.paginator.olderEntries": "Older Entries",
|
|
49
|
-
"theme.blog.paginator.olderEntries___DESCRIPTION": "The label used to navigate to the older blog posts page (next page)",
|
|
50
|
-
"theme.blog.post.paginator.navAriaLabel": "Blog post page navigation",
|
|
51
|
-
"theme.blog.post.paginator.navAriaLabel___DESCRIPTION": "The ARIA label for the blog posts pagination",
|
|
52
|
-
"theme.blog.post.paginator.newerPost": "Newer Post",
|
|
53
|
-
"theme.blog.post.paginator.newerPost___DESCRIPTION": "The blog post button label to navigate to the newer/previous post",
|
|
54
|
-
"theme.blog.post.paginator.olderPost": "Older Post",
|
|
55
|
-
"theme.blog.post.paginator.olderPost___DESCRIPTION": "The blog post button label to navigate to the older/next post",
|
|
56
|
-
"theme.blog.post.plurals": "One post|{count} posts",
|
|
57
|
-
"theme.blog.post.plurals___DESCRIPTION": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)",
|
|
58
|
-
"theme.blog.post.readMore": "Read More",
|
|
59
|
-
"theme.blog.post.readMore___DESCRIPTION": "The label used in blog post item excerpts to link to full blog posts",
|
|
60
|
-
"theme.blog.post.readingTime.plurals": "One min read|{readingTime} min read",
|
|
61
|
-
"theme.blog.post.readingTime.plurals___DESCRIPTION": "Pluralized label for \"{readingTime} min read\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)",
|
|
62
|
-
"theme.blog.sidebar.navAriaLabel": "Blog recent posts navigation",
|
|
63
|
-
"theme.blog.sidebar.navAriaLabel___DESCRIPTION": "The ARIA label for recent posts in the blog sidebar",
|
|
64
|
-
"theme.blog.tagTitle": "{nPosts} tagged with \"{tagName}\"",
|
|
65
|
-
"theme.blog.tagTitle___DESCRIPTION": "The title of the page for a blog tag",
|
|
66
|
-
"theme.common.editThisPage": "Edit this page",
|
|
67
|
-
"theme.common.editThisPage___DESCRIPTION": "The link label to edit the current page",
|
|
68
|
-
"theme.common.headingLinkTitle": "Direct link to heading",
|
|
69
|
-
"theme.common.headingLinkTitle___DESCRIPTION": "Title for link to heading",
|
|
70
|
-
"theme.common.skipToMainContent": "Skip to main content",
|
|
71
|
-
"theme.common.skipToMainContent___DESCRIPTION": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",
|
|
72
|
-
"theme.docs.paginator.navAriaLabel": "Docs pages navigation",
|
|
73
|
-
"theme.docs.paginator.navAriaLabel___DESCRIPTION": "The ARIA label for the docs pagination",
|
|
74
|
-
"theme.docs.paginator.next": "Next",
|
|
75
|
-
"theme.docs.paginator.next___DESCRIPTION": "The label used to navigate to the next doc",
|
|
76
|
-
"theme.docs.paginator.previous": "Previous",
|
|
77
|
-
"theme.docs.paginator.previous___DESCRIPTION": "The label used to navigate to the previous doc",
|
|
78
|
-
"theme.docs.sidebar.collapseButtonAriaLabel": "Collapse sidebar",
|
|
79
|
-
"theme.docs.sidebar.collapseButtonAriaLabel___DESCRIPTION": "The title attribute for collapse button of doc sidebar",
|
|
80
|
-
"theme.docs.sidebar.collapseButtonTitle": "Collapse sidebar",
|
|
81
|
-
"theme.docs.sidebar.collapseButtonTitle___DESCRIPTION": "The title attribute for collapse button of doc sidebar",
|
|
82
|
-
"theme.docs.sidebar.expandButtonAriaLabel": "Expand sidebar",
|
|
83
|
-
"theme.docs.sidebar.expandButtonAriaLabel___DESCRIPTION": "The ARIA label and title attribute for expand button of doc sidebar",
|
|
84
|
-
"theme.docs.sidebar.expandButtonTitle": "Expand sidebar",
|
|
85
|
-
"theme.docs.sidebar.expandButtonTitle___DESCRIPTION": "The ARIA label and title attribute for expand button of doc sidebar",
|
|
86
|
-
"theme.docs.sidebar.navAriaLabel": "Sidebar navigation",
|
|
87
|
-
"theme.docs.sidebar.navAriaLabel___DESCRIPTION": "The ARIA label for documentation menu",
|
|
88
|
-
"theme.docs.sidebar.responsiveCloseButtonLabel": "Close menu",
|
|
89
|
-
"theme.docs.sidebar.responsiveCloseButtonLabel___DESCRIPTION": "The ARIA label for close button of mobile doc sidebar",
|
|
90
|
-
"theme.docs.sidebar.responsiveOpenButtonLabel": "Open menu",
|
|
91
|
-
"theme.docs.sidebar.responsiveOpenButtonLabel___DESCRIPTION": "The ARIA label for open button of mobile doc sidebar",
|
|
92
|
-
"theme.docs.versions.latestVersionLinkLabel": "latest version",
|
|
93
|
-
"theme.docs.versions.latestVersionLinkLabel___DESCRIPTION": "The label used for the latest version suggestion link label",
|
|
94
|
-
"theme.docs.versions.latestVersionSuggestionLabel": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).",
|
|
95
|
-
"theme.docs.versions.latestVersionSuggestionLabel___DESCRIPTION": "The label userd to tell the user that he's browsing an unmaintained doc version",
|
|
96
|
-
"theme.docs.versions.unmaintainedVersionLabel": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.",
|
|
97
|
-
"theme.docs.versions.unmaintainedVersionLabel___DESCRIPTION": "The label used to tell the user that he's browsing an unmaintained doc version",
|
|
98
|
-
"theme.docs.versions.unreleasedVersionLabel": "This is unreleased documentation for {siteTitle} {versionLabel} version.",
|
|
99
|
-
"theme.docs.versions.unreleasedVersionLabel___DESCRIPTION": "The label used to tell the user that he's browsing an unreleased doc version",
|
|
100
|
-
"theme.lastUpdated.atDate": " on {date}",
|
|
101
|
-
"theme.lastUpdated.atDate___DESCRIPTION": "The words used to describe on which date a page has been last updated",
|
|
102
|
-
"theme.lastUpdated.byUser": " by {user}",
|
|
103
|
-
"theme.lastUpdated.byUser___DESCRIPTION": "The words used to describe by who the page has been last updated",
|
|
104
|
-
"theme.lastUpdated.lastUpdatedAtBy": "Last updated{atDate}{byUser}",
|
|
105
|
-
"theme.lastUpdated.lastUpdatedAtBy___DESCRIPTION": "The sentence used to display when a page has been last updated, and by who",
|
|
106
|
-
"theme.tags.tagsListLabel": "Tags:",
|
|
107
|
-
"theme.tags.tagsListLabel___DESCRIPTION": "The label alongside a tag list",
|
|
108
|
-
"theme.tags.tagsPageLink": "View All Tags",
|
|
109
|
-
"theme.tags.tagsPageLink___DESCRIPTION": "The label of the link targeting the tag list page",
|
|
110
|
-
"theme.tags.tagsPageTitle": "Tags",
|
|
111
|
-
"theme.tags.tagsPageTitle___DESCRIPTION": "The title of the tag list page"
|
|
112
|
-
}
|
package/codeTranslations/bn.json
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"theme.AnnouncementBar.closeButtonAriaLabel": "বন্ধ করুন",
|
|
3
|
-
"theme.CodeBlock.copied": "কপিড",
|
|
4
|
-
"theme.CodeBlock.copy": "কপি",
|
|
5
|
-
"theme.CodeBlock.copyButtonAriaLabel": "ক্লিপবোর্ডে কোড কপি করুন",
|
|
6
|
-
"theme.NotFound.p1": "আপনি যা খুঁজছিলেন তা আমরা খুঁজে পাইনি।",
|
|
7
|
-
"theme.NotFound.p2": "দয়া করে সাইটের মালিকের সাথে যোগাযোগ করুন যা আপনাকে মূল URL এর সাথে যুক্ত করেছে এবং তাদের লিঙ্কটি ভাঙ্গা রয়েছে তা তাদের জানান।",
|
|
8
|
-
"theme.NotFound.title": "পেজটি খুঁজে পাওয়া যায়নি",
|
|
9
|
-
"theme.Playground.liveEditor": "লাইভ এডিটর",
|
|
10
|
-
"theme.Playground.result": "ফলাফল",
|
|
11
|
-
"theme.PwaReloadPopup.closeButtonAriaLabel": "বন্ধ করুন",
|
|
12
|
-
"theme.PwaReloadPopup.info": "নতুন সংস্করণ উপলব্ধ",
|
|
13
|
-
"theme.PwaReloadPopup.refreshButtonText": "রিফ্রেশ",
|
|
14
|
-
"theme.SearchBar.label": "সার্চ",
|
|
15
|
-
"theme.SearchPage.algoliaLabel": "আলগোলিয়া দ্বারা অনুসন্ধান করুন",
|
|
16
|
-
"theme.SearchPage.documentsFound.plurals": "একটি ডকুমেন্ট পাওয়া গেছে|{count} ডকুমেন্টস পাওয়া গেছে",
|
|
17
|
-
"theme.SearchPage.emptyResultsTitle": "ডকুমেন্টেশন অনুসন্ধান করুন",
|
|
18
|
-
"theme.SearchPage.existingResultsTitle": "\"{query}\" এর জন্য অনুসন্ধান ফলাফল",
|
|
19
|
-
"theme.SearchPage.fetchingNewResults": "নতুন ফলাফল আনা হচ্ছে...",
|
|
20
|
-
"theme.SearchPage.inputLabel": "সার্চ",
|
|
21
|
-
"theme.SearchPage.inputPlaceholder": "আপনার অনুসন্ধান এখানে টাইপ করুন",
|
|
22
|
-
"theme.SearchPage.noResultsText": "কোন ফলাফল পাওয়া যায়নি",
|
|
23
|
-
"theme.blog.paginator.navAriaLabel": "ব্লগ তালিকা পেজ নেভিগেশন",
|
|
24
|
-
"theme.blog.paginator.newerEntries": "নতুন এন্ট্রি",
|
|
25
|
-
"theme.blog.paginator.olderEntries": "পুরানো এন্ট্রি",
|
|
26
|
-
"theme.blog.post.paginator.navAriaLabel": "ব্লগ পোস্ট পেজ নেভিগেশন",
|
|
27
|
-
"theme.blog.post.paginator.newerPost": "নতুন পোস্ট",
|
|
28
|
-
"theme.blog.post.paginator.olderPost": "পুরানো পোস্ট",
|
|
29
|
-
"theme.blog.post.plurals": "একটি পোস্ট|{count} পোস্টস",
|
|
30
|
-
"theme.blog.post.readMore": "আরও পড়ুন",
|
|
31
|
-
"theme.blog.post.readingTime.plurals": "এক মিনিট পড়া|{readingTime} মিনিট পড়া",
|
|
32
|
-
"theme.blog.sidebar.navAriaLabel": "Blog recent posts navigation",
|
|
33
|
-
"theme.blog.tagTitle": "{nPosts} সঙ্গে ট্যাগ্গেড \"{tagName}\" ",
|
|
34
|
-
"theme.common.editThisPage": "এই পেজটি এডিট করুন",
|
|
35
|
-
"theme.common.headingLinkTitle": "হেডিং এর সঙ্গে সরাসরি লিংকড",
|
|
36
|
-
"theme.common.skipToMainContent": "স্কিপ করে মূল কন্টেন্ট এ যাও",
|
|
37
|
-
"theme.docs.paginator.navAriaLabel": "ডক্স পৃষ্টাগুলির নেভিগেশন",
|
|
38
|
-
"theme.docs.paginator.next": "পরবর্তী",
|
|
39
|
-
"theme.docs.paginator.previous": "আগে",
|
|
40
|
-
"theme.docs.sidebar.collapseButtonAriaLabel": "সাইডবারটি সঙ্কুচিত করুন",
|
|
41
|
-
"theme.docs.sidebar.collapseButtonTitle": "সাইডবারটি সঙ্কুচিত করুন",
|
|
42
|
-
"theme.docs.sidebar.expandButtonAriaLabel": "সাইডবারটি প্রসারিত করুন",
|
|
43
|
-
"theme.docs.sidebar.expandButtonTitle": "সাইডবারটি প্রসারিত করুন",
|
|
44
|
-
"theme.docs.sidebar.responsiveCloseButtonLabel": "মেনু বন্ধ করুন",
|
|
45
|
-
"theme.docs.sidebar.responsiveOpenButtonLabel": "মেনু খুলুন",
|
|
46
|
-
"theme.docs.versions.latestVersionLinkLabel": "লেটেস্ট ভার্সন",
|
|
47
|
-
"theme.docs.versions.latestVersionSuggestionLabel": "আপ-টু-ডেট ডকুমেন্টেশনের জন্য, {latestVersionLink} ({versionLabel}) দেখুন।",
|
|
48
|
-
"theme.docs.versions.unmaintainedVersionLabel": "এটি {siteTitle} {versionLabel} এর জন্যে ডকুমেন্টেশন, যা আর সক্রিয়ভাবে রক্ষণাবেক্ষণ করা হয় না।",
|
|
49
|
-
"theme.docs.versions.unreleasedVersionLabel": "এটি {siteTitle} {versionLabel} এর জন্যে অপ্রকাশিত ডকুমেন্টেশন।",
|
|
50
|
-
"theme.lastUpdated.atDate": " {date} তারিখে",
|
|
51
|
-
"theme.lastUpdated.byUser": "{user} দ্বারা",
|
|
52
|
-
"theme.lastUpdated.lastUpdatedAtBy": "সর্বশেষ সংষ্করণ{atDate}{byUser}",
|
|
53
|
-
"theme.tags.tagsListLabel": "ট্যাগ্স:",
|
|
54
|
-
"theme.tags.tagsPageLink": "সমস্ত ট্যাগ্স দেখুন",
|
|
55
|
-
"theme.tags.tagsPageTitle": "ট্যাগ্স"
|
|
56
|
-
}
|