@docusaurus/theme-classic 2.0.0-beta.20 → 2.0.0-beta.21
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 +219 -234
- package/lib/index.d.ts +12 -0
- package/lib/index.js +103 -157
- 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 +1 -5
- 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 +4 -7
- 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 +9 -21
- 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 +4 -7
- 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 +3 -5
- package/lib/theme/BlogTagsListPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/BlogTagsListPage/index.js +3 -3
- package/lib/theme/BlogTagsPostsPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/BlogTagsPostsPage/index.js +7 -13
- 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 +3 -3
- package/lib/theme/CodeBlock/Content/String.d.ts +9 -0
- package/{lib-next → lib}/theme/CodeBlock/Content/String.js +4 -4
- 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 +1 -3
- 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 +8 -13
- 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 +5 -15
- 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 +1 -4
- package/lib/theme/DocCategoryGeneratedIndexPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocCategoryGeneratedIndexPage/index.js +5 -6
- 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 +15 -27
- 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 +1 -6
- 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 +1 -1
- 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 +1 -1
- 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 +5 -8
- package/{lib-next/theme/DocPage/Layout/Sidebar/index.module.css → 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 +2 -2
- package/{lib-next/theme/DocPage/Layout/index.module.css → 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 +2 -4
- 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 +1 -1
- 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/theme/DocSidebarItem/Category.js → lib/theme/DocSidebarItem/Category/index.js} +17 -31
- package/lib/theme/DocSidebarItem/Html/index.d.ts +9 -0
- package/{lib-next/theme/DocSidebarItem/Html.js → lib/theme/DocSidebarItem/Html/index.js} +5 -6
- package/{lib-next/theme/DocSidebarItem/Html.module.css → lib/theme/DocSidebarItem/Html/styles.module.css} +0 -0
- package/lib/theme/DocSidebarItem/Link/index.d.ts +9 -0
- package/{lib-next/theme/DocSidebarItem/Link.js → lib/theme/DocSidebarItem/Link/index.js} +1 -1
- package/{lib-next/theme/DocSidebarItem/Link.module.css → 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 +3 -4
- package/lib/theme/DocTagDocListPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocTagDocListPage/index.js +5 -12
- package/lib/theme/DocTagsListPage/index.d.ts +10 -0
- package/{lib-next → lib}/theme/DocTagsListPage/index.js +2 -2
- package/lib/theme/DocVersionBadge/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocVersionBadge/index.js +2 -6
- package/lib/theme/DocVersionBanner/index.d.ts +9 -0
- package/{lib-next → lib}/theme/DocVersionBanner/index.js +4 -17
- package/lib/theme/EditThisPage/index.d.ts +9 -0
- package/{lib-next → lib}/theme/EditThisPage/index.js +1 -1
- 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 +4 -8
- 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 +1 -3
- 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 +8 -6
- 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 +3 -10
- 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 +5 -3
- package/lib/theme/MDXComponents/Head.d.ts +9 -0
- package/{lib-next → lib}/theme/MDXComponents/Head.js +2 -5
- 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/theme/MDXComponents/Img.js → lib/theme/MDXComponents/Img/index.js} +1 -3
- package/{lib-next/theme/MDXComponents/Img.module.css → 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 +4 -3
- package/lib/theme/MDXComponents/Ul/index.d.ts +9 -0
- package/{lib-next/theme/MDXComponents/Ul.js → lib/theme/MDXComponents/Ul/index.js} +5 -5
- package/lib/theme/MDXComponents/Ul/styles.module.css +14 -0
- 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 +3 -3
- 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 +1 -3
- package/lib/theme/Navbar/Content/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/Content/index.js +5 -9
- 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 +1 -3
- 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 +1 -3
- 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 +5 -6
- 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 +1 -1
- package/lib/theme/Navbar/MobileSidebar/index.d.ts +8 -0
- package/{lib-next → lib}/theme/Navbar/MobileSidebar/index.js +2 -4
- package/lib/theme/Navbar/Search/index.d.ts +9 -0
- package/{lib-next → lib}/theme/Navbar/Search/index.js +3 -2
- 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 +4 -9
- package/lib/theme/NavbarItem/DocNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocNavbarItem.js +7 -15
- package/lib/theme/NavbarItem/DocSidebarNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocSidebarNavbarItem.js +2 -10
- package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +8 -12
- package/lib/theme/NavbarItem/DocsVersionNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DocsVersionNavbarItem.js +1 -3
- package/lib/theme/NavbarItem/DropdownNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/DropdownNavbarItem.js +16 -21
- 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 +14 -6
- 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 +6 -22
- package/lib/theme/NavbarItem/SearchNavbarItem.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/SearchNavbarItem.js +2 -3
- package/lib/theme/NavbarItem/index.d.ts +9 -0
- package/{lib-next → lib}/theme/NavbarItem/index.js +7 -17
- package/lib/theme/NotFound.d.ts +8 -0
- package/{lib-next → lib}/theme/NotFound.js +1 -1
- 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 +16 -17
- 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/theme/TOCCollapsible/CollapseButton.js → lib/theme/TOCCollapsible/CollapseButton/index.js} +1 -1
- package/{lib-next/theme/TOCCollapsible/CollapseButton.module.css → 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 +1 -1
- package/{lib-next/theme/TOCCollapsible/index.module.css → 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 +1 -1
- 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 +1 -2
- 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 +17 -33
- 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 +1 -3
- 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 +12 -0
- package/lib/validateThemeConfig.js +355 -322
- package/package.json +24 -28
- package/src/getSwizzleConfig.ts +0 -7
- package/src/index.ts +15 -13
- package/src/theme/BlogArchivePage/index.tsx +2 -2
- package/src/theme/BlogListPage/index.tsx +5 -5
- package/src/theme/BlogPostAuthors/index.tsx +1 -1
- package/src/theme/BlogPostItem/index.tsx +2 -2
- package/src/theme/BlogPostPage/index.tsx +5 -5
- package/src/theme/BlogSidebar/Desktop/index.tsx +1 -1
- package/src/theme/BlogSidebar/index.tsx +1 -1
- package/src/theme/BlogTagsListPage/index.tsx +4 -5
- package/src/theme/BlogTagsPostsPage/index.tsx +5 -6
- package/src/theme/CodeBlock/Content/Element.tsx +1 -1
- package/src/theme/CodeBlock/Content/String.tsx +2 -2
- package/src/theme/CodeBlock/Line/index.tsx +1 -0
- package/src/theme/CodeBlock/index.tsx +1 -1
- package/src/theme/ColorModeToggle/index.tsx +2 -2
- package/src/theme/Details/index.tsx +1 -0
- package/src/theme/DocBreadcrumbs/index.tsx +3 -2
- package/src/theme/DocCard/index.tsx +7 -6
- package/src/theme/DocCardList/index.tsx +2 -3
- package/src/theme/DocCategoryGeneratedIndexPage/index.tsx +2 -2
- package/src/theme/DocItem/index.tsx +9 -8
- package/src/theme/DocItemFooter/index.tsx +2 -3
- package/src/theme/DocPage/Layout/Main/index.tsx +2 -3
- package/src/theme/DocPage/Layout/Sidebar/ExpandButton/index.tsx +1 -1
- package/src/theme/DocPage/Layout/Sidebar/index.tsx +5 -6
- package/src/theme/DocPage/Layout/Sidebar/{index.module.css → styles.module.css} +0 -0
- package/src/theme/DocPage/Layout/index.tsx +3 -4
- package/src/theme/DocPage/Layout/{index.module.css → styles.module.css} +0 -0
- package/src/theme/DocPage/index.tsx +3 -5
- package/src/theme/DocSidebar/Desktop/CollapseButton/index.tsx +1 -1
- package/src/theme/DocSidebar/index.tsx +1 -1
- package/src/theme/DocSidebarItem/{Category.tsx → Category/index.tsx} +14 -15
- package/src/theme/DocSidebarItem/{Html.tsx → Html/index.tsx} +2 -2
- package/src/theme/DocSidebarItem/{Html.module.css → Html/styles.module.css} +0 -0
- package/src/theme/DocSidebarItem/{Link.tsx → Link/index.tsx} +1 -2
- package/src/theme/DocSidebarItem/{Link.module.css → Link/styles.module.css} +0 -0
- package/src/theme/DocSidebarItems/index.tsx +1 -1
- package/src/theme/DocTagDocListPage/index.tsx +3 -4
- package/src/theme/DocTagsListPage/index.tsx +3 -4
- package/src/theme/DocVersionBadge/index.tsx +1 -1
- package/src/theme/DocVersionBanner/index.tsx +1 -1
- package/src/theme/EditThisPage/index.tsx +2 -3
- package/src/theme/Footer/Links/MultiColumn/index.tsx +2 -2
- package/src/theme/Footer/Links/Simple/index.tsx +1 -1
- package/src/theme/Footer/Links/index.tsx +1 -1
- package/src/theme/Footer/Logo/index.tsx +2 -2
- package/src/theme/Heading/index.tsx +1 -1
- package/src/theme/IconEdit/index.tsx +0 -1
- package/src/theme/LastUpdated/index.tsx +1 -1
- package/src/theme/Layout/index.tsx +9 -7
- package/src/theme/Logo/index.tsx +2 -3
- package/src/theme/MDXComponents/Details.tsx +5 -3
- package/src/theme/MDXComponents/Head.tsx +5 -3
- package/src/theme/MDXComponents/{Img.tsx → Img/index.tsx} +3 -2
- package/src/theme/MDXComponents/{Img.module.css → Img/styles.module.css} +0 -0
- package/src/theme/MDXComponents/Pre.tsx +2 -2
- package/src/theme/MDXComponents/{Ul.tsx → Ul/index.tsx} +5 -3
- package/src/theme/MDXComponents/Ul/styles.module.css +14 -0
- package/src/theme/MDXPage/index.tsx +4 -4
- package/src/theme/Navbar/ColorModeToggle/index.tsx +1 -1
- package/src/theme/Navbar/Content/index.tsx +6 -6
- package/src/theme/Navbar/Layout/index.tsx +2 -2
- package/src/theme/Navbar/MobileSidebar/Header/index.tsx +1 -1
- package/src/theme/Navbar/MobileSidebar/Layout/index.tsx +1 -1
- package/src/theme/Navbar/MobileSidebar/PrimaryMenu/index.tsx +1 -2
- package/src/theme/Navbar/MobileSidebar/Toggle/index.tsx +1 -1
- package/src/theme/Navbar/MobileSidebar/index.tsx +2 -2
- package/src/theme/Navbar/Search/index.tsx +6 -2
- package/src/theme/NavbarItem/DefaultNavbarItem.tsx +3 -5
- package/src/theme/NavbarItem/DocNavbarItem.tsx +6 -14
- package/src/theme/NavbarItem/DocSidebarNavbarItem.tsx +2 -10
- package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +5 -6
- package/src/theme/NavbarItem/DocsVersionNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/DropdownNavbarItem.tsx +8 -10
- package/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx +13 -5
- package/src/theme/NavbarItem/NavbarNavLink.tsx +3 -9
- package/src/theme/NavbarItem/SearchNavbarItem.tsx +6 -3
- package/src/theme/NavbarItem/index.tsx +9 -19
- package/src/theme/NotFound.tsx +1 -1
- package/src/theme/SiteMetadata/index.tsx +1 -1
- package/src/theme/TOC/index.tsx +2 -1
- package/src/theme/TOCCollapsible/{CollapseButton.tsx → CollapseButton/index.tsx} +2 -1
- package/src/theme/TOCCollapsible/{CollapseButton.module.css → CollapseButton/styles.module.css} +0 -0
- package/src/theme/TOCCollapsible/index.tsx +3 -2
- package/src/theme/TOCCollapsible/{index.module.css → styles.module.css} +0 -0
- package/src/theme/TOCInline/index.tsx +2 -1
- package/src/theme/TOCItems/index.tsx +2 -2
- package/src/theme/TabItem/index.tsx +1 -1
- package/src/theme/Tabs/index.tsx +9 -8
- package/src/theme/TagsListByLetter/index.tsx +1 -1
- package/src/theme/ThemedImage/index.tsx +0 -1
- package/src/theme-classic.d.ts +8 -15
- package/src/translations.ts +2 -3
- package/src/validateThemeConfig.ts +8 -8
- package/lib/deps.d.ts +0 -13
- package/lib/theme-classic.d.ts +0 -1279
- package/lib-next/theme/NavbarItem/utils.js +0 -10
- package/lib-next/theme/Tabs/__tests__/index.test.js +0 -146
- package/src/theme/NavbarItem/utils.ts +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.21",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -14,45 +14,41 @@
|
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "tsc --
|
|
18
|
-
"watch": "
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"format:lib-next": "prettier --config ../../.prettierrc --write \"lib-next/**/*.{js,ts,jsx,tsc}\""
|
|
17
|
+
"build": "tsc --build && node ../../admin/scripts/copyUntypedFiles.js && prettier --config ../../.prettierrc --write \"lib/theme/**/*.js\"",
|
|
18
|
+
"watch": "run-p -c copy:watch build:watch",
|
|
19
|
+
"build:watch": "tsc --build --watch",
|
|
20
|
+
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
|
|
22
21
|
},
|
|
23
22
|
"dependencies": {
|
|
24
|
-
"@docusaurus/core": "2.0.0-beta.
|
|
25
|
-
"@docusaurus/plugin-content-blog": "2.0.0-beta.
|
|
26
|
-
"@docusaurus/plugin-content-docs": "2.0.0-beta.
|
|
27
|
-
"@docusaurus/plugin-content-pages": "2.0.0-beta.
|
|
28
|
-
"@docusaurus/theme-common": "2.0.0-beta.
|
|
29
|
-
"@docusaurus/theme-translations": "2.0.0-beta.
|
|
30
|
-
"@docusaurus/utils": "2.0.0-beta.
|
|
31
|
-
"@docusaurus/utils-common": "2.0.0-beta.
|
|
32
|
-
"@docusaurus/utils-validation": "2.0.0-beta.
|
|
23
|
+
"@docusaurus/core": "2.0.0-beta.21",
|
|
24
|
+
"@docusaurus/plugin-content-blog": "2.0.0-beta.21",
|
|
25
|
+
"@docusaurus/plugin-content-docs": "2.0.0-beta.21",
|
|
26
|
+
"@docusaurus/plugin-content-pages": "2.0.0-beta.21",
|
|
27
|
+
"@docusaurus/theme-common": "2.0.0-beta.21",
|
|
28
|
+
"@docusaurus/theme-translations": "2.0.0-beta.21",
|
|
29
|
+
"@docusaurus/utils": "2.0.0-beta.21",
|
|
30
|
+
"@docusaurus/utils-common": "2.0.0-beta.21",
|
|
31
|
+
"@docusaurus/utils-validation": "2.0.0-beta.21",
|
|
33
32
|
"@mdx-js/react": "^1.6.22",
|
|
34
33
|
"clsx": "^1.1.1",
|
|
35
34
|
"copy-text-to-clipboard": "^3.0.1",
|
|
36
35
|
"infima": "0.2.0-alpha.39",
|
|
37
36
|
"lodash": "^4.17.21",
|
|
38
37
|
"nprogress": "^0.2.0",
|
|
39
|
-
"postcss": "^8.4.
|
|
40
|
-
"prism-react-renderer": "^1.3.
|
|
38
|
+
"postcss": "^8.4.14",
|
|
39
|
+
"prism-react-renderer": "^1.3.3",
|
|
41
40
|
"prismjs": "^1.28.0",
|
|
42
|
-
"react-router-dom": "^5.
|
|
43
|
-
"rtlcss": "^3.5.0"
|
|
41
|
+
"react-router-dom": "^5.3.3",
|
|
42
|
+
"rtlcss": "^3.5.0",
|
|
43
|
+
"tslib": "^2.4.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"@babel/preset-typescript": "^7.16.7",
|
|
49
|
-
"@docusaurus/module-type-aliases": "2.0.0-beta.20",
|
|
50
|
-
"@docusaurus/types": "2.0.0-beta.20",
|
|
46
|
+
"@docusaurus/module-type-aliases": "2.0.0-beta.21",
|
|
47
|
+
"@docusaurus/types": "2.0.0-beta.21",
|
|
51
48
|
"@types/mdx-js__react": "^1.5.5",
|
|
52
49
|
"@types/nprogress": "^0.2.0",
|
|
53
50
|
"@types/prismjs": "^1.26.0",
|
|
54
|
-
"@types/rtlcss": "^3.
|
|
55
|
-
"cross-env": "^7.0.3",
|
|
51
|
+
"@types/rtlcss": "^3.5.0",
|
|
56
52
|
"fs-extra": "^10.1.0",
|
|
57
53
|
"react-test-renderer": "^17.0.2",
|
|
58
54
|
"utility-types": "^3.10.0"
|
|
@@ -62,7 +58,7 @@
|
|
|
62
58
|
"react-dom": "^16.8.4 || ^17.0.0"
|
|
63
59
|
},
|
|
64
60
|
"engines": {
|
|
65
|
-
"node": ">=14"
|
|
61
|
+
"node": ">=16.14"
|
|
66
62
|
},
|
|
67
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "69ac49fc6909517f13615ee40290c4bd00c39df4"
|
|
68
64
|
}
|
package/src/getSwizzleConfig.ts
CHANGED
|
@@ -214,13 +214,6 @@ export default function getSwizzleConfig(): SwizzleConfig {
|
|
|
214
214
|
description:
|
|
215
215
|
'The Navbar item components mapping. Can be ejected to add custom navbar item types. See https://github.com/facebook/docusaurus/issues/7227.',
|
|
216
216
|
},
|
|
217
|
-
// TODO should probably not even appear here
|
|
218
|
-
'NavbarItem/utils': {
|
|
219
|
-
actions: {
|
|
220
|
-
eject: 'forbidden',
|
|
221
|
-
wrap: 'forbidden',
|
|
222
|
-
},
|
|
223
|
-
},
|
|
224
217
|
NotFound: {
|
|
225
218
|
actions: {
|
|
226
219
|
eject: 'safe',
|
package/src/index.ts
CHANGED
|
@@ -5,21 +5,23 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import
|
|
9
|
-
import type {ThemeConfig} from '@docusaurus/theme-common';
|
|
10
|
-
import {getTranslationFiles, translateThemeConfig} from './translations';
|
|
8
|
+
import path from 'path';
|
|
11
9
|
import {createRequire} from 'module';
|
|
12
|
-
import type {Plugin as PostCssPlugin} from 'postcss';
|
|
13
10
|
import rtlcss from 'rtlcss';
|
|
14
11
|
import {readDefaultCodeTranslationMessages} from '@docusaurus/theme-translations';
|
|
12
|
+
import {getTranslationFiles, translateThemeConfig} from './translations';
|
|
13
|
+
import type {LoadContext, Plugin} from '@docusaurus/types';
|
|
14
|
+
import type {ThemeConfig} from '@docusaurus/theme-common';
|
|
15
|
+
import type {Plugin as PostCssPlugin} from 'postcss';
|
|
15
16
|
import type {Options} from '@docusaurus/theme-classic';
|
|
16
17
|
import type webpack from 'webpack';
|
|
17
18
|
|
|
18
19
|
const requireFromDocusaurusCore = createRequire(
|
|
19
20
|
require.resolve('@docusaurus/core/package.json'),
|
|
20
21
|
);
|
|
21
|
-
const ContextReplacementPlugin
|
|
22
|
-
|
|
22
|
+
const ContextReplacementPlugin = requireFromDocusaurusCore(
|
|
23
|
+
'webpack/lib/ContextReplacementPlugin',
|
|
24
|
+
) as typeof webpack.ContextReplacementPlugin;
|
|
23
25
|
|
|
24
26
|
// Need to be inlined to prevent dark mode FOUC
|
|
25
27
|
// Make sure the key is the same as the one in `/theme/hooks/useTheme.js`
|
|
@@ -111,7 +113,7 @@ export default function themeClassic(
|
|
|
111
113
|
name: 'docusaurus-theme-classic',
|
|
112
114
|
|
|
113
115
|
getThemePath() {
|
|
114
|
-
return '../lib
|
|
116
|
+
return '../lib/theme';
|
|
115
117
|
},
|
|
116
118
|
|
|
117
119
|
getTypeScriptThemePath() {
|
|
@@ -142,11 +144,11 @@ export default function themeClassic(
|
|
|
142
144
|
];
|
|
143
145
|
|
|
144
146
|
if (customCss) {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
modules.push(
|
|
148
|
+
...(Array.isArray(customCss) ? customCss : [customCss]).map((p) =>
|
|
149
|
+
path.resolve(context.siteDir, p),
|
|
150
|
+
),
|
|
151
|
+
);
|
|
150
152
|
}
|
|
151
153
|
|
|
152
154
|
return modules;
|
|
@@ -176,7 +178,7 @@ export default function themeClassic(
|
|
|
176
178
|
const plugin: PostCssPlugin = {
|
|
177
179
|
postcssPlugin: 'RtlCssPlugin',
|
|
178
180
|
prepare: (result) => {
|
|
179
|
-
const file = result.root
|
|
181
|
+
const file = result.root.source?.input.file;
|
|
180
182
|
// Skip Infima as we are using the its RTL version.
|
|
181
183
|
if (file === resolvedInfimaFile) {
|
|
182
184
|
return {};
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import Layout from '@theme/Layout';
|
|
10
9
|
import Link from '@docusaurus/Link';
|
|
11
|
-
import type {ArchiveBlogPost, Props} from '@theme/BlogArchivePage';
|
|
12
10
|
import {translate} from '@docusaurus/Translate';
|
|
13
11
|
import {PageMetadata} from '@docusaurus/theme-common';
|
|
12
|
+
import Layout from '@theme/Layout';
|
|
13
|
+
import type {ArchiveBlogPost, Props} from '@theme/BlogArchivePage';
|
|
14
14
|
|
|
15
15
|
type YearProp = {
|
|
16
16
|
year: string;
|
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
+
import clsx from 'clsx';
|
|
9
10
|
|
|
10
11
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
11
|
-
import BlogLayout from '@theme/BlogLayout';
|
|
12
|
-
import BlogPostItem from '@theme/BlogPostItem';
|
|
13
|
-
import BlogListPaginator from '@theme/BlogListPaginator';
|
|
14
|
-
import type {Props} from '@theme/BlogListPage';
|
|
15
12
|
import {
|
|
16
13
|
PageMetadata,
|
|
17
14
|
HtmlClassNameProvider,
|
|
18
15
|
ThemeClassNames,
|
|
19
16
|
} from '@docusaurus/theme-common';
|
|
17
|
+
import BlogLayout from '@theme/BlogLayout';
|
|
18
|
+
import BlogPostItem from '@theme/BlogPostItem';
|
|
19
|
+
import BlogListPaginator from '@theme/BlogListPaginator';
|
|
20
20
|
import SearchMetadata from '@theme/SearchMetadata';
|
|
21
|
-
import
|
|
21
|
+
import type {Props} from '@theme/BlogListPage';
|
|
22
22
|
|
|
23
23
|
function BlogListPageMetadata(props: Props): JSX.Element {
|
|
24
24
|
const {metadata} = props;
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
import type {Props} from '@theme/BlogPostAuthors';
|
|
11
10
|
import BlogPostAuthor from '@theme/BlogPostAuthor';
|
|
11
|
+
import type {Props} from '@theme/BlogPostAuthors';
|
|
12
12
|
|
|
13
13
|
import styles from './styles.module.css';
|
|
14
14
|
|
|
@@ -14,11 +14,11 @@ import {usePluralForm} from '@docusaurus/theme-common';
|
|
|
14
14
|
import {blogPostContainerID} from '@docusaurus/utils-common';
|
|
15
15
|
import MDXContent from '@theme/MDXContent';
|
|
16
16
|
import EditThisPage from '@theme/EditThisPage';
|
|
17
|
+
import TagsListInline from '@theme/TagsListInline';
|
|
18
|
+
import BlogPostAuthors from '@theme/BlogPostAuthors';
|
|
17
19
|
import type {Props} from '@theme/BlogPostItem';
|
|
18
20
|
|
|
19
21
|
import styles from './styles.module.css';
|
|
20
|
-
import TagsListInline from '@theme/TagsListInline';
|
|
21
|
-
import BlogPostAuthors from '@theme/BlogPostAuthors';
|
|
22
22
|
|
|
23
23
|
// Very simple pluralization: probably good enough for now
|
|
24
24
|
function useReadingTimePlural() {
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import
|
|
10
|
-
import BlogPostItem from '@theme/BlogPostItem';
|
|
11
|
-
import BlogPostPaginator from '@theme/BlogPostPaginator';
|
|
12
|
-
import type {Props} from '@theme/BlogPostPage';
|
|
9
|
+
import clsx from 'clsx';
|
|
13
10
|
import {
|
|
14
11
|
PageMetadata,
|
|
15
12
|
HtmlClassNameProvider,
|
|
16
13
|
ThemeClassNames,
|
|
17
14
|
} from '@docusaurus/theme-common';
|
|
15
|
+
import BlogLayout from '@theme/BlogLayout';
|
|
16
|
+
import BlogPostItem from '@theme/BlogPostItem';
|
|
17
|
+
import BlogPostPaginator from '@theme/BlogPostPaginator';
|
|
18
18
|
import TOC from '@theme/TOC';
|
|
19
|
-
import
|
|
19
|
+
import type {Props} from '@theme/BlogPostPage';
|
|
20
20
|
|
|
21
21
|
function BlogPostPageMetadata(props: Props): JSX.Element {
|
|
22
22
|
const {content: BlogPostContents} = props;
|
|
@@ -9,9 +9,9 @@ import React from 'react';
|
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import Link from '@docusaurus/Link';
|
|
11
11
|
import {translate} from '@docusaurus/Translate';
|
|
12
|
+
import type {Props} from '@theme/BlogSidebar/Desktop';
|
|
12
13
|
|
|
13
14
|
import styles from './styles.module.css';
|
|
14
|
-
import type {Props} from '@theme/BlogSidebar/Desktop';
|
|
15
15
|
|
|
16
16
|
export default function BlogSidebarDesktop({sidebar}: Props): JSX.Element {
|
|
17
17
|
return (
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
+
import {useWindowSize} from '@docusaurus/theme-common';
|
|
9
10
|
import BlogSidebarDesktop from '@theme/BlogSidebar/Desktop';
|
|
10
11
|
import BlogSidebarMobile from '@theme/BlogSidebar/Mobile';
|
|
11
|
-
import {useWindowSize} from '@docusaurus/theme-common';
|
|
12
12
|
import type {Props} from '@theme/BlogSidebar';
|
|
13
13
|
|
|
14
14
|
export default function BlogSidebar({sidebar}: Props): JSX.Element | null {
|
|
@@ -6,18 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
|
|
10
|
-
import BlogLayout from '@theme/BlogLayout';
|
|
11
|
-
import TagsListByLetter from '@theme/TagsListByLetter';
|
|
12
|
-
import type {Props} from '@theme/BlogTagsListPage';
|
|
9
|
+
import clsx from 'clsx';
|
|
13
10
|
import {
|
|
14
11
|
PageMetadata,
|
|
15
12
|
HtmlClassNameProvider,
|
|
16
13
|
ThemeClassNames,
|
|
17
14
|
translateTagsPageTitle,
|
|
18
15
|
} from '@docusaurus/theme-common';
|
|
16
|
+
import BlogLayout from '@theme/BlogLayout';
|
|
17
|
+
import TagsListByLetter from '@theme/TagsListByLetter';
|
|
18
|
+
import type {Props} from '@theme/BlogTagsListPage';
|
|
19
19
|
import SearchMetadata from '../SearchMetadata';
|
|
20
|
-
import clsx from 'clsx';
|
|
21
20
|
|
|
22
21
|
export default function BlogTagsListPage({tags, sidebar}: Props): JSX.Element {
|
|
23
22
|
const title = translateTagsPageTitle();
|
|
@@ -6,11 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
|
|
10
|
-
import Link from '@docusaurus/Link';
|
|
11
|
-
import BlogLayout from '@theme/BlogLayout';
|
|
12
|
-
import BlogPostItem from '@theme/BlogPostItem';
|
|
13
|
-
import type {Props} from '@theme/BlogTagsPostsPage';
|
|
9
|
+
import clsx from 'clsx';
|
|
14
10
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
15
11
|
import {
|
|
16
12
|
PageMetadata,
|
|
@@ -18,9 +14,12 @@ import {
|
|
|
18
14
|
ThemeClassNames,
|
|
19
15
|
usePluralForm,
|
|
20
16
|
} from '@docusaurus/theme-common';
|
|
17
|
+
import Link from '@docusaurus/Link';
|
|
18
|
+
import BlogLayout from '@theme/BlogLayout';
|
|
19
|
+
import BlogPostItem from '@theme/BlogPostItem';
|
|
21
20
|
import BlogListPaginator from '@theme/BlogListPaginator';
|
|
22
21
|
import SearchMetadata from '@theme/SearchMetadata';
|
|
23
|
-
import
|
|
22
|
+
import type {Props} from '@theme/BlogTagsPostsPage';
|
|
24
23
|
|
|
25
24
|
// Very simple pluralization: probably good enough for now
|
|
26
25
|
function useBlogPostsPlural() {
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import Container from '@theme/CodeBlock/Container';
|
|
10
9
|
import clsx from 'clsx';
|
|
10
|
+
import Container from '@theme/CodeBlock/Container';
|
|
11
11
|
import type {Props} from '@theme/CodeBlock/Content/Element';
|
|
12
12
|
|
|
13
13
|
import styles from './styles.module.css';
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
+
import clsx from 'clsx';
|
|
9
10
|
import {
|
|
10
11
|
useThemeConfig,
|
|
11
12
|
parseCodeBlockTitle,
|
|
@@ -15,7 +16,6 @@ import {
|
|
|
15
16
|
usePrismTheme,
|
|
16
17
|
useCodeWordWrap,
|
|
17
18
|
} from '@docusaurus/theme-common';
|
|
18
|
-
import clsx from 'clsx';
|
|
19
19
|
import Highlight, {defaultProps, type Language} from 'prism-react-renderer';
|
|
20
20
|
import Line from '@theme/CodeBlock/Line';
|
|
21
21
|
import CopyButton from '@theme/CodeBlock/CopyButton';
|
|
@@ -52,7 +52,7 @@ export default function CodeBlockString({
|
|
|
52
52
|
magicComments,
|
|
53
53
|
});
|
|
54
54
|
const showLineNumbers =
|
|
55
|
-
showLineNumbersProp
|
|
55
|
+
showLineNumbersProp ?? containsLineNumbers(metastring);
|
|
56
56
|
|
|
57
57
|
return (
|
|
58
58
|
<Container
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
import React, {isValidElement, type ReactNode} from 'react';
|
|
9
9
|
import useIsBrowser from '@docusaurus/useIsBrowser';
|
|
10
|
-
import type {Props} from '@theme/CodeBlock';
|
|
11
10
|
import ElementContent from '@theme/CodeBlock/Content/Element';
|
|
12
11
|
import StringContent from '@theme/CodeBlock/Content/String';
|
|
12
|
+
import type {Props} from '@theme/CodeBlock';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Best attempt to make the children a plain string so it is copyable. If there
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import
|
|
9
|
+
import clsx from 'clsx';
|
|
10
10
|
import useIsBrowser from '@docusaurus/useIsBrowser';
|
|
11
11
|
import {translate} from '@docusaurus/Translate';
|
|
12
12
|
import IconLightMode from '@theme/IconLightMode';
|
|
13
13
|
import IconDarkMode from '@theme/IconDarkMode';
|
|
14
|
+
import type {Props} from '@theme/ColorModeToggle';
|
|
14
15
|
|
|
15
|
-
import clsx from 'clsx';
|
|
16
16
|
import styles from './styles.module.css';
|
|
17
17
|
|
|
18
18
|
function ColorModeToggle({className, value, onChange}: Props): JSX.Element {
|
|
@@ -9,6 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {Details as DetailsGeneric} from '@docusaurus/theme-common/Details';
|
|
11
11
|
import type {Props} from '@theme/Details';
|
|
12
|
+
|
|
12
13
|
import styles from './styles.module.css';
|
|
13
14
|
|
|
14
15
|
// Should we have a custom details/summary comp in Infima instead of reusing
|
|
@@ -6,18 +6,19 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React, {type ReactNode} from 'react';
|
|
9
|
+
import clsx from 'clsx';
|
|
9
10
|
import {
|
|
10
11
|
ThemeClassNames,
|
|
11
12
|
useSidebarBreadcrumbs,
|
|
12
13
|
useHomePageRoute,
|
|
13
14
|
} from '@docusaurus/theme-common';
|
|
14
|
-
import styles from './styles.module.css';
|
|
15
|
-
import clsx from 'clsx';
|
|
16
15
|
import Link from '@docusaurus/Link';
|
|
17
16
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
18
17
|
import {translate} from '@docusaurus/Translate';
|
|
19
18
|
import IconHome from '@theme/IconHome';
|
|
20
19
|
|
|
20
|
+
import styles from './styles.module.css';
|
|
21
|
+
|
|
21
22
|
// TODO move to design system folder
|
|
22
23
|
function BreadcrumbsItemLink({
|
|
23
24
|
children,
|
|
@@ -6,17 +6,18 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React, {type ReactNode} from 'react';
|
|
9
|
+
import clsx from 'clsx';
|
|
9
10
|
import Link from '@docusaurus/Link';
|
|
11
|
+
import {findFirstCategoryLink, useDocById} from '@docusaurus/theme-common';
|
|
12
|
+
import isInternalUrl from '@docusaurus/isInternalUrl';
|
|
13
|
+
import {translate} from '@docusaurus/Translate';
|
|
14
|
+
import type {Props} from '@theme/DocCard';
|
|
15
|
+
|
|
16
|
+
import styles from './styles.module.css';
|
|
10
17
|
import type {
|
|
11
18
|
PropSidebarItemCategory,
|
|
12
19
|
PropSidebarItemLink,
|
|
13
20
|
} from '@docusaurus/plugin-content-docs';
|
|
14
|
-
import type {Props} from '@theme/DocCard';
|
|
15
|
-
import {findFirstCategoryLink, useDocById} from '@docusaurus/theme-common';
|
|
16
|
-
import clsx from 'clsx';
|
|
17
|
-
import styles from './styles.module.css';
|
|
18
|
-
import isInternalUrl from '@docusaurus/isInternalUrl';
|
|
19
|
-
import {translate} from '@docusaurus/Translate';
|
|
20
21
|
|
|
21
22
|
function CardContainer({
|
|
22
23
|
href,
|
|
@@ -7,11 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
|
|
11
|
-
import DocCard from '@theme/DocCard';
|
|
12
|
-
import type {PropSidebarItem} from '@docusaurus/plugin-content-docs';
|
|
13
10
|
import {findFirstCategoryLink} from '@docusaurus/theme-common';
|
|
11
|
+
import DocCard from '@theme/DocCard';
|
|
14
12
|
import type {Props} from '@theme/DocCardList';
|
|
13
|
+
import type {PropSidebarItem} from '@docusaurus/plugin-content-docs';
|
|
15
14
|
|
|
16
15
|
// Filter categories that don't have a link.
|
|
17
16
|
function filterItems(items: PropSidebarItem[]): PropSidebarItem[] {
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
PageMetadata,
|
|
11
11
|
useCurrentSidebarCategory,
|
|
12
12
|
} from '@docusaurus/theme-common';
|
|
13
|
-
import
|
|
13
|
+
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
14
14
|
import DocCardList from '@theme/DocCardList';
|
|
15
15
|
import DocPaginator from '@theme/DocPaginator';
|
|
16
16
|
import DocVersionBanner from '@theme/DocVersionBanner';
|
|
17
17
|
import DocVersionBadge from '@theme/DocVersionBadge';
|
|
18
18
|
import DocBreadcrumbs from '@theme/DocBreadcrumbs';
|
|
19
19
|
import Heading from '@theme/Heading';
|
|
20
|
-
import
|
|
20
|
+
import type {Props} from '@theme/DocCategoryGeneratedIndexPage';
|
|
21
21
|
|
|
22
22
|
import styles from './styles.module.css';
|
|
23
23
|
|
|
@@ -7,23 +7,24 @@
|
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
+
import {
|
|
11
|
+
PageMetadata,
|
|
12
|
+
HtmlClassNameProvider,
|
|
13
|
+
ThemeClassNames,
|
|
14
|
+
useWindowSize,
|
|
15
|
+
} from '@docusaurus/theme-common';
|
|
10
16
|
import DocPaginator from '@theme/DocPaginator';
|
|
11
17
|
import DocVersionBanner from '@theme/DocVersionBanner';
|
|
12
18
|
import DocVersionBadge from '@theme/DocVersionBadge';
|
|
13
|
-
import type {Props} from '@theme/DocItem';
|
|
14
19
|
import DocItemFooter from '@theme/DocItemFooter';
|
|
15
20
|
import TOC from '@theme/TOC';
|
|
16
21
|
import TOCCollapsible from '@theme/TOCCollapsible';
|
|
17
22
|
import Heading from '@theme/Heading';
|
|
18
|
-
import styles from './styles.module.css';
|
|
19
|
-
import {
|
|
20
|
-
PageMetadata,
|
|
21
|
-
HtmlClassNameProvider,
|
|
22
|
-
ThemeClassNames,
|
|
23
|
-
useWindowSize,
|
|
24
|
-
} from '@docusaurus/theme-common';
|
|
25
23
|
import DocBreadcrumbs from '@theme/DocBreadcrumbs';
|
|
26
24
|
import MDXContent from '@theme/MDXContent';
|
|
25
|
+
import type {Props} from '@theme/DocItem';
|
|
26
|
+
|
|
27
|
+
import styles from './styles.module.css';
|
|
27
28
|
|
|
28
29
|
function DocItemMetadata(props: Props): JSX.Element {
|
|
29
30
|
const {content: DocContent} = props;
|
|
@@ -7,16 +7,15 @@
|
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
|
|
10
|
+
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
11
11
|
import LastUpdated from '@theme/LastUpdated';
|
|
12
|
-
import type {Props} from '@theme/DocItem';
|
|
13
12
|
import EditThisPage from '@theme/EditThisPage';
|
|
14
13
|
import TagsListInline, {
|
|
15
14
|
type Props as TagsListInlineProps,
|
|
16
15
|
} from '@theme/TagsListInline';
|
|
16
|
+
import type {Props} from '@theme/DocItem';
|
|
17
17
|
|
|
18
18
|
import styles from './styles.module.css';
|
|
19
|
-
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
20
19
|
|
|
21
20
|
function TagsRow(props: TagsListInlineProps) {
|
|
22
21
|
return (
|
|
@@ -6,12 +6,11 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
|
|
9
|
+
import clsx from 'clsx';
|
|
10
10
|
import {useDocsSidebar} from '@docusaurus/theme-common';
|
|
11
|
+
import type {Props} from '@theme/DocPage/Layout/Main';
|
|
11
12
|
|
|
12
|
-
import clsx from 'clsx';
|
|
13
13
|
import styles from './styles.module.css';
|
|
14
|
-
import type {Props} from '@theme/DocPage/Layout/Main';
|
|
15
14
|
|
|
16
15
|
export default function DocPageLayoutMain({
|
|
17
16
|
hiddenSidebarContainer,
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import IconArrow from '@theme/IconArrow';
|
|
10
9
|
import {translate} from '@docusaurus/Translate';
|
|
10
|
+
import IconArrow from '@theme/IconArrow';
|
|
11
11
|
import type {Props} from '@theme/DocPage/Layout/Sidebar/ExpandButton';
|
|
12
12
|
|
|
13
13
|
import styles from './styles.module.css';
|
|
@@ -6,15 +6,14 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React, {type ReactNode, useState, useCallback} from 'react';
|
|
9
|
-
import
|
|
9
|
+
import clsx from 'clsx';
|
|
10
|
+
import {ThemeClassNames, useDocsSidebar} from '@docusaurus/theme-common';
|
|
10
11
|
import {useLocation} from '@docusaurus/router';
|
|
11
|
-
import
|
|
12
|
+
import DocSidebar from '@theme/DocSidebar';
|
|
12
13
|
import ExpandButton from '@theme/DocPage/Layout/Sidebar/ExpandButton';
|
|
14
|
+
import type {Props} from '@theme/DocPage/Layout/Sidebar';
|
|
13
15
|
|
|
14
|
-
import
|
|
15
|
-
import styles from './index.module.css';
|
|
16
|
-
|
|
17
|
-
import {ThemeClassNames, useDocsSidebar} from '@docusaurus/theme-common';
|
|
16
|
+
import styles from './styles.module.css';
|
|
18
17
|
|
|
19
18
|
// Reset sidebar state when sidebar changes
|
|
20
19
|
// Use React key to unmount/remount the children
|
|
File without changes
|
|
@@ -6,15 +6,14 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React, {useState} from 'react';
|
|
9
|
+
import {useDocsSidebar} from '@docusaurus/theme-common';
|
|
9
10
|
import Layout from '@theme/Layout';
|
|
10
11
|
import BackToTopButton from '@theme/BackToTopButton';
|
|
11
|
-
import type {Props} from '@theme/DocPage/Layout';
|
|
12
12
|
import DocPageLayoutSidebar from '@theme/DocPage/Layout/Sidebar';
|
|
13
13
|
import DocPageLayoutMain from '@theme/DocPage/Layout/Main';
|
|
14
|
+
import type {Props} from '@theme/DocPage/Layout';
|
|
14
15
|
|
|
15
|
-
import styles from './
|
|
16
|
-
|
|
17
|
-
import {useDocsSidebar} from '@docusaurus/theme-common';
|
|
16
|
+
import styles from './styles.module.css';
|
|
18
17
|
|
|
19
18
|
export default function DocPageLayout({children}: Props): JSX.Element {
|
|
20
19
|
const sidebar = useDocsSidebar();
|
|
File without changes
|
|
@@ -6,12 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import NotFound from '@theme/NotFound';
|
|
10
|
-
import type {Props} from '@theme/DocPage';
|
|
11
|
-
import DocPageLayout from '@theme/DocPage/Layout';
|
|
12
|
-
|
|
13
9
|
import clsx from 'clsx';
|
|
14
|
-
|
|
15
10
|
import {
|
|
16
11
|
HtmlClassNameProvider,
|
|
17
12
|
ThemeClassNames,
|
|
@@ -20,7 +15,10 @@ import {
|
|
|
20
15
|
DocsVersionProvider,
|
|
21
16
|
useDocRouteMetadata,
|
|
22
17
|
} from '@docusaurus/theme-common';
|
|
18
|
+
import DocPageLayout from '@theme/DocPage/Layout';
|
|
19
|
+
import NotFound from '@theme/NotFound';
|
|
23
20
|
import SearchMetadata from '@theme/SearchMetadata';
|
|
21
|
+
import type {Props} from '@theme/DocPage';
|
|
24
22
|
|
|
25
23
|
export default function DocPage(props: Props): JSX.Element {
|
|
26
24
|
const {versionMetadata} = props;
|