@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
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
const {Joi, URISchema} = require('@docusaurus/utils-validation');
|
|
9
|
-
|
|
7
|
+
import {Joi, URISchema} from '@docusaurus/utils-validation';
|
|
10
8
|
const DEFAULT_DOCS_CONFIG = {
|
|
11
9
|
versionPersistence: 'localStorage',
|
|
12
10
|
};
|
|
@@ -15,7 +13,6 @@ const DocsSchema = Joi.object({
|
|
|
15
13
|
.equal('localStorage', 'none')
|
|
16
14
|
.default(DEFAULT_DOCS_CONFIG.versionPersistence),
|
|
17
15
|
}).default(DEFAULT_DOCS_CONFIG);
|
|
18
|
-
|
|
19
16
|
const DEFAULT_COLOR_MODE_CONFIG = {
|
|
20
17
|
defaultMode: 'light',
|
|
21
18
|
disableSwitch: false,
|
|
@@ -27,11 +24,10 @@ const DEFAULT_COLOR_MODE_CONFIG = {
|
|
|
27
24
|
lightIconStyle: {},
|
|
28
25
|
},
|
|
29
26
|
};
|
|
30
|
-
|
|
31
27
|
const DEFAULT_CONFIG = {
|
|
32
28
|
colorMode: DEFAULT_COLOR_MODE_CONFIG,
|
|
33
29
|
docs: DEFAULT_DOCS_CONFIG,
|
|
34
|
-
|
|
30
|
+
metadata: [],
|
|
35
31
|
prism: {
|
|
36
32
|
additionalLanguages: [],
|
|
37
33
|
},
|
|
@@ -40,84 +36,49 @@ const DEFAULT_CONFIG = {
|
|
|
40
36
|
items: [],
|
|
41
37
|
},
|
|
42
38
|
hideableSidebar: false,
|
|
39
|
+
tableOfContents: {
|
|
40
|
+
minHeadingLevel: 2,
|
|
41
|
+
maxHeadingLevel: 3,
|
|
42
|
+
},
|
|
43
43
|
};
|
|
44
|
-
exports.DEFAULT_CONFIG = DEFAULT_CONFIG;
|
|
45
|
-
|
|
46
44
|
const NavbarItemPosition = Joi.string().equal('left', 'right').default('left');
|
|
47
|
-
|
|
48
|
-
const BaseNavbarItemSchema = Joi.object({
|
|
49
|
-
to: Joi.string(),
|
|
50
|
-
href: URISchema,
|
|
45
|
+
const NavbarItemBaseSchema = Joi.object({
|
|
51
46
|
label: Joi.string(),
|
|
52
47
|
className: Joi.string(),
|
|
53
|
-
|
|
54
|
-
})
|
|
55
|
-
// We allow any unknown attributes on the links
|
|
48
|
+
}) // We allow any unknown attributes on the links
|
|
56
49
|
// (users may need additional attributes like target, aria-role, data-customAttribute...)
|
|
57
50
|
.unknown();
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
// + parent/child don't have exactly the same props
|
|
62
|
-
const DefaultNavbarItemSchema = BaseNavbarItemSchema.append({
|
|
63
|
-
items: Joi.array().optional().items(BaseNavbarItemSchema),
|
|
64
|
-
position: NavbarItemPosition,
|
|
51
|
+
const DefaultNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
52
|
+
to: Joi.string(),
|
|
53
|
+
href: URISchema,
|
|
65
54
|
activeBasePath: Joi.string(),
|
|
66
55
|
activeBaseRegex: Joi.string(),
|
|
67
|
-
|
|
68
|
-
//
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
56
|
+
prependBaseUrlToHref: Joi.bool(),
|
|
57
|
+
// This is only triggered in case of a nested dropdown
|
|
58
|
+
items: Joi.forbidden().messages({
|
|
59
|
+
'any.unknown': 'Nested dropdowns are not allowed',
|
|
60
|
+
}),
|
|
61
|
+
})
|
|
62
|
+
.xor('href', 'to')
|
|
63
|
+
.messages({
|
|
64
|
+
'object.xor': 'One and only one between "to" and "href" should be provided',
|
|
65
|
+
});
|
|
66
|
+
const DocsVersionNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
73
67
|
type: Joi.string().equal('docsVersion').required(),
|
|
74
|
-
position: NavbarItemPosition,
|
|
75
|
-
label: Joi.string(),
|
|
76
68
|
to: Joi.string(),
|
|
77
69
|
docsPluginId: Joi.string(),
|
|
78
|
-
className: Joi.string(),
|
|
79
70
|
});
|
|
80
|
-
|
|
81
|
-
const DocsVersionDropdownNavbarItemSchema = Joi.object({
|
|
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({
|
|
71
|
+
const DocItemSchema = NavbarItemBaseSchema.append({
|
|
92
72
|
type: Joi.string().equal('doc').required(),
|
|
93
|
-
position: NavbarItemPosition,
|
|
94
73
|
docId: Joi.string().required(),
|
|
95
|
-
label: Joi.string(),
|
|
96
74
|
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
75
|
});
|
|
113
76
|
|
|
114
|
-
|
|
115
|
-
const isOfType = (type) => {
|
|
116
|
-
let typeSchema = Joi.string().required();
|
|
77
|
+
const itemWithType = (type) => {
|
|
117
78
|
// because equal(undefined) is not supported :/
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
79
|
+
const typeSchema = type
|
|
80
|
+
? Joi.string().required().equal(type)
|
|
81
|
+
: Joi.string().forbidden();
|
|
121
82
|
return Joi.object({
|
|
122
83
|
type: typeSchema,
|
|
123
84
|
})
|
|
@@ -125,59 +86,100 @@ const isOfType = (type) => {
|
|
|
125
86
|
.required();
|
|
126
87
|
};
|
|
127
88
|
|
|
128
|
-
const
|
|
89
|
+
const DropdownSubitemSchema = Joi.object({
|
|
90
|
+
position: Joi.forbidden(),
|
|
91
|
+
}).when('.', {
|
|
129
92
|
switch: [
|
|
130
93
|
{
|
|
131
|
-
is:
|
|
94
|
+
is: itemWithType('docsVersion'),
|
|
132
95
|
then: DocsVersionNavbarItemSchema,
|
|
133
96
|
},
|
|
134
97
|
{
|
|
135
|
-
is:
|
|
98
|
+
is: itemWithType('doc'),
|
|
99
|
+
then: DocItemSchema,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
is: itemWithType(undefined),
|
|
103
|
+
then: DefaultNavbarItemSchema,
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
is: Joi.alternatives().try(
|
|
107
|
+
itemWithType('dropdown'),
|
|
108
|
+
itemWithType('docsVersionDropdown'),
|
|
109
|
+
itemWithType('localeDropdown'),
|
|
110
|
+
itemWithType('search'),
|
|
111
|
+
),
|
|
112
|
+
then: Joi.forbidden().messages({
|
|
113
|
+
'any.unknown': 'Nested dropdowns are not allowed',
|
|
114
|
+
}),
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
otherwise: Joi.forbidden().messages({
|
|
118
|
+
'any.unknown': 'Bad navbar item type {.type}',
|
|
119
|
+
}),
|
|
120
|
+
});
|
|
121
|
+
const DropdownNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
122
|
+
items: Joi.array().items(DropdownSubitemSchema).required(),
|
|
123
|
+
});
|
|
124
|
+
const DocsVersionDropdownNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
125
|
+
type: Joi.string().equal('docsVersionDropdown').required(),
|
|
126
|
+
docsPluginId: Joi.string(),
|
|
127
|
+
dropdownActiveClassDisabled: Joi.boolean(),
|
|
128
|
+
dropdownItemsBefore: Joi.array().items(DropdownSubitemSchema).default([]),
|
|
129
|
+
dropdownItemsAfter: Joi.array().items(DropdownSubitemSchema).default([]),
|
|
130
|
+
});
|
|
131
|
+
const LocaleDropdownNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
132
|
+
type: Joi.string().equal('localeDropdown').required(),
|
|
133
|
+
dropdownItemsBefore: Joi.array().items(DropdownSubitemSchema).default([]),
|
|
134
|
+
dropdownItemsAfter: Joi.array().items(DropdownSubitemSchema).default([]),
|
|
135
|
+
});
|
|
136
|
+
const SearchItemSchema = Joi.object({
|
|
137
|
+
type: Joi.string().equal('search').required(),
|
|
138
|
+
});
|
|
139
|
+
const NavbarItemSchema = Joi.object({
|
|
140
|
+
position: NavbarItemPosition,
|
|
141
|
+
}).when('.', {
|
|
142
|
+
switch: [
|
|
143
|
+
{
|
|
144
|
+
is: itemWithType('docsVersion'),
|
|
145
|
+
then: DocsVersionNavbarItemSchema,
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
is: itemWithType('dropdown'),
|
|
149
|
+
then: DropdownNavbarItemSchema,
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
is: itemWithType('docsVersionDropdown'),
|
|
136
153
|
then: DocsVersionDropdownNavbarItemSchema,
|
|
137
154
|
},
|
|
138
155
|
{
|
|
139
|
-
is:
|
|
156
|
+
is: itemWithType('doc'),
|
|
140
157
|
then: DocItemSchema,
|
|
141
158
|
},
|
|
142
159
|
{
|
|
143
|
-
is:
|
|
160
|
+
is: itemWithType('localeDropdown'),
|
|
144
161
|
then: LocaleDropdownNavbarItemSchema,
|
|
145
162
|
},
|
|
146
163
|
{
|
|
147
|
-
is:
|
|
164
|
+
is: itemWithType('search'),
|
|
148
165
|
then: SearchItemSchema,
|
|
149
166
|
},
|
|
150
167
|
{
|
|
151
|
-
is:
|
|
152
|
-
then: Joi.
|
|
153
|
-
|
|
168
|
+
is: itemWithType(undefined),
|
|
169
|
+
then: Joi.object().when('.', {
|
|
170
|
+
// Dropdown item can be specified without type field
|
|
171
|
+
is: Joi.object({
|
|
172
|
+
items: Joi.array().required(),
|
|
173
|
+
}).unknown(),
|
|
174
|
+
then: DropdownNavbarItemSchema,
|
|
175
|
+
otherwise: DefaultNavbarItemSchema,
|
|
154
176
|
}),
|
|
155
177
|
},
|
|
156
178
|
],
|
|
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,
|
|
179
|
+
otherwise: Joi.forbidden().messages({
|
|
180
|
+
'any.unknown': 'Bad navbar item type {.type}',
|
|
181
|
+
}),
|
|
178
182
|
});
|
|
179
|
-
*/
|
|
180
|
-
|
|
181
183
|
const ColorModeSchema = Joi.object({
|
|
182
184
|
defaultMode: Joi.string()
|
|
183
185
|
.equal('dark', 'light')
|
|
@@ -200,9 +202,8 @@ const ColorModeSchema = Joi.object({
|
|
|
200
202
|
DEFAULT_COLOR_MODE_CONFIG.switchConfig.lightIconStyle,
|
|
201
203
|
),
|
|
202
204
|
}).default(DEFAULT_COLOR_MODE_CONFIG.switchConfig),
|
|
203
|
-
}).default(DEFAULT_COLOR_MODE_CONFIG);
|
|
205
|
+
}).default(DEFAULT_COLOR_MODE_CONFIG); // schema can probably be improved
|
|
204
206
|
|
|
205
|
-
// schema can probably be improved
|
|
206
207
|
const HtmlMetadataSchema = Joi.object({
|
|
207
208
|
id: Joi.string(),
|
|
208
209
|
name: Joi.string(),
|
|
@@ -210,7 +211,6 @@ const HtmlMetadataSchema = Joi.object({
|
|
|
210
211
|
content: Joi.string(),
|
|
211
212
|
itemprop: Joi.string(),
|
|
212
213
|
}).unknown();
|
|
213
|
-
|
|
214
214
|
const FooterLinkItemSchema = Joi.object({
|
|
215
215
|
to: Joi.string(),
|
|
216
216
|
href: URISchema,
|
|
@@ -220,23 +220,20 @@ const FooterLinkItemSchema = Joi.object({
|
|
|
220
220
|
.xor('to', 'href', 'html')
|
|
221
221
|
.with('to', 'label')
|
|
222
222
|
.with('href', 'label')
|
|
223
|
-
.nand('html', 'label')
|
|
224
|
-
// We allow any unknown attributes on the links
|
|
223
|
+
.nand('html', 'label') // We allow any unknown attributes on the links
|
|
225
224
|
// (users may need additional attributes like target, aria-role, data-customAttribute...)
|
|
226
225
|
.unknown();
|
|
227
|
-
|
|
228
226
|
const CustomCssSchema = Joi.alternatives()
|
|
229
227
|
.try(Joi.array().items(Joi.string().required()), Joi.string().required())
|
|
230
228
|
.optional();
|
|
231
|
-
|
|
232
229
|
const ThemeConfigSchema = Joi.object({
|
|
233
230
|
// TODO temporary (@alpha-58)
|
|
234
|
-
disableDarkMode: Joi.any().forbidden(
|
|
231
|
+
disableDarkMode: Joi.any().forbidden().messages({
|
|
235
232
|
'any.unknown':
|
|
236
233
|
'disableDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.disableSwitch = true',
|
|
237
234
|
}),
|
|
238
235
|
// TODO temporary (@alpha-58)
|
|
239
|
-
defaultDarkMode: Joi.any().forbidden(
|
|
236
|
+
defaultDarkMode: Joi.any().forbidden().messages({
|
|
240
237
|
'any.unknown':
|
|
241
238
|
'defaultDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.defaultMode = "dark"',
|
|
242
239
|
}),
|
|
@@ -244,12 +241,16 @@ const ThemeConfigSchema = Joi.object({
|
|
|
244
241
|
colorMode: ColorModeSchema,
|
|
245
242
|
image: Joi.string(),
|
|
246
243
|
docs: DocsSchema,
|
|
247
|
-
|
|
244
|
+
metadata: Joi.array()
|
|
248
245
|
.items(HtmlMetadataSchema)
|
|
249
|
-
.default(DEFAULT_CONFIG.
|
|
246
|
+
.default(DEFAULT_CONFIG.metadata),
|
|
247
|
+
metadatas: Joi.any().forbidden().messages({
|
|
248
|
+
'any.unknown':
|
|
249
|
+
'themeConfig.metadatas has been renamed as themeConfig.metadata. See https://github.com/facebook/docusaurus/pull/5871',
|
|
250
|
+
}),
|
|
250
251
|
announcementBar: Joi.object({
|
|
251
252
|
id: Joi.string().default('announcement-bar'),
|
|
252
|
-
content: Joi.string(),
|
|
253
|
+
content: Joi.string().required(),
|
|
253
254
|
backgroundColor: Joi.string(),
|
|
254
255
|
textColor: Joi.string(),
|
|
255
256
|
isCloseable: Joi.bool().default(true),
|
|
@@ -270,6 +271,8 @@ const ThemeConfigSchema = Joi.object({
|
|
|
270
271
|
alt: Joi.string().allow(''),
|
|
271
272
|
src: Joi.string().required(),
|
|
272
273
|
srcDark: Joi.string(),
|
|
274
|
+
width: Joi.alternatives().try(Joi.string(), Joi.number()),
|
|
275
|
+
height: Joi.alternatives().try(Joi.string(), Joi.number()),
|
|
273
276
|
href: Joi.string(),
|
|
274
277
|
target: Joi.string(),
|
|
275
278
|
}),
|
|
@@ -280,6 +283,9 @@ const ThemeConfigSchema = Joi.object({
|
|
|
280
283
|
alt: Joi.string().allow(''),
|
|
281
284
|
src: Joi.string(),
|
|
282
285
|
srcDark: Joi.string(),
|
|
286
|
+
// TODO infer this from reading the image
|
|
287
|
+
width: Joi.alternatives().try(Joi.string(), Joi.number()),
|
|
288
|
+
height: Joi.alternatives().try(Joi.string(), Joi.number()),
|
|
283
289
|
href: Joi.string(),
|
|
284
290
|
}),
|
|
285
291
|
copyright: Joi.string(),
|
|
@@ -309,9 +315,30 @@ const ThemeConfigSchema = Joi.object({
|
|
|
309
315
|
.default(DEFAULT_CONFIG.prism)
|
|
310
316
|
.unknown(),
|
|
311
317
|
hideableSidebar: Joi.bool().default(DEFAULT_CONFIG.hideableSidebar),
|
|
318
|
+
sidebarCollapsible: Joi.forbidden().messages({
|
|
319
|
+
'any.unknown':
|
|
320
|
+
'The themeConfig.sidebarCollapsible has been moved to docs plugin options. See: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs',
|
|
321
|
+
}),
|
|
322
|
+
tableOfContents: Joi.object({
|
|
323
|
+
minHeadingLevel: Joi.number()
|
|
324
|
+
.default(DEFAULT_CONFIG.tableOfContents.minHeadingLevel)
|
|
325
|
+
.when('maxHeadingLevel', {
|
|
326
|
+
is: Joi.exist(),
|
|
327
|
+
then: Joi.number()
|
|
328
|
+
.integer()
|
|
329
|
+
.min(2)
|
|
330
|
+
.max(6)
|
|
331
|
+
.max(Joi.ref('maxHeadingLevel')),
|
|
332
|
+
otherwise: Joi.number().integer().min(2).max(6),
|
|
333
|
+
}),
|
|
334
|
+
maxHeadingLevel: Joi.number()
|
|
335
|
+
.integer()
|
|
336
|
+
.min(2)
|
|
337
|
+
.max(6)
|
|
338
|
+
.default(DEFAULT_CONFIG.tableOfContents.maxHeadingLevel),
|
|
339
|
+
}).default(DEFAULT_CONFIG.tableOfContents),
|
|
312
340
|
});
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
exports.validateThemeConfig = ({validate, themeConfig}) => {
|
|
341
|
+
export {DEFAULT_CONFIG, ThemeConfigSchema};
|
|
342
|
+
export function validateThemeConfig({validate, themeConfig}) {
|
|
316
343
|
return validate(ThemeConfigSchema, themeConfig);
|
|
317
|
-
}
|
|
344
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.10",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
|
-
"types": "src/
|
|
6
|
+
"types": "src/theme-classic.d.ts",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
@@ -14,50 +14,53 @@
|
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "tsc --noEmit && yarn babel:lib && yarn babel:lib-next && yarn
|
|
18
|
-
"watch": "concurrently
|
|
17
|
+
"build": "tsc --noEmit && yarn babel:lib && yarn babel:lib-next && yarn format:lib-next",
|
|
18
|
+
"watch": "concurrently --names \"lib,lib-next,tsc\" --kill-others \"yarn babel:lib --watch\" \"yarn babel:lib-next --watch\" \"yarn tsc --watch\"",
|
|
19
19
|
"babel:lib": "cross-env BABEL_ENV=lib babel src -d lib --extensions \".tsx,.ts\" --ignore \"**/*.d.ts\" --copy-files",
|
|
20
20
|
"babel:lib-next": "cross-env BABEL_ENV=lib-next babel src -d lib-next --extensions \".tsx,.ts\" --ignore \"**/*.d.ts\" --copy-files",
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"format": "prettier --config ../../.prettierrc --ignore-path ../../.prettierignore --write \"**/*.{js,ts,jsx,tsc}\"",
|
|
22
|
+
"format:lib-next": "prettier --config ../../.prettierrc --write \"lib-next/**/*.{js,ts,jsx,tsc}\"",
|
|
23
23
|
"update-code-translations": "node -e 'require(\"./update-code-translations.js\").run()'"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@docusaurus/
|
|
27
|
-
"@docusaurus/plugin-content-
|
|
28
|
-
"@docusaurus/plugin-content-
|
|
29
|
-
"@docusaurus/
|
|
30
|
-
"@docusaurus/theme-
|
|
31
|
-
"@docusaurus/
|
|
32
|
-
"@docusaurus/utils": "2.0.0-beta.
|
|
33
|
-
"@docusaurus/utils-common": "2.0.0-beta.1",
|
|
34
|
-
"@docusaurus/utils-validation": "2.0.0-beta.1",
|
|
26
|
+
"@docusaurus/plugin-content-blog": "2.0.0-beta.10",
|
|
27
|
+
"@docusaurus/plugin-content-docs": "2.0.0-beta.10",
|
|
28
|
+
"@docusaurus/plugin-content-pages": "2.0.0-beta.10",
|
|
29
|
+
"@docusaurus/theme-common": "2.0.0-beta.10",
|
|
30
|
+
"@docusaurus/theme-translations": "2.0.0-beta.10",
|
|
31
|
+
"@docusaurus/utils": "2.0.0-beta.10",
|
|
32
|
+
"@docusaurus/utils-validation": "2.0.0-beta.10",
|
|
35
33
|
"@mdx-js/mdx": "^1.6.21",
|
|
36
34
|
"@mdx-js/react": "^1.6.21",
|
|
37
|
-
"chalk": "^4.1.
|
|
35
|
+
"chalk": "^4.1.2",
|
|
38
36
|
"clsx": "^1.1.1",
|
|
39
37
|
"copy-text-to-clipboard": "^3.0.1",
|
|
40
|
-
"fs-extra": "^10.0.0",
|
|
41
38
|
"globby": "^11.0.2",
|
|
42
|
-
"infima": "0.2.0-alpha.
|
|
39
|
+
"infima": "0.2.0-alpha.36",
|
|
43
40
|
"lodash": "^4.17.20",
|
|
44
|
-
"
|
|
45
|
-
"postcss": "^8.2.15",
|
|
41
|
+
"postcss": "^8.3.7",
|
|
46
42
|
"prism-react-renderer": "^1.2.1",
|
|
47
43
|
"prismjs": "^1.23.0",
|
|
48
|
-
"prop-types": "^15.7.2",
|
|
49
44
|
"react-router-dom": "^5.2.0",
|
|
50
|
-
"rtlcss": "^3.
|
|
45
|
+
"rtlcss": "^3.3.0"
|
|
51
46
|
},
|
|
52
47
|
"devDependencies": {
|
|
53
|
-
"@docusaurus/module-type-aliases": "2.0.0-beta.
|
|
48
|
+
"@docusaurus/module-type-aliases": "2.0.0-beta.10",
|
|
49
|
+
"@docusaurus/types": "2.0.0-beta.10",
|
|
50
|
+
"@types/mdx-js__react": "^1.5.4",
|
|
51
|
+
"@types/parse-numeric-range": "^0.0.1",
|
|
52
|
+
"@types/rtlcss": "^3.1.1",
|
|
53
|
+
"fs-extra": "^10.0.0",
|
|
54
|
+
"react-test-renderer": "^17.0.2",
|
|
55
|
+
"utility-types": "^3.10.0"
|
|
54
56
|
},
|
|
55
57
|
"peerDependencies": {
|
|
58
|
+
"@docusaurus/core": "2.0.0-beta.9",
|
|
56
59
|
"react": "^16.8.4 || ^17.0.0",
|
|
57
60
|
"react-dom": "^16.8.4 || ^17.0.0"
|
|
58
61
|
},
|
|
59
62
|
"engines": {
|
|
60
|
-
"node": ">=
|
|
63
|
+
"node": ">=14"
|
|
61
64
|
},
|
|
62
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "6f4869af5721435d6995e63e2f24ac41646e34ea"
|
|
63
66
|
}
|