@docusaurus/theme-classic 0.0.0-5029 → 0.0.0-5032
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
package/lib/index.js
CHANGED
|
@@ -1,55 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.AnnouncementBarDismissStorageKey = void 0;
|
|
7
|
-
exports.default = themeClassic;
|
|
8
|
-
Object.defineProperty(exports, "getSwizzleConfig", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () {
|
|
11
|
-
return _getSwizzleConfig.default;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "validateThemeConfig", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return _validateThemeConfig.validateThemeConfig;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
var _path = _interopRequireDefault(require("path"));
|
|
22
|
-
|
|
23
|
-
var _module = require("module");
|
|
24
|
-
|
|
25
|
-
var _rtlcss = _interopRequireDefault(require("rtlcss"));
|
|
26
|
-
|
|
27
|
-
var _themeTranslations = require("@docusaurus/theme-translations");
|
|
28
|
-
|
|
29
|
-
var _translations = require("./translations");
|
|
30
|
-
|
|
31
|
-
var _getSwizzleConfig = _interopRequireDefault(require("./getSwizzleConfig"));
|
|
32
|
-
|
|
33
|
-
var _validateThemeConfig = require("./validateThemeConfig");
|
|
34
|
-
|
|
35
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
36
|
-
|
|
37
2
|
/**
|
|
38
3
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
39
4
|
*
|
|
40
5
|
* This source code is licensed under the MIT license found in the
|
|
41
6
|
* LICENSE file in the root directory of this source tree.
|
|
42
7
|
*/
|
|
43
|
-
|
|
44
|
-
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.validateThemeConfig = exports.getSwizzleConfig = exports.AnnouncementBarDismissStorageKey = void 0;
|
|
10
|
+
const tslib_1 = require("tslib");
|
|
11
|
+
const path_1 = tslib_1.__importDefault(require("path"));
|
|
12
|
+
const module_1 = require("module");
|
|
13
|
+
const rtlcss_1 = tslib_1.__importDefault(require("rtlcss"));
|
|
14
|
+
const theme_translations_1 = require("@docusaurus/theme-translations");
|
|
15
|
+
const translations_1 = require("./translations");
|
|
16
|
+
const requireFromDocusaurusCore = (0, module_1.createRequire)(require.resolve('@docusaurus/core/package.json'));
|
|
17
|
+
const ContextReplacementPlugin = requireFromDocusaurusCore('webpack/lib/ContextReplacementPlugin');
|
|
18
|
+
// Need to be inlined to prevent dark mode FOUC
|
|
45
19
|
// Make sure the key is the same as the one in `/theme/hooks/useTheme.js`
|
|
46
|
-
|
|
47
20
|
const ThemeStorageKey = 'theme';
|
|
48
|
-
|
|
49
|
-
const noFlashColorMode = ({
|
|
50
|
-
defaultMode,
|
|
51
|
-
respectPrefersColorScheme
|
|
52
|
-
}) => `(function() {
|
|
21
|
+
const noFlashColorMode = ({ defaultMode, respectPrefersColorScheme, }) => `(function() {
|
|
53
22
|
var defaultMode = '${defaultMode}';
|
|
54
23
|
var respectPrefersColorScheme = ${respectPrefersColorScheme};
|
|
55
24
|
|
|
@@ -83,135 +52,114 @@ const noFlashColorMode = ({
|
|
|
83
52
|
setDataThemeAttribute(defaultMode === 'dark' ? 'dark' : 'light');
|
|
84
53
|
}
|
|
85
54
|
}
|
|
86
|
-
})();`;
|
|
55
|
+
})();`;
|
|
56
|
+
// Duplicated constant. Unfortunately we can't import it from theme-common, as
|
|
87
57
|
// we need to support older nodejs versions without ESM support
|
|
88
58
|
// TODO: import from theme-common once we only support Node.js with ESM support
|
|
89
59
|
// + move all those announcementBar stuff there too
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
exports.AnnouncementBarDismissStorageKey = AnnouncementBarDismissStorageKey;
|
|
94
|
-
const AnnouncementBarDismissDataAttribute = 'data-announcement-bar-initially-dismissed'; // We always render the announcement bar html on the server, to prevent layout
|
|
60
|
+
exports.AnnouncementBarDismissStorageKey = 'docusaurus.announcement.dismiss';
|
|
61
|
+
const AnnouncementBarDismissDataAttribute = 'data-announcement-bar-initially-dismissed';
|
|
62
|
+
// We always render the announcement bar html on the server, to prevent layout
|
|
95
63
|
// shifts on React hydration. The theme can use CSS + the data attribute to hide
|
|
96
64
|
// the announcement bar asap (before React hydration)
|
|
97
|
-
|
|
98
65
|
const AnnouncementBarInlineJavaScript = `
|
|
99
66
|
(function() {
|
|
100
67
|
function isDismissed() {
|
|
101
68
|
try {
|
|
102
|
-
return localStorage.getItem('${AnnouncementBarDismissStorageKey}') === 'true';
|
|
69
|
+
return localStorage.getItem('${exports.AnnouncementBarDismissStorageKey}') === 'true';
|
|
103
70
|
} catch (err) {}
|
|
104
71
|
return false;
|
|
105
72
|
}
|
|
106
73
|
document.documentElement.setAttribute('${AnnouncementBarDismissDataAttribute}', isDismissed());
|
|
107
74
|
})();`;
|
|
108
|
-
|
|
109
75
|
function getInfimaCSSFile(direction) {
|
|
110
|
-
|
|
76
|
+
return `infima/dist/css/default/default${direction === 'rtl' ? '-rtl' : ''}.css`;
|
|
111
77
|
}
|
|
112
|
-
|
|
113
78
|
function themeClassic(context, options) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}),
|
|
148
|
-
translateThemeConfig: params => (0, _translations.translateThemeConfig)({
|
|
149
|
-
themeConfig: params.themeConfig,
|
|
150
|
-
translationFiles: params.translationFiles
|
|
151
|
-
}),
|
|
152
|
-
|
|
153
|
-
getDefaultCodeTranslationMessages() {
|
|
154
|
-
return (0, _themeTranslations.readDefaultCodeTranslationMessages)({
|
|
155
|
-
locale: currentLocale,
|
|
156
|
-
name: 'theme-common'
|
|
157
|
-
});
|
|
158
|
-
},
|
|
159
|
-
|
|
160
|
-
getClientModules() {
|
|
161
|
-
const modules = [require.resolve(getInfimaCSSFile(direction)), './prism-include-languages', './admonitions.css', './nprogress'];
|
|
162
|
-
|
|
163
|
-
if (customCss) {
|
|
164
|
-
modules.push(...(Array.isArray(customCss) ? customCss : [customCss]).map(p => _path.default.resolve(context.siteDir, p)));
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
return modules;
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
configureWebpack() {
|
|
171
|
-
const prismLanguages = additionalLanguages.map(lang => `prism-${lang}`).join('|');
|
|
172
|
-
return {
|
|
173
|
-
plugins: [// This allows better optimization by only bundling those components
|
|
174
|
-
// that the user actually needs, because the modules are dynamically
|
|
175
|
-
// required and can't be known during compile time.
|
|
176
|
-
new ContextReplacementPlugin(/prismjs[\\/]components$/, new RegExp(`^./(${prismLanguages})$`))]
|
|
177
|
-
};
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
configurePostCss(postCssOptions) {
|
|
181
|
-
if (direction === 'rtl') {
|
|
182
|
-
const resolvedInfimaFile = require.resolve(getInfimaCSSFile(direction));
|
|
183
|
-
|
|
184
|
-
const plugin = {
|
|
185
|
-
postcssPlugin: 'RtlCssPlugin',
|
|
186
|
-
prepare: result => {
|
|
187
|
-
var _result$root, _result$root$source, _result$root$source$i;
|
|
188
|
-
|
|
189
|
-
const file = (_result$root = result.root) === null || _result$root === void 0 ? void 0 : (_result$root$source = _result$root.source) === null || _result$root$source === void 0 ? void 0 : (_result$root$source$i = _result$root$source.input) === null || _result$root$source$i === void 0 ? void 0 : _result$root$source$i.file; // Skip Infima as we are using the its RTL version.
|
|
190
|
-
|
|
191
|
-
if (file === resolvedInfimaFile) {
|
|
192
|
-
return {};
|
|
79
|
+
const { i18n: { currentLocale, localeConfigs }, } = context;
|
|
80
|
+
const themeConfig = context.siteConfig.themeConfig;
|
|
81
|
+
const { announcementBar, colorMode, prism: { additionalLanguages }, } = themeConfig;
|
|
82
|
+
const { customCss } = options ?? {};
|
|
83
|
+
const { direction } = localeConfigs[currentLocale];
|
|
84
|
+
return {
|
|
85
|
+
name: 'docusaurus-theme-classic',
|
|
86
|
+
getThemePath() {
|
|
87
|
+
return '../lib/theme';
|
|
88
|
+
},
|
|
89
|
+
getTypeScriptThemePath() {
|
|
90
|
+
return '../src/theme';
|
|
91
|
+
},
|
|
92
|
+
getTranslationFiles: () => (0, translations_1.getTranslationFiles)({ themeConfig }),
|
|
93
|
+
translateThemeConfig: (params) => (0, translations_1.translateThemeConfig)({
|
|
94
|
+
themeConfig: params.themeConfig,
|
|
95
|
+
translationFiles: params.translationFiles,
|
|
96
|
+
}),
|
|
97
|
+
getDefaultCodeTranslationMessages() {
|
|
98
|
+
return (0, theme_translations_1.readDefaultCodeTranslationMessages)({
|
|
99
|
+
locale: currentLocale,
|
|
100
|
+
name: 'theme-common',
|
|
101
|
+
});
|
|
102
|
+
},
|
|
103
|
+
getClientModules() {
|
|
104
|
+
const modules = [
|
|
105
|
+
require.resolve(getInfimaCSSFile(direction)),
|
|
106
|
+
'./prism-include-languages',
|
|
107
|
+
'./admonitions.css',
|
|
108
|
+
'./nprogress',
|
|
109
|
+
];
|
|
110
|
+
if (customCss) {
|
|
111
|
+
modules.push(...(Array.isArray(customCss) ? customCss : [customCss]).map((p) => path_1.default.resolve(context.siteDir, p)));
|
|
193
112
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
113
|
+
return modules;
|
|
114
|
+
},
|
|
115
|
+
configureWebpack() {
|
|
116
|
+
const prismLanguages = additionalLanguages
|
|
117
|
+
.map((lang) => `prism-${lang}`)
|
|
118
|
+
.join('|');
|
|
119
|
+
return {
|
|
120
|
+
plugins: [
|
|
121
|
+
// This allows better optimization by only bundling those components
|
|
122
|
+
// that the user actually needs, because the modules are dynamically
|
|
123
|
+
// required and can't be known during compile time.
|
|
124
|
+
new ContextReplacementPlugin(/prismjs[\\/]components$/, new RegExp(`^./(${prismLanguages})$`)),
|
|
125
|
+
],
|
|
126
|
+
};
|
|
127
|
+
},
|
|
128
|
+
configurePostCss(postCssOptions) {
|
|
129
|
+
if (direction === 'rtl') {
|
|
130
|
+
const resolvedInfimaFile = require.resolve(getInfimaCSSFile(direction));
|
|
131
|
+
const plugin = {
|
|
132
|
+
postcssPlugin: 'RtlCssPlugin',
|
|
133
|
+
prepare: (result) => {
|
|
134
|
+
const file = result.root?.source?.input?.file;
|
|
135
|
+
// Skip Infima as we are using the its RTL version.
|
|
136
|
+
if (file === resolvedInfimaFile) {
|
|
137
|
+
return {};
|
|
138
|
+
}
|
|
139
|
+
return (0, rtlcss_1.default)(result.root);
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
postCssOptions.plugins.push(plugin);
|
|
143
|
+
}
|
|
144
|
+
return postCssOptions;
|
|
145
|
+
},
|
|
146
|
+
injectHtmlTags() {
|
|
147
|
+
return {
|
|
148
|
+
preBodyTags: [
|
|
149
|
+
{
|
|
150
|
+
tagName: 'script',
|
|
151
|
+
innerHTML: `
|
|
209
152
|
${noFlashColorMode(colorMode)}
|
|
210
153
|
${announcementBar ? AnnouncementBarInlineJavaScript : ''}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
154
|
+
`,
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
};
|
|
158
|
+
},
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
exports.default = themeClassic;
|
|
162
|
+
var getSwizzleConfig_1 = require("./getSwizzleConfig");
|
|
163
|
+
Object.defineProperty(exports, "getSwizzleConfig", { enumerable: true, get: function () { return tslib_1.__importDefault(getSwizzleConfig_1).default; } });
|
|
164
|
+
var validateThemeConfig_1 = require("./validateThemeConfig");
|
|
165
|
+
Object.defineProperty(exports, "validateThemeConfig", { enumerable: true, get: function () { return validateThemeConfig_1.validateThemeConfig; } });
|
|
@@ -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 './nprogress.css';
|
|
8
|
+
import type { ClientModule } from '@docusaurus/types';
|
|
9
|
+
declare const clientModule: ClientModule;
|
|
10
|
+
export default clientModule;
|
package/lib/nprogress.js
CHANGED
|
@@ -1,46 +1,25 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var _nprogress = _interopRequireDefault(require("nprogress"));
|
|
9
|
-
|
|
10
|
-
require("./nprogress.css");
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
1
|
/**
|
|
15
2
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
3
|
*
|
|
17
4
|
* This source code is licensed under the MIT license found in the
|
|
18
5
|
* LICENSE file in the root directory of this source tree.
|
|
19
6
|
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
});
|
|
23
|
-
|
|
7
|
+
import nprogress from 'nprogress';
|
|
8
|
+
import './nprogress.css';
|
|
9
|
+
nprogress.configure({ showSpinner: false });
|
|
24
10
|
const delay = 200;
|
|
25
11
|
const clientModule = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
onRouteDidUpdate() {
|
|
41
|
-
_nprogress.default.done();
|
|
42
|
-
}
|
|
43
|
-
|
|
12
|
+
onRouteUpdate({ location, previousLocation }) {
|
|
13
|
+
if (previousLocation && location.pathname !== previousLocation.pathname) {
|
|
14
|
+
const progressBarTimeout = window.setTimeout(() => {
|
|
15
|
+
nprogress.start();
|
|
16
|
+
}, delay);
|
|
17
|
+
return () => window.clearTimeout(progressBarTimeout);
|
|
18
|
+
}
|
|
19
|
+
return undefined;
|
|
20
|
+
},
|
|
21
|
+
onRouteDidUpdate() {
|
|
22
|
+
nprogress.done();
|
|
23
|
+
},
|
|
44
24
|
};
|
|
45
|
-
|
|
46
|
-
exports.default = _default;
|
|
25
|
+
export default clientModule;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _prism = _interopRequireDefault(require("prism-react-renderer/prism"));
|
|
4
|
-
|
|
5
|
-
var _prismIncludeLanguages = _interopRequireDefault(require("@theme/prism-include-languages"));
|
|
6
|
-
|
|
7
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
8
|
-
|
|
9
1
|
/**
|
|
10
2
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
3
|
*
|
|
12
4
|
* This source code is licensed under the MIT license found in the
|
|
13
5
|
* LICENSE file in the root directory of this source tree.
|
|
14
6
|
*/
|
|
15
|
-
|
|
7
|
+
import Prism from 'prism-react-renderer/prism';
|
|
8
|
+
import prismIncludeLanguages from '@theme/prism-include-languages';
|
|
9
|
+
prismIncludeLanguages(Prism);
|
|
@@ -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/Admonition';
|
|
9
|
+
export default function Admonition({ children, type, title, icon, }: Props): JSX.Element;
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
export default function AnnouncementBar(): JSX.Element | null;
|
|
@@ -13,27 +13,21 @@ import styles from './styles.module.css';
|
|
|
13
13
|
export default function AnnouncementBar() {
|
|
14
14
|
const {isActive, close} = useAnnouncementBar();
|
|
15
15
|
const {announcementBar} = useThemeConfig();
|
|
16
|
-
|
|
17
16
|
if (!isActive) {
|
|
18
17
|
return null;
|
|
19
18
|
}
|
|
20
|
-
|
|
21
19
|
const {content, backgroundColor, textColor, isCloseable} = announcementBar;
|
|
22
20
|
return (
|
|
23
21
|
<div
|
|
24
22
|
className={styles.announcementBar}
|
|
25
|
-
style={{
|
|
26
|
-
backgroundColor,
|
|
27
|
-
color: textColor,
|
|
28
|
-
}}
|
|
23
|
+
style={{backgroundColor, color: textColor}}
|
|
29
24
|
role="banner">
|
|
30
25
|
{isCloseable && <div className={styles.announcementBarPlaceholder} />}
|
|
31
26
|
<div
|
|
32
|
-
className={styles.announcementBarContent}
|
|
27
|
+
className={styles.announcementBarContent}
|
|
28
|
+
// Developer provided the HTML, so assume it's safe.
|
|
33
29
|
// eslint-disable-next-line react/no-danger
|
|
34
|
-
dangerouslySetInnerHTML={{
|
|
35
|
-
__html: content,
|
|
36
|
-
}}
|
|
30
|
+
dangerouslySetInnerHTML={{__html: content}}
|
|
37
31
|
/>
|
|
38
32
|
{isCloseable ? (
|
|
39
33
|
<button
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
export default function BackToTopButton(): JSX.Element;
|
|
@@ -10,9 +10,7 @@ import {translate} from '@docusaurus/Translate';
|
|
|
10
10
|
import {ThemeClassNames, useBackToTopButton} from '@docusaurus/theme-common';
|
|
11
11
|
import styles from './styles.module.css';
|
|
12
12
|
export default function BackToTopButton() {
|
|
13
|
-
const {shown, scrollToTop} = useBackToTopButton({
|
|
14
|
-
threshold: 300,
|
|
15
|
-
});
|
|
13
|
+
const {shown, scrollToTop} = useBackToTopButton({threshold: 300});
|
|
16
14
|
return (
|
|
17
15
|
<button
|
|
18
16
|
aria-label={translate({
|
|
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/plugin-content-blog" />
|
|
8
|
+
/// <reference types="react" />
|
|
9
|
+
import type { Props } from '@theme/BlogArchivePage';
|
|
10
|
+
export default function BlogArchive({ archive }: Props): JSX.Element;
|
|
@@ -9,7 +9,6 @@ import Link from '@docusaurus/Link';
|
|
|
9
9
|
import {translate} from '@docusaurus/Translate';
|
|
10
10
|
import {PageMetadata} from '@docusaurus/theme-common';
|
|
11
11
|
import Layout from '@theme/Layout';
|
|
12
|
-
|
|
13
12
|
function Year({year, posts}) {
|
|
14
13
|
return (
|
|
15
14
|
<>
|
|
@@ -26,7 +25,6 @@ function Year({year, posts}) {
|
|
|
26
25
|
</>
|
|
27
26
|
);
|
|
28
27
|
}
|
|
29
|
-
|
|
30
28
|
function YearsSection({years}) {
|
|
31
29
|
return (
|
|
32
30
|
<section className="margin-vert--lg">
|
|
@@ -42,7 +40,6 @@ function YearsSection({years}) {
|
|
|
42
40
|
</section>
|
|
43
41
|
);
|
|
44
42
|
}
|
|
45
|
-
|
|
46
43
|
function listPostsByYears(blogPosts) {
|
|
47
44
|
const postsByYear = blogPosts.reduceRight((posts, post) => {
|
|
48
45
|
const year = post.metadata.date.split('-')[0];
|
|
@@ -54,7 +51,6 @@ function listPostsByYears(blogPosts) {
|
|
|
54
51
|
posts,
|
|
55
52
|
}));
|
|
56
53
|
}
|
|
57
|
-
|
|
58
54
|
export default function BlogArchive({archive}) {
|
|
59
55
|
const title = translate({
|
|
60
56
|
id: 'theme.blog.archive.title',
|
|
@@ -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/BlogLayout';
|
|
9
|
+
export default function BlogLayout(props: 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/plugin-content-blog" />
|
|
8
|
+
/// <reference types="react" />
|
|
9
|
+
import type { Props } from '@theme/BlogListPage';
|
|
10
|
+
export default function BlogListPage(props: Props): JSX.Element;
|
|
@@ -16,7 +16,6 @@ import BlogLayout from '@theme/BlogLayout';
|
|
|
16
16
|
import BlogPostItem from '@theme/BlogPostItem';
|
|
17
17
|
import BlogListPaginator from '@theme/BlogListPaginator';
|
|
18
18
|
import SearchMetadata from '@theme/SearchMetadata';
|
|
19
|
-
|
|
20
19
|
function BlogListPageMetadata(props) {
|
|
21
20
|
const {metadata} = props;
|
|
22
21
|
const {
|
|
@@ -32,7 +31,6 @@ function BlogListPageMetadata(props) {
|
|
|
32
31
|
</>
|
|
33
32
|
);
|
|
34
33
|
}
|
|
35
|
-
|
|
36
34
|
function BlogListPageContent(props) {
|
|
37
35
|
const {metadata, items, sidebar} = props;
|
|
38
36
|
return (
|
|
@@ -51,7 +49,6 @@ function BlogListPageContent(props) {
|
|
|
51
49
|
</BlogLayout>
|
|
52
50
|
);
|
|
53
51
|
}
|
|
54
|
-
|
|
55
52
|
export default function BlogListPage(props) {
|
|
56
53
|
return (
|
|
57
54
|
<HtmlClassNameProvider
|
|
@@ -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/BlogListPaginator';
|
|
9
|
+
export default function BlogListPaginator(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/BlogPostAuthor';
|
|
9
|
+
export default function BlogPostAuthor({ author }: Props): JSX.Element;
|
|
@@ -6,15 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import Link from '@docusaurus/Link';
|
|
9
|
-
|
|
10
9
|
function MaybeLink(props) {
|
|
11
10
|
if (props.href) {
|
|
12
11
|
return <Link {...props} />;
|
|
13
12
|
}
|
|
14
|
-
|
|
15
13
|
return <>{props.children}</>;
|
|
16
14
|
}
|
|
17
|
-
|
|
18
15
|
export default function BlogPostAuthor({author}) {
|
|
19
16
|
const {name, title, url, imageURL, email} = author;
|
|
20
17
|
const link = url || (email && `mailto:${email}`) || undefined;
|
|
@@ -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/BlogPostAuthors';
|
|
9
|
+
export default function BlogPostAuthors({ authors, assets, }: Props): JSX.Element | null;
|
|
@@ -7,15 +7,13 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import BlogPostAuthor from '@theme/BlogPostAuthor';
|
|
10
|
-
import styles from './styles.module.css';
|
|
11
|
-
|
|
10
|
+
import styles from './styles.module.css';
|
|
11
|
+
// Component responsible for the authors layout
|
|
12
12
|
export default function BlogPostAuthors({authors, assets}) {
|
|
13
13
|
const authorsCount = authors.length;
|
|
14
|
-
|
|
15
14
|
if (authorsCount === 0) {
|
|
16
15
|
return null;
|
|
17
16
|
}
|
|
18
|
-
|
|
19
17
|
const imageOnly = authors.every(({name}) => !name);
|
|
20
18
|
return (
|
|
21
19
|
<div
|
|
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/BlogPostItem';
|
|
9
|
+
export default function BlogPostItem(props: Props): JSX.Element;
|