@docusaurus/theme-classic 2.0.0-beta.12faed89d → 2.0.0-beta.13
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 +16 -15
- package/lib/prism-include-languages.js +9 -5
- package/lib/theme/AnnouncementBar/index.js +8 -12
- package/lib/theme/AnnouncementBar/styles.module.css +23 -32
- 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 +22 -48
- package/lib/theme/DocItem/styles.module.css +2 -11
- package/lib/theme/DocItemFooter/index.js +79 -0
- package/lib/theme/DocItemFooter/styles.module.css +18 -0
- package/lib/theme/DocPage/index.js +35 -20
- package/lib/theme/DocPaginator/index.js +6 -7
- package/lib/theme/DocSidebar/index.js +23 -22
- package/lib/theme/DocSidebarItem/index.js +84 -50
- package/lib/theme/DocSidebarItem/styles.module.css +4 -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/DocVersionBanner/index.js +12 -10
- package/lib/theme/EditThisPage/index.js +3 -1
- package/lib/theme/ErrorPageContent.js +43 -0
- package/lib/theme/Footer/index.js +8 -4
- 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 +7 -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 +46 -27
- package/lib/theme/Navbar/styles.module.css +3 -39
- package/lib/theme/NavbarItem/DefaultNavbarItem.js +27 -124
- 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/TOC/index.js +9 -30
- package/lib/theme/TOC/styles.module.css +1 -1
- package/lib/theme/TOCCollapsible/index.js +7 -5
- package/lib/theme/TOCCollapsible/styles.module.css +1 -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 +5 -7
- package/lib/theme/Toggle/index.js +41 -44
- package/lib/theme/Toggle/styles.module.css +91 -3
- package/lib/theme/UserPreferencesProvider/index.js +8 -3
- package/lib/theme/hooks/useHideableNavbar.js +14 -32
- package/lib/theme/hooks/useTheme.js +3 -5
- package/lib/theme/hooks/useWindowSize.js +2 -7
- 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 -629
- package/lib/validateThemeConfig.js +230 -248
- 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 +16 -10
- package/lib-next/prism-include-languages.js +0 -2
- package/lib-next/theme/AnnouncementBar/index.js +7 -12
- package/lib-next/theme/AnnouncementBar/styles.module.css +23 -32
- 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 +30 -59
- package/lib-next/theme/DocItem/styles.module.css +2 -11
- 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 -23
- package/lib-next/theme/DocPaginator/index.js +7 -11
- package/lib-next/theme/DocSidebar/index.js +37 -43
- package/lib-next/theme/DocSidebarItem/index.js +115 -65
- package/lib-next/theme/DocSidebarItem/styles.module.css +4 -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/DocVersionBanner/index.js +28 -14
- package/lib-next/theme/EditThisPage/index.js +6 -1
- package/lib-next/theme/ErrorPageContent.js +35 -0
- package/lib-next/theme/Footer/index.js +17 -4
- 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 +8 -5
- 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 +62 -34
- package/lib-next/theme/Navbar/styles.module.css +3 -39
- package/lib-next/theme/NavbarItem/DefaultNavbarItem.js +45 -143
- 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/TOC/index.js +12 -36
- package/lib-next/theme/TOC/styles.module.css +1 -1
- package/lib-next/theme/TOCCollapsible/index.js +13 -4
- package/lib-next/theme/TOCCollapsible/styles.module.css +1 -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 +5 -5
- 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 -6
- package/lib-next/theme/hooks/useHideableNavbar.js +31 -44
- package/lib-next/theme/hooks/useTheme.js +4 -5
- package/lib-next/theme/hooks/useWindowSize.js +2 -6
- 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 -629
- package/lib-next/validateThemeConfig.js +141 -116
- package/package.json +27 -24
- 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 +23 -17
- package/src/{prism-include-languages.js → prism-include-languages.ts} +0 -0
- package/src/theme/AnnouncementBar/index.tsx +8 -12
- package/src/theme/AnnouncementBar/styles.module.css +23 -32
- 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 +30 -60
- package/src/theme/DocItem/styles.module.css +2 -11
- package/src/theme/DocItemFooter/index.tsx +91 -0
- package/src/theme/DocItemFooter/styles.module.css +18 -0
- package/src/theme/DocPage/index.tsx +44 -22
- package/src/theme/DocPaginator/index.tsx +9 -13
- package/src/theme/DocSidebar/index.tsx +38 -39
- package/src/theme/DocSidebarItem/index.tsx +108 -49
- package/src/theme/DocSidebarItem/styles.module.css +4 -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/DocVersionBanner/index.tsx +48 -21
- package/src/theme/EditThisPage/index.tsx +6 -1
- package/src/theme/ErrorPageContent.tsx +41 -0
- package/src/theme/Footer/index.tsx +20 -5
- 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 +8 -5
- 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 +62 -35
- package/src/theme/Navbar/styles.module.css +3 -39
- package/src/theme/NavbarItem/DefaultNavbarItem.tsx +42 -149
- 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/TOC/index.tsx +13 -35
- package/src/theme/TOC/styles.module.css +1 -1
- package/src/theme/TOCCollapsible/index.tsx +13 -4
- package/src/theme/TOCCollapsible/styles.module.css +1 -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 +5 -5
- package/src/theme/Toggle/index.tsx +36 -43
- package/src/theme/Toggle/styles.module.css +91 -3
- package/src/theme/UserPreferencesProvider/index.tsx +9 -6
- package/src/theme/hooks/useHideableNavbar.ts +32 -45
- package/src/theme/hooks/useTabGroupChoice.ts +2 -2
- package/src/theme/hooks/useTheme.ts +4 -5
- package/src/theme/hooks/useWindowSize.ts +2 -7
- 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 -629
- package/src/{validateThemeConfig.js → validateThemeConfig.ts} +151 -96
- package/tsconfig.json +1 -2
- package/codeTranslations/README.md +0 -20
- package/codeTranslations/ar.json +0 -56
- package/codeTranslations/base.json +0 -110
- package/codeTranslations/bn.json +0 -56
- package/codeTranslations/da.json +0 -56
- package/codeTranslations/de.json +0 -56
- package/codeTranslations/es.json +0 -56
- package/codeTranslations/fa.json +0 -56
- package/codeTranslations/fil.json +0 -56
- package/codeTranslations/fr.json +0 -56
- package/codeTranslations/he.json +0 -56
- package/codeTranslations/hi.json +0 -56
- package/codeTranslations/ja.json +0 -56
- package/codeTranslations/ko.json +0 -56
- package/codeTranslations/pl.json +0 -56
- package/codeTranslations/pt-BR.json +0 -56
- package/codeTranslations/pt-PT.json +0 -56
- package/codeTranslations/ru.json +0 -56
- package/codeTranslations/tr.json +0 -56
- package/codeTranslations/vi.json +0 -56
- package/codeTranslations/zh-Hans.json +0 -56
- package/codeTranslations/zh-Hant.json +0 -56
- package/lib/theme/Toggle/styles.css +0 -103
- 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/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/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 -242
- 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,85 +41,55 @@ const DEFAULT_CONFIG = {
|
|
|
40
41
|
items: [],
|
|
41
42
|
},
|
|
42
43
|
hideableSidebar: false,
|
|
43
|
-
|
|
44
|
+
tableOfContents: {
|
|
45
|
+
minHeadingLevel: 2,
|
|
46
|
+
maxHeadingLevel: 3,
|
|
47
|
+
},
|
|
44
48
|
};
|
|
45
|
-
exports.DEFAULT_CONFIG = DEFAULT_CONFIG;
|
|
46
49
|
|
|
47
50
|
const NavbarItemPosition = Joi.string().equal('left', 'right').default('left');
|
|
48
51
|
|
|
49
|
-
const
|
|
50
|
-
to: Joi.string(),
|
|
51
|
-
href: URISchema,
|
|
52
|
+
const NavbarItemBaseSchema = Joi.object({
|
|
52
53
|
label: Joi.string(),
|
|
53
54
|
className: Joi.string(),
|
|
54
|
-
prependBaseUrlToHref: Joi.bool(),
|
|
55
55
|
})
|
|
56
56
|
// We allow any unknown attributes on the links
|
|
57
57
|
// (users may need additional attributes like target, aria-role, data-customAttribute...)
|
|
58
58
|
.unknown();
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
const DefaultNavbarItemSchema = BaseNavbarItemSchema.append({
|
|
64
|
-
items: Joi.array().optional().items(BaseNavbarItemSchema),
|
|
65
|
-
position: NavbarItemPosition,
|
|
60
|
+
const DefaultNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
61
|
+
to: Joi.string(),
|
|
62
|
+
href: URISchema,
|
|
66
63
|
activeBasePath: Joi.string(),
|
|
67
64
|
activeBaseRegex: Joi.string(),
|
|
68
|
-
|
|
69
|
-
//
|
|
70
|
-
|
|
71
|
-
|
|
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
|
+
});
|
|
72
75
|
|
|
73
|
-
const DocsVersionNavbarItemSchema =
|
|
76
|
+
const DocsVersionNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
74
77
|
type: Joi.string().equal('docsVersion').required(),
|
|
75
|
-
position: NavbarItemPosition,
|
|
76
|
-
label: Joi.string(),
|
|
77
78
|
to: Joi.string(),
|
|
78
79
|
docsPluginId: Joi.string(),
|
|
79
|
-
className: Joi.string(),
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
const
|
|
83
|
-
type: Joi.string().equal('docsVersionDropdown').required(),
|
|
84
|
-
position: NavbarItemPosition,
|
|
85
|
-
docsPluginId: Joi.string(),
|
|
86
|
-
dropdownActiveClassDisabled: Joi.boolean(),
|
|
87
|
-
dropdownItemsBefore: Joi.array().items(BaseNavbarItemSchema).default([]),
|
|
88
|
-
dropdownItemsAfter: Joi.array().items(BaseNavbarItemSchema).default([]),
|
|
89
|
-
className: Joi.string(),
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
const DocItemSchema = Joi.object({
|
|
82
|
+
const DocItemSchema = NavbarItemBaseSchema.append({
|
|
93
83
|
type: Joi.string().equal('doc').required(),
|
|
94
|
-
position: NavbarItemPosition,
|
|
95
84
|
docId: Joi.string().required(),
|
|
96
|
-
label: Joi.string(),
|
|
97
85
|
docsPluginId: Joi.string(),
|
|
98
|
-
activeSidebarClassName: Joi.string().default('navbar__link--active'),
|
|
99
|
-
className: Joi.string(),
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
const LocaleDropdownNavbarItemSchema = Joi.object({
|
|
103
|
-
type: Joi.string().equal('localeDropdown').required(),
|
|
104
|
-
position: NavbarItemPosition,
|
|
105
|
-
dropdownItemsBefore: Joi.array().items(BaseNavbarItemSchema).default([]),
|
|
106
|
-
dropdownItemsAfter: Joi.array().items(BaseNavbarItemSchema).default([]),
|
|
107
|
-
className: Joi.string(),
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
const SearchItemSchema = Joi.object({
|
|
111
|
-
type: Joi.string().equal('search').required(),
|
|
112
|
-
position: NavbarItemPosition,
|
|
113
86
|
});
|
|
114
87
|
|
|
115
|
-
|
|
116
|
-
const isOfType = (type) => {
|
|
117
|
-
let typeSchema = Joi.string().required();
|
|
88
|
+
const itemWithType = (type: string | undefined) => {
|
|
118
89
|
// because equal(undefined) is not supported :/
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
90
|
+
const typeSchema = type
|
|
91
|
+
? Joi.string().required().equal(type)
|
|
92
|
+
: Joi.string().forbidden();
|
|
122
93
|
return Joi.object({
|
|
123
94
|
type: typeSchema,
|
|
124
95
|
})
|
|
@@ -126,58 +97,105 @@ const isOfType = (type) => {
|
|
|
126
97
|
.required();
|
|
127
98
|
};
|
|
128
99
|
|
|
129
|
-
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('.', {
|
|
130
158
|
switch: [
|
|
131
159
|
{
|
|
132
|
-
is:
|
|
160
|
+
is: itemWithType('docsVersion'),
|
|
133
161
|
then: DocsVersionNavbarItemSchema,
|
|
134
162
|
},
|
|
135
163
|
{
|
|
136
|
-
is:
|
|
164
|
+
is: itemWithType('dropdown'),
|
|
165
|
+
then: DropdownNavbarItemSchema,
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
is: itemWithType('docsVersionDropdown'),
|
|
137
169
|
then: DocsVersionDropdownNavbarItemSchema,
|
|
138
170
|
},
|
|
139
171
|
{
|
|
140
|
-
is:
|
|
172
|
+
is: itemWithType('doc'),
|
|
141
173
|
then: DocItemSchema,
|
|
142
174
|
},
|
|
143
175
|
{
|
|
144
|
-
is:
|
|
176
|
+
is: itemWithType('localeDropdown'),
|
|
145
177
|
then: LocaleDropdownNavbarItemSchema,
|
|
146
178
|
},
|
|
147
179
|
{
|
|
148
|
-
is:
|
|
180
|
+
is: itemWithType('search'),
|
|
149
181
|
then: SearchItemSchema,
|
|
150
182
|
},
|
|
151
183
|
{
|
|
152
|
-
is:
|
|
153
|
-
then: Joi.
|
|
154
|
-
|
|
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,
|
|
155
192
|
}),
|
|
156
193
|
},
|
|
157
194
|
],
|
|
158
|
-
otherwise:
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/*
|
|
162
|
-
const NavbarItemSchema = Joi.object({
|
|
163
|
-
type: Joi.string().only(['docsVersion'])
|
|
164
|
-
})
|
|
165
|
-
.when(Joi.object({ type: 'docsVersion' }).unknown(), {
|
|
166
|
-
then: Joi.object({ pepperoni: Joi.boolean() })
|
|
167
|
-
})
|
|
168
|
-
.when(Joi.object().unknown(), {
|
|
169
|
-
then: Joi.object({ croutons: Joi.boolean() })
|
|
170
|
-
})
|
|
171
|
-
|
|
172
|
-
*/
|
|
173
|
-
|
|
174
|
-
/*
|
|
175
|
-
const NavbarItemSchema = Joi.object().when('type', {
|
|
176
|
-
is: Joi.valid('docsVersion'),
|
|
177
|
-
then: DocsVersionNavbarItemSchema,
|
|
178
|
-
otherwise: DefaultNavbarItemSchema,
|
|
195
|
+
otherwise: Joi.forbidden().messages({
|
|
196
|
+
'any.unknown': 'Bad navbar item type {.type}',
|
|
197
|
+
}),
|
|
179
198
|
});
|
|
180
|
-
*/
|
|
181
199
|
|
|
182
200
|
const ColorModeSchema = Joi.object({
|
|
183
201
|
defaultMode: Joi.string()
|
|
@@ -232,12 +250,12 @@ const CustomCssSchema = Joi.alternatives()
|
|
|
232
250
|
|
|
233
251
|
const ThemeConfigSchema = Joi.object({
|
|
234
252
|
// TODO temporary (@alpha-58)
|
|
235
|
-
disableDarkMode: Joi.any().forbidden(
|
|
253
|
+
disableDarkMode: Joi.any().forbidden().messages({
|
|
236
254
|
'any.unknown':
|
|
237
255
|
'disableDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.disableSwitch = true',
|
|
238
256
|
}),
|
|
239
257
|
// TODO temporary (@alpha-58)
|
|
240
|
-
defaultDarkMode: Joi.any().forbidden(
|
|
258
|
+
defaultDarkMode: Joi.any().forbidden().messages({
|
|
241
259
|
'any.unknown':
|
|
242
260
|
'defaultDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.defaultMode = "dark"',
|
|
243
261
|
}),
|
|
@@ -245,12 +263,16 @@ const ThemeConfigSchema = Joi.object({
|
|
|
245
263
|
colorMode: ColorModeSchema,
|
|
246
264
|
image: Joi.string(),
|
|
247
265
|
docs: DocsSchema,
|
|
248
|
-
|
|
266
|
+
metadata: Joi.array()
|
|
249
267
|
.items(HtmlMetadataSchema)
|
|
250
|
-
.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
|
+
}),
|
|
251
273
|
announcementBar: Joi.object({
|
|
252
274
|
id: Joi.string().default('announcement-bar'),
|
|
253
|
-
content: Joi.string(),
|
|
275
|
+
content: Joi.string().required(),
|
|
254
276
|
backgroundColor: Joi.string(),
|
|
255
277
|
textColor: Joi.string(),
|
|
256
278
|
isCloseable: Joi.bool().default(true),
|
|
@@ -271,6 +293,8 @@ const ThemeConfigSchema = Joi.object({
|
|
|
271
293
|
alt: Joi.string().allow(''),
|
|
272
294
|
src: Joi.string().required(),
|
|
273
295
|
srcDark: Joi.string(),
|
|
296
|
+
width: Joi.alternatives().try(Joi.string(), Joi.number()),
|
|
297
|
+
height: Joi.alternatives().try(Joi.string(), Joi.number()),
|
|
274
298
|
href: Joi.string(),
|
|
275
299
|
target: Joi.string(),
|
|
276
300
|
}),
|
|
@@ -281,6 +305,9 @@ const ThemeConfigSchema = Joi.object({
|
|
|
281
305
|
alt: Joi.string().allow(''),
|
|
282
306
|
src: Joi.string(),
|
|
283
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()),
|
|
284
311
|
href: Joi.string(),
|
|
285
312
|
}),
|
|
286
313
|
copyright: Joi.string(),
|
|
@@ -310,10 +337,38 @@ const ThemeConfigSchema = Joi.object({
|
|
|
310
337
|
.default(DEFAULT_CONFIG.prism)
|
|
311
338
|
.unknown(),
|
|
312
339
|
hideableSidebar: Joi.bool().default(DEFAULT_CONFIG.hideableSidebar),
|
|
313
|
-
sidebarCollapsible: Joi.
|
|
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),
|
|
314
362
|
});
|
|
315
|
-
exports.ThemeConfigSchema = ThemeConfigSchema;
|
|
316
363
|
|
|
317
|
-
|
|
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> {
|
|
318
373
|
return validate(ThemeConfigSchema, themeConfig);
|
|
319
|
-
}
|
|
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,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": "البحث بواسطه 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.TOCCollapsible.toggleButtonLabel": "On this page",
|
|
24
|
-
"theme.blog.paginator.navAriaLabel": "التنقل في صفحة قائمة المدونة",
|
|
25
|
-
"theme.blog.paginator.newerEntries": "إدخالات أحدث",
|
|
26
|
-
"theme.blog.paginator.olderEntries": "إدخالات أقدم",
|
|
27
|
-
"theme.blog.post.paginator.navAriaLabel": "التنقل في صفحة مقالات المدونة",
|
|
28
|
-
"theme.blog.post.paginator.newerPost": "مقالات أحدث",
|
|
29
|
-
"theme.blog.post.paginator.olderPost": "مقالات أقدم",
|
|
30
|
-
"theme.blog.post.plurals": "مقاله واحده|{count} مقالات",
|
|
31
|
-
"theme.blog.post.readMore": "اقرأ المزيد",
|
|
32
|
-
"theme.blog.post.readingTime.plurals": "{readingTime} دقائق قراءة|{readingTime} دقائق قراءة",
|
|
33
|
-
"theme.blog.sidebar.navAriaLabel": "Blog recent posts navigation",
|
|
34
|
-
"theme.blog.tagTitle": "{nPosts} موسومة ب \"{tagName}\"",
|
|
35
|
-
"theme.common.editThisPage": "تعديل هذه الصفحة",
|
|
36
|
-
"theme.common.headingLinkTitle": "ارتباط مباشر بالعنوان",
|
|
37
|
-
"theme.common.skipToMainContent": "انتقل إلى المحتوى الرئيسي",
|
|
38
|
-
"theme.docs.paginator.navAriaLabel": "التنقل بين صفحات المستندات",
|
|
39
|
-
"theme.docs.paginator.next": "التالى",
|
|
40
|
-
"theme.docs.paginator.previous": "السابق",
|
|
41
|
-
"theme.docs.sidebar.collapseButtonAriaLabel": "طي الشريط الجانبي",
|
|
42
|
-
"theme.docs.sidebar.collapseButtonTitle": "طي الشريط الجانبي",
|
|
43
|
-
"theme.docs.sidebar.expandButtonAriaLabel": "توسيع الشريط الجانبي",
|
|
44
|
-
"theme.docs.sidebar.expandButtonTitle": "توسيع الشريط الجانبي",
|
|
45
|
-
"theme.docs.versions.latestVersionLinkLabel": "احدث اصدار",
|
|
46
|
-
"theme.docs.versions.latestVersionSuggestionLabel": "للحصول على أحدث الوثائق، راجع {latestVersionLink} ({versionLabel}).",
|
|
47
|
-
"theme.docs.versions.unmaintainedVersionLabel": "هذه هي وثائق {siteTitle} {versionLabel}، التي لم تعد تتم صيانتها بشكل نشط.",
|
|
48
|
-
"theme.docs.versions.unreleasedVersionLabel": "هذه وثائق لم يتم طرحها لإصدار {siteTitle} {versionLabel}.",
|
|
49
|
-
"theme.lastUpdated.atDate": " في {date}",
|
|
50
|
-
"theme.lastUpdated.byUser": " بواسطة {user}",
|
|
51
|
-
"theme.lastUpdated.lastUpdatedAtBy": "آخر تحديث{atDate}{byUser}",
|
|
52
|
-
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": "← Back to main menu",
|
|
53
|
-
"theme.tags.tagsListLabel": "الوسوم:",
|
|
54
|
-
"theme.tags.tagsPageLink": "عرض كل الوسوم",
|
|
55
|
-
"theme.tags.tagsPageTitle": "الوسوم"
|
|
56
|
-
}
|
|
@@ -1,110 +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.TOCCollapsible.toggleButtonLabel": "On this page",
|
|
45
|
-
"theme.TOCCollapsible.toggleButtonLabel___DESCRIPTION": "The label used by the button on the collapsible TOC component",
|
|
46
|
-
"theme.blog.paginator.navAriaLabel": "Blog list page navigation",
|
|
47
|
-
"theme.blog.paginator.navAriaLabel___DESCRIPTION": "The ARIA label for the blog pagination",
|
|
48
|
-
"theme.blog.paginator.newerEntries": "Newer Entries",
|
|
49
|
-
"theme.blog.paginator.newerEntries___DESCRIPTION": "The label used to navigate to the newer blog posts page (previous page)",
|
|
50
|
-
"theme.blog.paginator.olderEntries": "Older Entries",
|
|
51
|
-
"theme.blog.paginator.olderEntries___DESCRIPTION": "The label used to navigate to the older blog posts page (next page)",
|
|
52
|
-
"theme.blog.post.paginator.navAriaLabel": "Blog post page navigation",
|
|
53
|
-
"theme.blog.post.paginator.navAriaLabel___DESCRIPTION": "The ARIA label for the blog posts pagination",
|
|
54
|
-
"theme.blog.post.paginator.newerPost": "Newer Post",
|
|
55
|
-
"theme.blog.post.paginator.newerPost___DESCRIPTION": "The blog post button label to navigate to the newer/previous post",
|
|
56
|
-
"theme.blog.post.paginator.olderPost": "Older Post",
|
|
57
|
-
"theme.blog.post.paginator.olderPost___DESCRIPTION": "The blog post button label to navigate to the older/next post",
|
|
58
|
-
"theme.blog.post.plurals": "One post|{count} posts",
|
|
59
|
-
"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)",
|
|
60
|
-
"theme.blog.post.readMore": "Read More",
|
|
61
|
-
"theme.blog.post.readMore___DESCRIPTION": "The label used in blog post item excerpts to link to full blog posts",
|
|
62
|
-
"theme.blog.post.readingTime.plurals": "One min read|{readingTime} min read",
|
|
63
|
-
"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)",
|
|
64
|
-
"theme.blog.sidebar.navAriaLabel": "Blog recent posts navigation",
|
|
65
|
-
"theme.blog.sidebar.navAriaLabel___DESCRIPTION": "The ARIA label for recent posts in the blog sidebar",
|
|
66
|
-
"theme.blog.tagTitle": "{nPosts} tagged with \"{tagName}\"",
|
|
67
|
-
"theme.blog.tagTitle___DESCRIPTION": "The title of the page for a blog tag",
|
|
68
|
-
"theme.common.editThisPage": "Edit this page",
|
|
69
|
-
"theme.common.editThisPage___DESCRIPTION": "The link label to edit the current page",
|
|
70
|
-
"theme.common.headingLinkTitle": "Direct link to heading",
|
|
71
|
-
"theme.common.headingLinkTitle___DESCRIPTION": "Title for link to heading",
|
|
72
|
-
"theme.common.skipToMainContent": "Skip to main content",
|
|
73
|
-
"theme.common.skipToMainContent___DESCRIPTION": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",
|
|
74
|
-
"theme.docs.paginator.navAriaLabel": "Docs pages navigation",
|
|
75
|
-
"theme.docs.paginator.navAriaLabel___DESCRIPTION": "The ARIA label for the docs pagination",
|
|
76
|
-
"theme.docs.paginator.next": "Next",
|
|
77
|
-
"theme.docs.paginator.next___DESCRIPTION": "The label used to navigate to the next doc",
|
|
78
|
-
"theme.docs.paginator.previous": "Previous",
|
|
79
|
-
"theme.docs.paginator.previous___DESCRIPTION": "The label used to navigate to the previous doc",
|
|
80
|
-
"theme.docs.sidebar.collapseButtonAriaLabel": "Collapse sidebar",
|
|
81
|
-
"theme.docs.sidebar.collapseButtonAriaLabel___DESCRIPTION": "The title attribute for collapse button of doc sidebar",
|
|
82
|
-
"theme.docs.sidebar.collapseButtonTitle": "Collapse sidebar",
|
|
83
|
-
"theme.docs.sidebar.collapseButtonTitle___DESCRIPTION": "The title attribute for collapse button of doc sidebar",
|
|
84
|
-
"theme.docs.sidebar.expandButtonAriaLabel": "Expand sidebar",
|
|
85
|
-
"theme.docs.sidebar.expandButtonAriaLabel___DESCRIPTION": "The ARIA label and title attribute for expand button of doc sidebar",
|
|
86
|
-
"theme.docs.sidebar.expandButtonTitle": "Expand sidebar",
|
|
87
|
-
"theme.docs.sidebar.expandButtonTitle___DESCRIPTION": "The ARIA label and title attribute for expand button of doc sidebar",
|
|
88
|
-
"theme.docs.versions.latestVersionLinkLabel": "latest version",
|
|
89
|
-
"theme.docs.versions.latestVersionLinkLabel___DESCRIPTION": "The label used for the latest version suggestion link label",
|
|
90
|
-
"theme.docs.versions.latestVersionSuggestionLabel": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).",
|
|
91
|
-
"theme.docs.versions.latestVersionSuggestionLabel___DESCRIPTION": "The label used to tell the user to check the latest version",
|
|
92
|
-
"theme.docs.versions.unmaintainedVersionLabel": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.",
|
|
93
|
-
"theme.docs.versions.unmaintainedVersionLabel___DESCRIPTION": "The label used to tell the user that he's browsing an unmaintained doc version",
|
|
94
|
-
"theme.docs.versions.unreleasedVersionLabel": "This is unreleased documentation for {siteTitle} {versionLabel} version.",
|
|
95
|
-
"theme.docs.versions.unreleasedVersionLabel___DESCRIPTION": "The label used to tell the user that he's browsing an unreleased doc version",
|
|
96
|
-
"theme.lastUpdated.atDate": " on {date}",
|
|
97
|
-
"theme.lastUpdated.atDate___DESCRIPTION": "The words used to describe on which date a page has been last updated",
|
|
98
|
-
"theme.lastUpdated.byUser": " by {user}",
|
|
99
|
-
"theme.lastUpdated.byUser___DESCRIPTION": "The words used to describe by who the page has been last updated",
|
|
100
|
-
"theme.lastUpdated.lastUpdatedAtBy": "Last updated{atDate}{byUser}",
|
|
101
|
-
"theme.lastUpdated.lastUpdatedAtBy___DESCRIPTION": "The sentence used to display when a page has been last updated, and by who",
|
|
102
|
-
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": "← Back to main menu",
|
|
103
|
-
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel___DESCRIPTION": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)",
|
|
104
|
-
"theme.tags.tagsListLabel": "Tags:",
|
|
105
|
-
"theme.tags.tagsListLabel___DESCRIPTION": "The label alongside a tag list",
|
|
106
|
-
"theme.tags.tagsPageLink": "View All Tags",
|
|
107
|
-
"theme.tags.tagsPageLink___DESCRIPTION": "The label of the link targeting the tag list page",
|
|
108
|
-
"theme.tags.tagsPageTitle": "Tags",
|
|
109
|
-
"theme.tags.tagsPageTitle___DESCRIPTION": "The title of the tag list page"
|
|
110
|
-
}
|
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.TOCCollapsible.toggleButtonLabel": "এই পেজ এ রয়েছে",
|
|
24
|
-
"theme.blog.paginator.navAriaLabel": "ব্লগ তালিকা পেজ নেভিগেশন",
|
|
25
|
-
"theme.blog.paginator.newerEntries": "নতুন এন্ট্রি",
|
|
26
|
-
"theme.blog.paginator.olderEntries": "পুরানো এন্ট্রি",
|
|
27
|
-
"theme.blog.post.paginator.navAriaLabel": "ব্লগ পোস্ট পেজ নেভিগেশন",
|
|
28
|
-
"theme.blog.post.paginator.newerPost": "নতুন পোস্ট",
|
|
29
|
-
"theme.blog.post.paginator.olderPost": "পুরানো পোস্ট",
|
|
30
|
-
"theme.blog.post.plurals": "একটি পোস্ট|{count} পোস্টস",
|
|
31
|
-
"theme.blog.post.readMore": "আরও পড়ুন",
|
|
32
|
-
"theme.blog.post.readingTime.plurals": "এক মিনিট পড়া|{readingTime} মিনিট পড়া",
|
|
33
|
-
"theme.blog.sidebar.navAriaLabel": "সাম্প্রতিক ব্লগ পোস্ট নেভিগেশন",
|
|
34
|
-
"theme.blog.tagTitle": "{nPosts} সঙ্গে ট্যাগ্গেড \"{tagName}\" ",
|
|
35
|
-
"theme.common.editThisPage": "এই পেজটি এডিট করুন",
|
|
36
|
-
"theme.common.headingLinkTitle": "হেডিং এর সঙ্গে সরাসরি লিংকড",
|
|
37
|
-
"theme.common.skipToMainContent": "স্কিপ করে মূল কন্টেন্ট এ যান",
|
|
38
|
-
"theme.docs.paginator.navAriaLabel": "ডক্স পৃষ্টাগুলির নেভিগেশন",
|
|
39
|
-
"theme.docs.paginator.next": "পরবর্তী",
|
|
40
|
-
"theme.docs.paginator.previous": "পূর্ববর্তী",
|
|
41
|
-
"theme.docs.sidebar.collapseButtonAriaLabel": "সাইডবারটি সঙ্কুচিত করুন",
|
|
42
|
-
"theme.docs.sidebar.collapseButtonTitle": "সাইডবারটি সঙ্কুচিত করুন",
|
|
43
|
-
"theme.docs.sidebar.expandButtonAriaLabel": "সাইডবারটি প্রসারিত করুন",
|
|
44
|
-
"theme.docs.sidebar.expandButtonTitle": "সাইডবারটি প্রসারিত করুন",
|
|
45
|
-
"theme.docs.versions.latestVersionLinkLabel": "লেটেস্ট ভার্সন",
|
|
46
|
-
"theme.docs.versions.latestVersionSuggestionLabel": "আপ-টু-ডেট ডকুমেন্টেশনের জন্য, {latestVersionLink} ({versionLabel}) দেখুন।",
|
|
47
|
-
"theme.docs.versions.unmaintainedVersionLabel": "এটি {siteTitle} {versionLabel} এর জন্যে ডকুমেন্টেশন, যা আর সক্রিয়ভাবে রক্ষণাবেক্ষণ করা হয় না।",
|
|
48
|
-
"theme.docs.versions.unreleasedVersionLabel": "এটি {siteTitle} {versionLabel} এর জন্যে অপ্রকাশিত ডকুমেন্টেশন।",
|
|
49
|
-
"theme.lastUpdated.atDate": " {date} তারিখে",
|
|
50
|
-
"theme.lastUpdated.byUser": "{user} দ্বারা",
|
|
51
|
-
"theme.lastUpdated.lastUpdatedAtBy": "সর্বশেষ সংষ্করণ{atDate}{byUser}",
|
|
52
|
-
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": "← মেন মেনুতে যান",
|
|
53
|
-
"theme.tags.tagsListLabel": "ট্যাগ্স:",
|
|
54
|
-
"theme.tags.tagsPageLink": "সমস্ত ট্যাগ্স দেখুন",
|
|
55
|
-
"theme.tags.tagsPageTitle": "ট্যাগ্স"
|
|
56
|
-
}
|