@docusaurus/theme-classic 0.0.0-5030 → 0.0.0-5033
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/lib/getSwizzleConfig.d.ts +8 -0
- package/lib/getSwizzleConfig.js +226 -234
- package/lib/index.d.ts +12 -0
- package/lib/index.js +103 -155
- package/lib/nprogress.d.ts +10 -0
- package/lib/nprogress.js +16 -37
- package/lib/prism-include-languages.d.ts +7 -0
- package/lib/prism-include-languages.js +3 -9
- package/lib/theme/Admonition/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Admonition/index.js +0 -0
- package/lib/theme/AnnouncementBar/index.d.ts +8 -0
- package/{lib-next → lib}/theme/AnnouncementBar/index.js +4 -10
- package/{lib-next → lib}/theme/AnnouncementBar/styles.module.css +0 -0
- package/lib/theme/BackToTopButton/index.d.ts +8 -0
- package/{lib-next → lib}/theme/BackToTopButton/index.js +1 -3
- package/{lib-next → lib}/theme/BackToTopButton/styles.module.css +0 -0
- package/lib/theme/BlogArchivePage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/BlogArchivePage/index.js +0 -4
- package/lib/theme/BlogLayout/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogLayout/index.js +0 -0
- package/lib/theme/BlogListPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/BlogListPage/index.js +0 -3
- package/lib/theme/BlogListPaginator/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogListPaginator/index.js +0 -0
- package/lib/theme/BlogPostAuthor/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogPostAuthor/index.js +0 -3
- package/lib/theme/BlogPostAuthors/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogPostAuthors/index.js +2 -4
- package/{lib-next → lib}/theme/BlogPostAuthors/styles.module.css +0 -0
- package/lib/theme/BlogPostItem/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogPostItem/index.js +8 -20
- package/{lib-next → lib}/theme/BlogPostItem/styles.module.css +0 -0
- package/lib/theme/BlogPostPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/BlogPostPage/index.js +0 -3
- package/lib/theme/BlogPostPaginator/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogPostPaginator/index.js +0 -0
- package/lib/theme/BlogSidebar/Desktop/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogSidebar/Desktop/index.js +0 -0
- package/{lib-next → lib}/theme/BlogSidebar/Desktop/styles.module.css +0 -0
- package/lib/theme/BlogSidebar/Mobile/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogSidebar/Mobile/index.js +0 -2
- package/lib/theme/BlogSidebar/index.d.ts +9 -0
- package/{lib-next → lib}/theme/BlogSidebar/index.js +2 -4
- package/lib/theme/BlogTagsListPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/BlogTagsListPage/index.js +0 -0
- package/lib/theme/BlogTagsPostsPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/BlogTagsPostsPage/index.js +2 -9
- package/lib/theme/CodeBlock/Container/index.d.ts +10 -0
- package/{lib-next → lib}/theme/CodeBlock/Container/index.js +2 -1
- package/{lib-next → lib}/theme/CodeBlock/Container/styles.module.css +0 -0
- package/lib/theme/CodeBlock/Content/Element.d.ts +9 -0
- package/{lib-next → lib}/theme/CodeBlock/Content/Element.js +2 -2
- package/lib/theme/CodeBlock/Content/String.d.ts +9 -0
- package/{lib-next → lib}/theme/CodeBlock/Content/String.js +2 -2
- package/{lib-next → lib}/theme/CodeBlock/Content/styles.module.css +0 -0
- package/lib/theme/CodeBlock/CopyButton/index.d.ts +9 -0
- package/{lib-next → lib}/theme/CodeBlock/CopyButton/index.js +0 -0
- package/{lib-next → lib}/theme/CodeBlock/CopyButton/styles.module.css +0 -0
- package/lib/theme/CodeBlock/Line/index.d.ts +9 -0
- package/{lib-next → lib}/theme/CodeBlock/Line/index.js +1 -8
- package/{lib-next → lib}/theme/CodeBlock/Line/styles.module.css +0 -0
- package/lib/theme/CodeBlock/WordWrapButton/index.d.ts +9 -0
- package/{lib-next → lib}/theme/CodeBlock/WordWrapButton/index.js +0 -0
- package/{lib-next → lib}/theme/CodeBlock/WordWrapButton/styles.module.css +0 -0
- package/lib/theme/CodeBlock/index.d.ts +9 -0
- package/{lib-next → lib}/theme/CodeBlock/index.js +2 -4
- package/lib/theme/ColorModeToggle/index.d.ts +11 -0
- package/{lib-next → lib}/theme/ColorModeToggle/index.js +0 -2
- package/{lib-next → lib}/theme/ColorModeToggle/styles.module.css +0 -0
- package/lib/theme/Details/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Details/index.js +2 -2
- package/{lib-next → lib}/theme/Details/styles.module.css +0 -0
- package/lib/theme/DocBreadcrumbs/index.d.ts +8 -0
- package/{lib-next → lib}/theme/DocBreadcrumbs/index.js +6 -11
- package/{lib-next → lib}/theme/DocBreadcrumbs/styles.module.css +0 -0
- package/lib/theme/DocCard/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocCard/index.js +3 -13
- package/{lib-next → lib}/theme/DocCard/styles.module.css +0 -0
- package/lib/theme/DocCardList/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocCardList/index.js +0 -3
- package/lib/theme/DocCategoryGeneratedIndexPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocCategoryGeneratedIndexPage/index.js +4 -5
- package/{lib-next → lib}/theme/DocCategoryGeneratedIndexPage/styles.module.css +0 -0
- package/lib/theme/DocItem/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocItem/index.js +8 -20
- package/{lib-next → lib}/theme/DocItem/styles.module.css +0 -0
- package/lib/theme/DocItemFooter/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocItemFooter/index.js +0 -5
- package/{lib-next → lib}/theme/DocItemFooter/styles.module.css +0 -0
- package/lib/theme/DocPage/Layout/Main/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocPage/Layout/Main/index.js +0 -0
- package/{lib-next → lib}/theme/DocPage/Layout/Main/styles.module.css +0 -0
- package/lib/theme/DocPage/Layout/Sidebar/ExpandButton/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocPage/Layout/Sidebar/ExpandButton/index.js +0 -0
- package/{lib-next → lib}/theme/DocPage/Layout/Sidebar/ExpandButton/styles.module.css +0 -0
- package/lib/theme/DocPage/Layout/Sidebar/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocPage/Layout/Sidebar/index.js +2 -5
- package/{lib-next → lib}/theme/DocPage/Layout/Sidebar/styles.module.css +0 -0
- package/lib/theme/DocPage/Layout/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocPage/Layout/index.js +0 -0
- package/{lib-next → lib}/theme/DocPage/Layout/styles.module.css +0 -0
- package/lib/theme/DocPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocPage/index.js +0 -2
- package/lib/theme/DocPaginator/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocPaginator/index.js +0 -0
- package/lib/theme/DocSidebar/Desktop/CollapseButton/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocSidebar/Desktop/CollapseButton/index.js +0 -0
- package/{lib-next → lib}/theme/DocSidebar/Desktop/CollapseButton/styles.module.css +0 -0
- package/lib/theme/DocSidebar/Desktop/Content/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocSidebar/Desktop/Content/index.js +0 -2
- package/{lib-next → lib}/theme/DocSidebar/Desktop/Content/styles.module.css +0 -0
- package/lib/theme/DocSidebar/Desktop/index.d.ts +11 -0
- package/{lib-next → lib}/theme/DocSidebar/Desktop/index.js +0 -2
- package/{lib-next → lib}/theme/DocSidebar/Desktop/styles.module.css +0 -0
- package/lib/theme/DocSidebar/Mobile/index.d.ts +11 -0
- package/{lib-next → lib}/theme/DocSidebar/Mobile/index.js +0 -4
- package/lib/theme/DocSidebar/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocSidebar/index.js +4 -4
- package/lib/theme/DocSidebarItem/Category/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocSidebarItem/Category/index.js +6 -21
- package/lib/theme/DocSidebarItem/Html/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocSidebarItem/Html/index.js +3 -4
- package/{lib-next → lib}/theme/DocSidebarItem/Html/styles.module.css +0 -0
- package/lib/theme/DocSidebarItem/Link/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocSidebarItem/Link/index.js +0 -0
- package/{lib-next → lib}/theme/DocSidebarItem/Link/styles.module.css +0 -0
- package/lib/theme/DocSidebarItem/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocSidebarItem/index.js +0 -2
- package/lib/theme/DocSidebarItems/index.d.ts +11 -0
- package/{lib-next → lib}/theme/DocSidebarItems/index.js +2 -3
- package/lib/theme/DocTagDocListPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocTagDocListPage/index.js +2 -10
- package/lib/theme/DocTagsListPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocTagsListPage/index.js +0 -0
- package/lib/theme/DocVersionBadge/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocVersionBadge/index.js +1 -5
- package/lib/theme/DocVersionBanner/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocVersionBanner/index.js +3 -16
- package/lib/theme/EditThisPage/index.d.ts +9 -0
- package/{lib-next → lib}/theme/EditThisPage/index.js +0 -0
- package/lib/theme/ErrorPageContent.d.ts +10 -0
- package/{lib-next → lib}/theme/ErrorPageContent.js +0 -0
- package/lib/theme/Footer/Copyright/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Footer/Copyright/index.js +3 -4
- package/lib/theme/Footer/Layout/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Footer/Layout/index.js +0 -0
- package/lib/theme/Footer/LinkItem/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Footer/LinkItem/index.js +1 -3
- package/lib/theme/Footer/Links/MultiColumn/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Footer/Links/MultiColumn/index.js +3 -7
- package/lib/theme/Footer/Links/Simple/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Footer/Links/Simple/index.js +3 -7
- package/lib/theme/Footer/Links/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Footer/Links/index.js +0 -0
- package/lib/theme/Footer/Logo/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Footer/Logo/index.js +0 -2
- package/{lib-next → lib}/theme/Footer/Logo/styles.module.css +0 -0
- package/lib/theme/Footer/index.d.ts +10 -0
- package/{lib-next → lib}/theme/Footer/index.js +0 -4
- package/lib/theme/Heading/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Heading/index.js +2 -3
- package/{lib-next → lib}/theme/Heading/styles.module.css +0 -0
- package/lib/theme/IconArrow/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconArrow/index.js +0 -0
- package/lib/theme/IconClose/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconClose/index.js +0 -0
- package/lib/theme/IconDarkMode/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconDarkMode/index.js +0 -0
- package/lib/theme/IconEdit/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconEdit/index.js +0 -0
- package/{lib-next → lib}/theme/IconEdit/styles.module.css +0 -0
- package/lib/theme/IconExternalLink/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconExternalLink/index.js +0 -0
- package/{lib-next → lib}/theme/IconExternalLink/styles.module.css +0 -0
- package/lib/theme/IconHome/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconHome/index.js +0 -0
- package/lib/theme/IconLanguage/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconLanguage/index.js +0 -0
- package/lib/theme/IconLightMode/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconLightMode/index.js +0 -0
- package/lib/theme/IconMenu/index.d.ts +9 -0
- package/{lib-next → lib}/theme/IconMenu/index.js +0 -0
- package/lib/theme/LastUpdated/index.d.ts +9 -0
- package/{lib-next → lib}/theme/LastUpdated/index.js +0 -3
- package/lib/theme/Layout/index.d.ts +10 -0
- package/{lib-next → lib}/theme/Layout/index.js +0 -0
- package/{lib-next → lib}/theme/Layout/styles.css +0 -0
- package/lib/theme/LayoutProviders/index.d.ts +9 -0
- package/{lib-next → lib}/theme/LayoutProviders/index.js +0 -0
- package/lib/theme/Logo/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Logo/index.js +2 -9
- package/lib/theme/MDXComponents/A.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/A.js +0 -0
- package/lib/theme/MDXComponents/Code.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Code.js +0 -0
- package/lib/theme/MDXComponents/Details.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Details.js +2 -2
- package/lib/theme/MDXComponents/Head.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Head.js +0 -3
- package/lib/theme/MDXComponents/Heading.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Heading.js +0 -0
- package/lib/theme/MDXComponents/Img/index.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Img/index.js +0 -2
- package/{lib-next → lib}/theme/MDXComponents/Img/styles.module.css +0 -0
- package/lib/theme/MDXComponents/Pre.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Pre.js +2 -1
- package/lib/theme/MDXComponents/Ul.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Ul.js +2 -3
- package/lib/theme/MDXComponents/index.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/index.js +0 -0
- package/lib/theme/MDXContent/index.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXContent/index.js +0 -0
- package/lib/theme/MDXPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/MDXPage/index.js +0 -0
- package/{lib-next → lib}/theme/MDXPage/styles.module.css +0 -0
- package/lib/theme/Navbar/ColorModeToggle/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Navbar/ColorModeToggle/index.js +0 -2
- package/lib/theme/Navbar/Content/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/Content/index.js +0 -4
- package/{lib-next → lib}/theme/Navbar/Content/styles.module.css +0 -0
- package/lib/theme/Navbar/Layout/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Navbar/Layout/index.js +0 -2
- package/{lib-next → lib}/theme/Navbar/Layout/styles.module.css +0 -0
- package/lib/theme/Navbar/Logo/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/Logo/index.js +0 -0
- package/lib/theme/Navbar/MobileSidebar/Header/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/MobileSidebar/Header/index.js +0 -2
- package/lib/theme/Navbar/MobileSidebar/Layout/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Navbar/MobileSidebar/Layout/index.js +0 -0
- package/lib/theme/Navbar/MobileSidebar/PrimaryMenu/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/MobileSidebar/PrimaryMenu/index.js +4 -5
- package/lib/theme/Navbar/MobileSidebar/SecondaryMenu/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/MobileSidebar/SecondaryMenu/index.js +2 -3
- package/lib/theme/Navbar/MobileSidebar/Toggle/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/MobileSidebar/Toggle/index.js +0 -0
- package/lib/theme/Navbar/MobileSidebar/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/MobileSidebar/index.js +0 -2
- package/lib/theme/Navbar/Search/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Navbar/Search/index.js +0 -0
- package/{lib-next → lib}/theme/Navbar/Search/styles.module.css +0 -0
- package/lib/theme/Navbar/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/index.js +0 -0
- package/lib/theme/NavbarItem/ComponentTypes.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/ComponentTypes.js +0 -0
- package/lib/theme/NavbarItem/DefaultNavbarItem.d.ts +10 -0
- package/{lib-next → lib}/theme/NavbarItem/DefaultNavbarItem.js +1 -7
- package/lib/theme/NavbarItem/DocNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocNavbarItem.js +3 -4
- package/lib/theme/NavbarItem/DocSidebarNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocSidebarNavbarItem.js +0 -2
- package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +4 -7
- package/lib/theme/NavbarItem/DocsVersionNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocsVersionNavbarItem.js +0 -2
- package/lib/theme/NavbarItem/DropdownNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DropdownNavbarItem.js +6 -17
- package/lib/theme/NavbarItem/HtmlNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/HtmlNavbarItem.js +1 -3
- package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/index.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/LocaleDropdownNavbarItem/index.js +2 -2
- package/{lib-next → lib}/theme/NavbarItem/LocaleDropdownNavbarItem/styles.module.css +0 -0
- package/lib/theme/NavbarItem/NavbarNavLink.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/NavbarNavLink.js +5 -16
- package/lib/theme/NavbarItem/SearchNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/SearchNavbarItem.js +0 -1
- package/lib/theme/NavbarItem/index.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/index.js +0 -6
- package/lib/theme/NavbarItem/utils.d.ts +7 -0
- package/{lib-next → lib}/theme/NavbarItem/utils.js +0 -1
- package/lib/theme/NotFound.d.ts +8 -0
- package/{lib-next → lib}/theme/NotFound.js +0 -0
- package/lib/theme/PaginatorNavLink/index.d.ts +9 -0
- package/{lib-next → lib}/theme/PaginatorNavLink/index.js +0 -0
- package/lib/theme/SearchBar.d.ts +7 -0
- package/{lib-next → lib}/theme/SearchBar.js +0 -0
- package/lib/theme/SearchMetadata/index.d.ts +9 -0
- package/{lib-next → lib}/theme/SearchMetadata/index.js +3 -3
- package/lib/theme/SiteMetadata/index.d.ts +8 -0
- package/{lib-next → lib}/theme/SiteMetadata/index.js +15 -16
- package/lib/theme/SkipToContent/index.d.ts +8 -0
- package/{lib-next → lib}/theme/SkipToContent/index.js +0 -0
- package/{lib-next → lib}/theme/SkipToContent/styles.module.css +0 -0
- package/lib/theme/TOC/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TOC/index.js +2 -2
- package/{lib-next → lib}/theme/TOC/styles.module.css +0 -0
- package/lib/theme/TOCCollapsible/CollapseButton/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TOCCollapsible/CollapseButton/index.js +0 -0
- package/{lib-next → lib}/theme/TOCCollapsible/CollapseButton/styles.module.css +0 -0
- package/lib/theme/TOCCollapsible/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TOCCollapsible/index.js +0 -0
- package/{lib-next → lib}/theme/TOCCollapsible/styles.module.css +0 -0
- package/lib/theme/TOCInline/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TOCInline/index.js +0 -0
- package/{lib-next → lib}/theme/TOCInline/styles.module.css +0 -0
- package/lib/theme/TOCItems/Tree.d.ts +11 -0
- package/{lib-next → lib}/theme/TOCItems/Tree.js +5 -8
- package/lib/theme/TOCItems/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TOCItems/index.js +0 -1
- package/lib/theme/TabItem/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TabItem/index.js +1 -3
- package/{lib-next → lib}/theme/TabItem/styles.module.css +0 -0
- package/lib/theme/Tabs/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Tabs/index.js +11 -27
- package/{lib-next → lib}/theme/Tabs/styles.module.css +0 -0
- package/lib/theme/Tag/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Tag/index.js +0 -0
- package/{lib-next → lib}/theme/Tag/styles.module.css +0 -0
- package/lib/theme/TagsListByLetter/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TagsListByLetter/index.js +0 -2
- package/{lib-next → lib}/theme/TagsListByLetter/styles.module.css +0 -0
- package/lib/theme/TagsListInline/index.d.ts +9 -0
- package/{lib-next → lib}/theme/TagsListInline/index.js +0 -0
- package/{lib-next → lib}/theme/TagsListInline/styles.module.css +0 -0
- package/lib/theme/ThemedImage/index.d.ts +9 -0
- package/{lib-next → lib}/theme/ThemedImage/index.js +3 -2
- package/{lib-next → lib}/theme/ThemedImage/styles.module.css +0 -0
- package/lib/theme/prism-include-languages.d.ts +8 -0
- package/{lib-next → lib}/theme/prism-include-languages.js +2 -2
- package/lib/translations.d.ts +15 -0
- package/lib/translations.js +120 -136
- package/lib/validateThemeConfig.d.ts +68 -0
- package/lib/validateThemeConfig.js +353 -322
- package/package.json +19 -25
- package/src/index.ts +1 -1
- package/lib/deps.d.ts +0 -13
- package/lib/theme-classic.d.ts +0 -1279
- package/lib-next/theme/Tabs/__tests__/index.test.js +0 -146
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/DocSidebarItem';
|
|
9
|
+
export default function DocSidebarItem({ item, ...props }: Props): JSX.Element | null;
|
|
@@ -12,10 +12,8 @@ export default function DocSidebarItem({item, ...props}) {
|
|
|
12
12
|
switch (item.type) {
|
|
13
13
|
case 'category':
|
|
14
14
|
return <DocSidebarItemCategory item={item} {...props} />;
|
|
15
|
-
|
|
16
15
|
case 'html':
|
|
17
16
|
return <DocSidebarItemHtml item={item} {...props} />;
|
|
18
|
-
|
|
19
17
|
case 'link':
|
|
20
18
|
default:
|
|
21
19
|
return <DocSidebarItemLink item={item} {...props} />;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { Props } from '@theme/DocSidebarItems';
|
|
9
|
+
declare function DocSidebarItems({ items, ...props }: Props): JSX.Element;
|
|
10
|
+
declare const _default: React.MemoExoticComponent<typeof DocSidebarItems>;
|
|
11
|
+
export default _default;
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
import React, {memo} from 'react';
|
|
8
8
|
import {DocSidebarItemsExpandedStateProvider} from '@docusaurus/theme-common';
|
|
9
9
|
import DocSidebarItem from '@theme/DocSidebarItem';
|
|
10
|
-
|
|
11
10
|
// TODO this item should probably not receive the "activePath" props
|
|
12
11
|
// TODO this triggers whole sidebar re-renders on navigation
|
|
13
12
|
function DocSidebarItems({items, ...props}) {
|
|
@@ -18,6 +17,6 @@ function DocSidebarItems({items, ...props}) {
|
|
|
18
17
|
))}
|
|
19
18
|
</DocSidebarItemsExpandedStateProvider>
|
|
20
19
|
);
|
|
21
|
-
}
|
|
22
|
-
|
|
20
|
+
}
|
|
21
|
+
// Optimize sidebar at each "level"
|
|
23
22
|
export default memo(DocSidebarItems);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="@docusaurus/plugin-content-docs" />
|
|
8
|
+
/// <reference types="react" />
|
|
9
|
+
import type { Props } from '@theme/DocTagDocListPage';
|
|
10
|
+
export default function DocTagDocListPage({ tag }: Props): JSX.Element;
|
|
@@ -16,7 +16,6 @@ import {
|
|
|
16
16
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
17
17
|
import Layout from '@theme/Layout';
|
|
18
18
|
import SearchMetadata from '@theme/SearchMetadata';
|
|
19
|
-
|
|
20
19
|
// Very simple pluralization: probably good enough for now
|
|
21
20
|
function useNDocsTaggedPlural() {
|
|
22
21
|
const {selectMessage} = usePluralForm();
|
|
@@ -30,13 +29,10 @@ function useNDocsTaggedPlural() {
|
|
|
30
29
|
'Pluralized label for "{count} docs tagged". 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)',
|
|
31
30
|
message: 'One doc tagged|{count} docs tagged',
|
|
32
31
|
},
|
|
33
|
-
{
|
|
34
|
-
count,
|
|
35
|
-
},
|
|
32
|
+
{count},
|
|
36
33
|
),
|
|
37
34
|
);
|
|
38
35
|
}
|
|
39
|
-
|
|
40
36
|
function DocItem({doc}) {
|
|
41
37
|
return (
|
|
42
38
|
<article className="margin-vert--lg">
|
|
@@ -47,7 +43,6 @@ function DocItem({doc}) {
|
|
|
47
43
|
</article>
|
|
48
44
|
);
|
|
49
45
|
}
|
|
50
|
-
|
|
51
46
|
export default function DocTagDocListPage({tag}) {
|
|
52
47
|
const nDocsTaggedPlural = useNDocsTaggedPlural();
|
|
53
48
|
const title = translate(
|
|
@@ -56,10 +51,7 @@ export default function DocTagDocListPage({tag}) {
|
|
|
56
51
|
description: 'The title of the page for a docs tag',
|
|
57
52
|
message: '{nDocsTagged} with "{tagName}"',
|
|
58
53
|
},
|
|
59
|
-
{
|
|
60
|
-
nDocsTagged: nDocsTaggedPlural(tag.count),
|
|
61
|
-
tagName: tag.label,
|
|
62
|
-
},
|
|
54
|
+
{nDocsTagged: nDocsTaggedPlural(tag.count), tagName: tag.label},
|
|
63
55
|
);
|
|
64
56
|
return (
|
|
65
57
|
<HtmlClassNameProvider
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="@docusaurus/plugin-content-docs" />
|
|
8
|
+
/// <reference types="react" />
|
|
9
|
+
import type { Props } from '@theme/DocTagsListPage';
|
|
10
|
+
export default function DocTagsListPage({ tags }: Props): JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/DocVersionBadge';
|
|
9
|
+
export default function DocVersionBadge({ className, }: Props): JSX.Element | null;
|
|
@@ -10,7 +10,6 @@ import Translate from '@docusaurus/Translate';
|
|
|
10
10
|
import {ThemeClassNames, useDocsVersion} from '@docusaurus/theme-common';
|
|
11
11
|
export default function DocVersionBadge({className}) {
|
|
12
12
|
const versionMetadata = useDocsVersion();
|
|
13
|
-
|
|
14
13
|
if (versionMetadata.badge) {
|
|
15
14
|
return (
|
|
16
15
|
<span
|
|
@@ -21,14 +20,11 @@ export default function DocVersionBadge({className}) {
|
|
|
21
20
|
)}>
|
|
22
21
|
<Translate
|
|
23
22
|
id="theme.docs.versionBadge.label"
|
|
24
|
-
values={{
|
|
25
|
-
versionLabel: versionMetadata.label,
|
|
26
|
-
}}>
|
|
23
|
+
values={{versionLabel: versionMetadata.label}}>
|
|
27
24
|
{'Version: {versionLabel}'}
|
|
28
25
|
</Translate>
|
|
29
26
|
</span>
|
|
30
27
|
);
|
|
31
28
|
}
|
|
32
|
-
|
|
33
29
|
return null;
|
|
34
30
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/DocVersionBanner';
|
|
9
|
+
export default function DocVersionBanner({ className, }: Props): JSX.Element | null;
|
|
@@ -18,7 +18,6 @@ import {
|
|
|
18
18
|
useDocsPreferredVersion,
|
|
19
19
|
useDocsVersion,
|
|
20
20
|
} from '@docusaurus/theme-common';
|
|
21
|
-
|
|
22
21
|
function UnreleasedVersionLabel({siteTitle, versionMetadata}) {
|
|
23
22
|
return (
|
|
24
23
|
<Translate
|
|
@@ -34,7 +33,6 @@ function UnreleasedVersionLabel({siteTitle, versionMetadata}) {
|
|
|
34
33
|
</Translate>
|
|
35
34
|
);
|
|
36
35
|
}
|
|
37
|
-
|
|
38
36
|
function UnmaintainedVersionLabel({siteTitle, versionMetadata}) {
|
|
39
37
|
return (
|
|
40
38
|
<Translate
|
|
@@ -50,18 +48,15 @@ function UnmaintainedVersionLabel({siteTitle, versionMetadata}) {
|
|
|
50
48
|
</Translate>
|
|
51
49
|
);
|
|
52
50
|
}
|
|
53
|
-
|
|
54
51
|
const BannerLabelComponents = {
|
|
55
52
|
unreleased: UnreleasedVersionLabel,
|
|
56
53
|
unmaintained: UnmaintainedVersionLabel,
|
|
57
54
|
};
|
|
58
|
-
|
|
59
55
|
function BannerLabel(props) {
|
|
60
56
|
const BannerLabelComponent =
|
|
61
57
|
BannerLabelComponents[props.versionMetadata.banner];
|
|
62
58
|
return <BannerLabelComponent {...props} />;
|
|
63
59
|
}
|
|
64
|
-
|
|
65
60
|
function LatestVersionSuggestionLabel({versionLabel, to, onClick}) {
|
|
66
61
|
return (
|
|
67
62
|
<Translate
|
|
@@ -87,23 +82,18 @@ function LatestVersionSuggestionLabel({versionLabel, to, onClick}) {
|
|
|
87
82
|
</Translate>
|
|
88
83
|
);
|
|
89
84
|
}
|
|
90
|
-
|
|
91
85
|
function DocVersionBannerEnabled({className, versionMetadata}) {
|
|
92
86
|
const {
|
|
93
87
|
siteConfig: {title: siteTitle},
|
|
94
88
|
} = useDocusaurusContext();
|
|
95
|
-
const {pluginId} = useActivePlugin({
|
|
96
|
-
failfast: true,
|
|
97
|
-
});
|
|
98
|
-
|
|
89
|
+
const {pluginId} = useActivePlugin({failfast: true});
|
|
99
90
|
const getVersionMainDoc = (version) =>
|
|
100
91
|
version.docs.find((doc) => doc.id === version.mainDocId);
|
|
101
|
-
|
|
102
92
|
const {savePreferredVersionName} = useDocsPreferredVersion(pluginId);
|
|
103
93
|
const {latestDocSuggestion, latestVersionSuggestion} =
|
|
104
|
-
useDocVersionSuggestions(pluginId);
|
|
94
|
+
useDocVersionSuggestions(pluginId);
|
|
95
|
+
// Try to link to same doc in latest version (not always possible), falling
|
|
105
96
|
// back to main doc of latest version
|
|
106
|
-
|
|
107
97
|
const latestVersionSuggestedDoc =
|
|
108
98
|
latestDocSuggestion ?? getVersionMainDoc(latestVersionSuggestion);
|
|
109
99
|
return (
|
|
@@ -127,10 +117,8 @@ function DocVersionBannerEnabled({className, versionMetadata}) {
|
|
|
127
117
|
</div>
|
|
128
118
|
);
|
|
129
119
|
}
|
|
130
|
-
|
|
131
120
|
export default function DocVersionBanner({className}) {
|
|
132
121
|
const versionMetadata = useDocsVersion();
|
|
133
|
-
|
|
134
122
|
if (versionMetadata.banner) {
|
|
135
123
|
return (
|
|
136
124
|
<DocVersionBannerEnabled
|
|
@@ -139,6 +127,5 @@ export default function DocVersionBanner({className}) {
|
|
|
139
127
|
/>
|
|
140
128
|
);
|
|
141
129
|
}
|
|
142
|
-
|
|
143
130
|
return null;
|
|
144
131
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/EditThisPage';
|
|
9
|
+
export default function EditThisPage({ editUrl }: Props): JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="@docusaurus/module-type-aliases" />
|
|
8
|
+
/// <reference types="react" />
|
|
9
|
+
import type { Props } from '@theme/Error';
|
|
10
|
+
export default function ErrorPageContent({ error, tryAgain, }: Props): JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/Footer/Copyright';
|
|
9
|
+
export default function FooterCopyright({ copyright }: Props): JSX.Element;
|
|
@@ -8,11 +8,10 @@ import React from 'react';
|
|
|
8
8
|
export default function FooterCopyright({copyright}) {
|
|
9
9
|
return (
|
|
10
10
|
<div
|
|
11
|
-
className="footer__copyright"
|
|
11
|
+
className="footer__copyright"
|
|
12
|
+
// Developer provided the HTML, so assume it's safe.
|
|
12
13
|
// eslint-disable-next-line react/no-danger
|
|
13
|
-
dangerouslySetInnerHTML={{
|
|
14
|
-
__html: copyright,
|
|
15
|
-
}}
|
|
14
|
+
dangerouslySetInnerHTML={{__html: copyright}}
|
|
16
15
|
/>
|
|
17
16
|
);
|
|
18
17
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/Footer/Layout';
|
|
9
|
+
export default function FooterLayout({ style, links, logo, copyright, }: Props): JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/Footer/LinkItem';
|
|
9
|
+
export default function FooterLinkItem({ item }: Props): JSX.Element;
|
|
@@ -12,9 +12,7 @@ import IconExternalLink from '@theme/IconExternalLink';
|
|
|
12
12
|
export default function FooterLinkItem({item}) {
|
|
13
13
|
const {to, href, label, prependBaseUrlToHref, ...props} = item;
|
|
14
14
|
const toUrl = useBaseUrl(to);
|
|
15
|
-
const normalizedHref = useBaseUrl(href, {
|
|
16
|
-
forcePrependBaseUrl: true,
|
|
17
|
-
});
|
|
15
|
+
const normalizedHref = useBaseUrl(href, {forcePrependBaseUrl: true});
|
|
18
16
|
return (
|
|
19
17
|
<Link
|
|
20
18
|
className="footer__link-item"
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/Footer/Links/MultiColumn';
|
|
9
|
+
export default function FooterLinksMultiColumn({ columns }: Props): JSX.Element;
|
|
@@ -6,15 +6,13 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import LinkItem from '@theme/Footer/LinkItem';
|
|
9
|
-
|
|
10
9
|
function ColumnLinkItem({item}) {
|
|
11
10
|
return item.html ? (
|
|
12
11
|
<li
|
|
13
|
-
className="footer__item"
|
|
12
|
+
className="footer__item"
|
|
13
|
+
// Developer provided the HTML, so assume it's safe.
|
|
14
14
|
// eslint-disable-next-line react/no-danger
|
|
15
|
-
dangerouslySetInnerHTML={{
|
|
16
|
-
__html: item.html,
|
|
17
|
-
}}
|
|
15
|
+
dangerouslySetInnerHTML={{__html: item.html}}
|
|
18
16
|
/>
|
|
19
17
|
) : (
|
|
20
18
|
<li key={item.href || item.to} className="footer__item">
|
|
@@ -22,7 +20,6 @@ function ColumnLinkItem({item}) {
|
|
|
22
20
|
</li>
|
|
23
21
|
);
|
|
24
22
|
}
|
|
25
|
-
|
|
26
23
|
function Column({column}) {
|
|
27
24
|
return (
|
|
28
25
|
<div className="col footer__col">
|
|
@@ -35,7 +32,6 @@ function Column({column}) {
|
|
|
35
32
|
</div>
|
|
36
33
|
);
|
|
37
34
|
}
|
|
38
|
-
|
|
39
35
|
export default function FooterLinksMultiColumn({columns}) {
|
|
40
36
|
return (
|
|
41
37
|
<div className="row footer__links">
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/Footer/Links/Simple';
|
|
9
|
+
export default function FooterLinksSimple({ links }: Props): JSX.Element;
|
|
@@ -6,25 +6,21 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import LinkItem from '@theme/Footer/LinkItem';
|
|
9
|
-
|
|
10
9
|
function Separator() {
|
|
11
10
|
return <span className="footer__link-separator">·</span>;
|
|
12
11
|
}
|
|
13
|
-
|
|
14
12
|
function SimpleLinkItem({item}) {
|
|
15
13
|
return item.html ? (
|
|
16
14
|
<span
|
|
17
|
-
className="footer__link-item"
|
|
15
|
+
className="footer__link-item"
|
|
16
|
+
// Developer provided the HTML, so assume it's safe.
|
|
18
17
|
// eslint-disable-next-line react/no-danger
|
|
19
|
-
dangerouslySetInnerHTML={{
|
|
20
|
-
__html: item.html,
|
|
21
|
-
}}
|
|
18
|
+
dangerouslySetInnerHTML={{__html: item.html}}
|
|
22
19
|
/>
|
|
23
20
|
) : (
|
|
24
21
|
<LinkItem item={item} />
|
|
25
22
|
);
|
|
26
23
|
}
|
|
27
|
-
|
|
28
24
|
export default function FooterLinksSimple({links}) {
|
|
29
25
|
return (
|
|
30
26
|
<div className="footer__links text--center">
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/Footer/Links';
|
|
9
|
+
export default function FooterLinks({ links }: Props): JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/Footer/Logo';
|
|
9
|
+
export default function FooterLogo({ logo }: Props): JSX.Element;
|
|
@@ -9,7 +9,6 @@ import Link from '@docusaurus/Link';
|
|
|
9
9
|
import {useBaseUrlUtils} from '@docusaurus/useBaseUrl';
|
|
10
10
|
import ThemedImage from '@theme/ThemedImage';
|
|
11
11
|
import styles from './styles.module.css';
|
|
12
|
-
|
|
13
12
|
function LogoImage({logo}) {
|
|
14
13
|
const {withBaseUrl} = useBaseUrlUtils();
|
|
15
14
|
const sources = {
|
|
@@ -26,7 +25,6 @@ function LogoImage({logo}) {
|
|
|
26
25
|
/>
|
|
27
26
|
);
|
|
28
27
|
}
|
|
29
|
-
|
|
30
28
|
export default function FooterLogo({logo}) {
|
|
31
29
|
return logo.href ? (
|
|
32
30
|
<Link href={logo.href} className={styles.footerLogoLink}>
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
declare function Footer(): JSX.Element | null;
|
|
9
|
+
declare const _default: React.MemoExoticComponent<typeof Footer>;
|
|
10
|
+
export default _default;
|
|
@@ -10,14 +10,11 @@ import FooterLinks from '@theme/Footer/Links';
|
|
|
10
10
|
import FooterLogo from '@theme/Footer/Logo';
|
|
11
11
|
import FooterCopyright from '@theme/Footer/Copyright';
|
|
12
12
|
import FooterLayout from '@theme/Footer/Layout';
|
|
13
|
-
|
|
14
13
|
function Footer() {
|
|
15
14
|
const {footer} = useThemeConfig();
|
|
16
|
-
|
|
17
15
|
if (!footer) {
|
|
18
16
|
return null;
|
|
19
17
|
}
|
|
20
|
-
|
|
21
18
|
const {copyright, links, logo, style} = footer;
|
|
22
19
|
return (
|
|
23
20
|
<FooterLayout
|
|
@@ -28,5 +25,4 @@ function Footer() {
|
|
|
28
25
|
/>
|
|
29
26
|
);
|
|
30
27
|
}
|
|
31
|
-
|
|
32
28
|
export default React.memo(Footer);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/Heading';
|
|
9
|
+
export default function Heading({ as: As, id, ...props }: Props): JSX.Element;
|
|
@@ -12,12 +12,11 @@ import styles from './styles.module.css';
|
|
|
12
12
|
export default function Heading({as: As, id, ...props}) {
|
|
13
13
|
const {
|
|
14
14
|
navbar: {hideOnScroll},
|
|
15
|
-
} = useThemeConfig();
|
|
16
|
-
|
|
15
|
+
} = useThemeConfig();
|
|
16
|
+
// H1 headings do not need an id because they don't appear in the TOC.
|
|
17
17
|
if (As === 'h1' || !id) {
|
|
18
18
|
return <As {...props} id={undefined} />;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
20
|
return (
|
|
22
21
|
<As
|
|
23
22
|
{...props}
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/IconArrow';
|
|
9
|
+
export default function IconArrow(props: Props): JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/IconClose';
|
|
9
|
+
export default function IconClose({ width, height, color, strokeWidth, className, ...restProps }: Props): JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/IconDarkMode';
|
|
9
|
+
export default function IconDarkMode(props: Props): JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/IconEdit';
|
|
9
|
+
export default function IconEdit({ className, ...restProps }: Props): JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/IconExternalLink';
|
|
9
|
+
export default function IconExternalLink({ width, height, }: Props): JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/IconHome';
|
|
9
|
+
export default function IconHome(props: Props): JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/IconLanguage';
|
|
9
|
+
export default function IconLanguage({ width, height, ...props }: Props): JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
import type { Props } from '@theme/IconLightMode';
|
|
9
|
+
export default function IconLightMode(props: Props): JSX.Element;
|
|
File without changes
|