@docusaurus/theme-classic 3.6.3 → 3.7.0
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/options.js +7 -4
- package/lib/theme/Admonition/Icon/Danger.d.ts +2 -1
- package/lib/theme/Admonition/Icon/Info.d.ts +2 -1
- package/lib/theme/Admonition/Icon/Note.d.ts +2 -1
- package/lib/theme/Admonition/Icon/Tip.d.ts +2 -1
- package/lib/theme/Admonition/Icon/Warning.d.ts +2 -1
- package/lib/theme/Admonition/Layout/index.d.ts +2 -1
- package/lib/theme/Admonition/Type/Caution.d.ts +2 -1
- package/lib/theme/Admonition/Type/Danger.d.ts +2 -1
- package/lib/theme/Admonition/Type/Info.d.ts +2 -1
- package/lib/theme/Admonition/Type/Note.d.ts +2 -1
- package/lib/theme/Admonition/Type/Tip.d.ts +2 -1
- package/lib/theme/Admonition/Type/Warning.d.ts +2 -1
- package/lib/theme/Admonition/index.d.ts +2 -1
- package/lib/theme/AnnouncementBar/CloseButton/index.d.ts +2 -1
- package/lib/theme/AnnouncementBar/Content/index.d.ts +2 -1
- package/lib/theme/AnnouncementBar/index.d.ts +2 -1
- package/lib/theme/BackToTopButton/index.d.ts +2 -1
- package/lib/theme/Blog/Components/Author/Socials/index.d.ts +2 -1
- package/lib/theme/Blog/Components/Author/Socials/index.js +12 -0
- package/lib/theme/Blog/Components/Author/index.d.ts +2 -1
- package/lib/theme/Blog/Pages/BlogAuthorsPostsPage/index.d.ts +2 -1
- package/lib/theme/BlogArchivePage/index.d.ts +2 -1
- package/lib/theme/BlogLayout/index.d.ts +2 -1
- package/lib/theme/BlogListPage/StructuredData/index.d.ts +2 -1
- package/lib/theme/BlogListPage/index.d.ts +2 -1
- package/lib/theme/BlogListPaginator/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Container/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Content/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Footer/ReadMoreLink/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Footer/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Header/Authors/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Header/Info/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Header/Title/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/Header/index.d.ts +2 -1
- package/lib/theme/BlogPostItem/index.d.ts +2 -1
- package/lib/theme/BlogPostItems/index.d.ts +2 -1
- package/lib/theme/BlogPostPage/Metadata/index.d.ts +2 -1
- package/lib/theme/BlogPostPage/StructuredData/index.d.ts +2 -1
- package/lib/theme/BlogPostPage/index.d.ts +2 -1
- package/lib/theme/BlogPostPaginator/index.d.ts +2 -1
- package/lib/theme/BlogSidebar/Mobile/index.d.ts +2 -2
- package/lib/theme/BlogSidebar/index.d.ts +2 -1
- package/lib/theme/BlogTagsListPage/index.d.ts +2 -1
- package/lib/theme/BlogTagsPostsPage/index.d.ts +2 -1
- package/lib/theme/CodeBlock/Container/index.d.ts +2 -2
- package/lib/theme/CodeBlock/Content/Element.d.ts +2 -1
- package/lib/theme/CodeBlock/Content/String.d.ts +2 -1
- package/lib/theme/CodeBlock/CopyButton/index.d.ts +2 -1
- package/lib/theme/CodeBlock/Line/index.d.ts +2 -1
- package/lib/theme/CodeBlock/WordWrapButton/index.d.ts +2 -1
- package/lib/theme/CodeBlock/index.d.ts +2 -1
- package/lib/theme/CodeInline/index.d.ts +2 -1
- package/lib/theme/ColorModeToggle/index.d.ts +2 -2
- package/lib/theme/ContentVisibility/Draft/index.d.ts +2 -1
- package/lib/theme/ContentVisibility/Unlisted/index.d.ts +2 -1
- package/lib/theme/ContentVisibility/index.d.ts +2 -1
- package/lib/theme/Details/index.d.ts +2 -1
- package/lib/theme/DocBreadcrumbs/Items/Home/index.d.ts +2 -1
- package/lib/theme/DocBreadcrumbs/index.d.ts +2 -1
- package/lib/theme/DocCard/index.d.ts +2 -1
- package/lib/theme/DocCardList/index.d.ts +2 -1
- package/lib/theme/DocCategoryGeneratedIndexPage/index.d.ts +2 -1
- package/lib/theme/DocItem/Content/index.d.ts +2 -1
- package/lib/theme/DocItem/Footer/index.d.ts +2 -1
- package/lib/theme/DocItem/Layout/index.d.ts +2 -1
- package/lib/theme/DocItem/Metadata/index.d.ts +2 -1
- package/lib/theme/DocItem/Paginator/index.d.ts +2 -1
- package/lib/theme/DocItem/TOC/Desktop/index.d.ts +2 -1
- package/lib/theme/DocItem/TOC/Mobile/index.d.ts +2 -1
- package/lib/theme/DocItem/index.d.ts +2 -1
- package/lib/theme/DocPaginator/index.d.ts +2 -1
- package/lib/theme/DocRoot/Layout/Main/index.d.ts +2 -1
- package/lib/theme/DocRoot/Layout/Sidebar/ExpandButton/index.d.ts +2 -1
- package/lib/theme/DocRoot/Layout/Sidebar/index.d.ts +2 -1
- package/lib/theme/DocRoot/Layout/index.d.ts +2 -1
- package/lib/theme/DocRoot/index.d.ts +2 -1
- package/lib/theme/DocSidebar/Desktop/CollapseButton/index.d.ts +2 -1
- package/lib/theme/DocSidebar/Desktop/Content/index.d.ts +2 -1
- package/lib/theme/DocSidebar/index.d.ts +2 -1
- package/lib/theme/DocSidebarItem/Category/index.d.ts +2 -1
- package/lib/theme/DocSidebarItem/Html/index.d.ts +2 -1
- package/lib/theme/DocSidebarItem/Link/index.d.ts +2 -1
- package/lib/theme/DocSidebarItem/index.d.ts +2 -1
- package/lib/theme/DocSidebarItems/index.d.ts +2 -2
- package/lib/theme/DocTagDocListPage/index.d.ts +2 -1
- package/lib/theme/DocTagsListPage/index.d.ts +2 -1
- package/lib/theme/DocVersionBadge/index.d.ts +2 -1
- package/lib/theme/DocVersionBanner/index.d.ts +2 -1
- package/lib/theme/DocVersionRoot/index.d.ts +2 -1
- package/lib/theme/DocsRoot/index.d.ts +2 -1
- package/lib/theme/EditMetaRow/index.d.ts +8 -1
- package/lib/theme/EditThisPage/index.d.ts +2 -1
- package/lib/theme/ErrorPageContent.d.ts +2 -1
- package/lib/theme/Footer/Copyright/index.d.ts +2 -1
- package/lib/theme/Footer/Layout/index.d.ts +2 -1
- package/lib/theme/Footer/LinkItem/index.d.ts +2 -1
- package/lib/theme/Footer/LinkItem/index.js +3 -2
- package/lib/theme/Footer/Links/MultiColumn/index.d.ts +2 -1
- package/lib/theme/Footer/Links/MultiColumn/index.js +3 -2
- package/lib/theme/Footer/Links/Simple/index.d.ts +2 -1
- package/lib/theme/Footer/Links/Simple/index.js +2 -1
- package/lib/theme/Footer/Links/index.d.ts +2 -1
- package/lib/theme/Footer/Logo/index.d.ts +2 -1
- package/lib/theme/Footer/index.d.ts +2 -2
- package/lib/theme/Heading/index.d.ts +2 -1
- package/lib/theme/Icon/Arrow/index.d.ts +2 -1
- package/lib/theme/Icon/Close/index.d.ts +2 -1
- package/lib/theme/Icon/Copy/index.d.ts +2 -1
- package/lib/theme/Icon/DarkMode/index.d.ts +2 -1
- package/lib/theme/Icon/Edit/index.d.ts +2 -1
- package/lib/theme/Icon/ExternalLink/index.d.ts +2 -1
- package/lib/theme/Icon/Home/index.d.ts +2 -1
- package/lib/theme/Icon/Language/index.d.ts +2 -1
- package/lib/theme/Icon/LightMode/index.d.ts +2 -1
- package/lib/theme/Icon/Menu/index.d.ts +2 -1
- package/lib/theme/Icon/Socials/Bluesky/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/Bluesky/index.js +24 -0
- package/lib/theme/Icon/Socials/Default/index.d.ts +2 -2
- package/lib/theme/Icon/Socials/GitHub/index.d.ts +2 -2
- package/lib/theme/Icon/Socials/GitHub/index.js +5 -5
- package/lib/theme/Icon/Socials/Instagram/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/Instagram/index.js +19 -0
- package/lib/theme/Icon/Socials/Instagram/styles.module.css +14 -0
- package/lib/theme/Icon/Socials/LinkedIn/index.d.ts +2 -2
- package/lib/theme/Icon/Socials/LinkedIn/index.js +1 -1
- package/lib/theme/Icon/Socials/Mastodon/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/Mastodon/index.js +42 -0
- package/lib/theme/Icon/Socials/StackOverflow/index.d.ts +2 -2
- package/lib/theme/Icon/Socials/Threads/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/Threads/index.js +26 -0
- package/lib/theme/Icon/Socials/Threads/styles.module.css +14 -0
- package/lib/theme/Icon/Socials/Twitch/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/Twitch/index.js +29 -0
- package/lib/theme/Icon/Socials/Twitter/index.d.ts +2 -2
- package/lib/theme/Icon/Socials/Twitter/index.js +1 -1
- package/lib/theme/Icon/Socials/X/index.d.ts +2 -2
- package/lib/theme/Icon/Socials/X/index.js +2 -2
- package/lib/theme/Icon/Socials/YouTube/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/YouTube/index.js +19 -0
- package/lib/theme/Icon/Success/index.d.ts +2 -1
- package/lib/theme/Icon/WordWrap/index.d.ts +2 -1
- package/lib/theme/LastUpdated/index.d.ts +2 -1
- package/lib/theme/Layout/Provider/index.d.ts +2 -1
- package/lib/theme/Layout/index.d.ts +2 -1
- package/lib/theme/Logo/index.d.ts +2 -1
- package/lib/theme/MDXComponents/A.d.ts +2 -1
- package/lib/theme/MDXComponents/Code.d.ts +2 -1
- package/lib/theme/MDXComponents/Details.d.ts +2 -1
- package/lib/theme/MDXComponents/Heading.d.ts +2 -1
- package/lib/theme/MDXComponents/Img/index.d.ts +2 -1
- package/lib/theme/MDXComponents/Ul/index.d.ts +2 -1
- package/lib/theme/MDXContent/index.d.ts +2 -1
- package/lib/theme/MDXPage/index.d.ts +2 -1
- package/lib/theme/Navbar/ColorModeToggle/index.d.ts +2 -1
- package/lib/theme/Navbar/Content/index.d.ts +2 -1
- package/lib/theme/Navbar/Layout/index.d.ts +2 -1
- package/lib/theme/Navbar/Logo/index.d.ts +2 -1
- package/lib/theme/Navbar/MobileSidebar/Header/index.d.ts +2 -1
- package/lib/theme/Navbar/MobileSidebar/Layout/index.d.ts +2 -1
- package/lib/theme/Navbar/MobileSidebar/PrimaryMenu/index.d.ts +2 -1
- package/lib/theme/Navbar/MobileSidebar/SecondaryMenu/index.d.ts +2 -1
- package/lib/theme/Navbar/MobileSidebar/Toggle/index.d.ts +2 -1
- package/lib/theme/Navbar/MobileSidebar/index.d.ts +2 -1
- package/lib/theme/Navbar/Search/index.d.ts +2 -1
- package/lib/theme/Navbar/index.d.ts +2 -1
- package/lib/theme/NavbarItem/DefaultNavbarItem.d.ts +2 -1
- package/lib/theme/NavbarItem/DocNavbarItem.d.ts +2 -1
- package/lib/theme/NavbarItem/DocSidebarNavbarItem.d.ts +2 -1
- package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.d.ts +2 -1
- package/lib/theme/NavbarItem/DocsVersionNavbarItem.d.ts +2 -1
- package/lib/theme/NavbarItem/DropdownNavbarItem/index.d.ts +2 -1
- package/lib/theme/NavbarItem/HtmlNavbarItem.d.ts +2 -1
- package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/index.d.ts +2 -1
- package/lib/theme/NavbarItem/NavbarNavLink.d.ts +2 -1
- package/lib/theme/NavbarItem/SearchNavbarItem.d.ts +2 -1
- package/lib/theme/NavbarItem/index.d.ts +2 -1
- package/lib/theme/NotFound/Content/index.d.ts +2 -1
- package/lib/theme/NotFound/index.d.ts +2 -1
- package/lib/theme/PaginatorNavLink/index.d.ts +2 -1
- package/lib/theme/SearchMetadata/index.d.ts +2 -1
- package/lib/theme/SiteMetadata/index.d.ts +2 -1
- package/lib/theme/SkipToContent/index.d.ts +2 -1
- package/lib/theme/TOC/index.d.ts +2 -1
- package/lib/theme/TOCCollapsible/CollapseButton/index.d.ts +2 -1
- package/lib/theme/TOCCollapsible/index.d.ts +2 -1
- package/lib/theme/TOCInline/index.d.ts +2 -1
- package/lib/theme/TOCItems/Tree.d.ts +2 -2
- package/lib/theme/TOCItems/index.d.ts +2 -1
- package/lib/theme/TabItem/index.d.ts +2 -1
- package/lib/theme/Tabs/index.d.ts +2 -1
- package/lib/theme/Tabs/index.js +3 -1
- package/lib/theme/Tag/index.d.ts +2 -1
- package/lib/theme/TagsListByLetter/index.d.ts +2 -1
- package/lib/theme/TagsListInline/index.d.ts +2 -1
- package/lib/theme/ThemedImage/index.d.ts +2 -1
- package/package.json +17 -17
- package/src/options.ts +8 -6
- package/src/theme/Admonition/Icon/Danger.tsx +2 -2
- package/src/theme/Admonition/Icon/Info.tsx +2 -2
- package/src/theme/Admonition/Icon/Note.tsx +2 -2
- package/src/theme/Admonition/Icon/Tip.tsx +2 -2
- package/src/theme/Admonition/Icon/Warning.tsx +2 -2
- package/src/theme/Admonition/Layout/index.tsx +1 -1
- package/src/theme/Admonition/Type/Caution.tsx +2 -2
- package/src/theme/Admonition/Type/Danger.tsx +2 -2
- package/src/theme/Admonition/Type/Info.tsx +2 -2
- package/src/theme/Admonition/Type/Note.tsx +2 -2
- package/src/theme/Admonition/Type/Tip.tsx +2 -2
- package/src/theme/Admonition/Type/Warning.tsx +2 -2
- package/src/theme/Admonition/index.tsx +2 -2
- package/src/theme/AnnouncementBar/CloseButton/index.tsx +2 -4
- package/src/theme/AnnouncementBar/Content/index.tsx +2 -4
- package/src/theme/AnnouncementBar/index.tsx +2 -2
- package/src/theme/BackToTopButton/index.tsx +2 -2
- package/src/theme/Blog/Components/Author/Socials/index.tsx +14 -2
- package/src/theme/Blog/Components/Author/index.tsx +3 -3
- package/src/theme/Blog/Pages/BlogAuthorsPostsPage/index.tsx +4 -4
- package/src/theme/BlogArchivePage/index.tsx +2 -2
- package/src/theme/BlogLayout/index.tsx +2 -2
- package/src/theme/BlogListPage/StructuredData/index.tsx +2 -2
- package/src/theme/BlogListPage/index.tsx +4 -4
- package/src/theme/BlogListPaginator/index.tsx +2 -2
- package/src/theme/BlogPostItem/Container/index.tsx +2 -2
- package/src/theme/BlogPostItem/Content/index.tsx +2 -2
- package/src/theme/BlogPostItem/Footer/ReadMoreLink/index.tsx +2 -2
- package/src/theme/BlogPostItem/Footer/index.tsx +2 -2
- package/src/theme/BlogPostItem/Header/Authors/index.tsx +2 -2
- package/src/theme/BlogPostItem/Header/Info/index.tsx +2 -4
- package/src/theme/BlogPostItem/Header/Title/index.tsx +2 -4
- package/src/theme/BlogPostItem/Header/index.tsx +2 -2
- package/src/theme/BlogPostItem/index.tsx +2 -5
- package/src/theme/BlogPostItems/index.tsx +2 -2
- package/src/theme/BlogPostPage/Metadata/index.tsx +2 -2
- package/src/theme/BlogPostPage/StructuredData/index.tsx +2 -2
- package/src/theme/BlogPostPage/index.tsx +2 -2
- package/src/theme/BlogPostPaginator/index.tsx +2 -2
- package/src/theme/BlogSidebar/Mobile/index.tsx +3 -3
- package/src/theme/BlogSidebar/index.tsx +2 -2
- package/src/theme/BlogTagsListPage/index.tsx +2 -2
- package/src/theme/BlogTagsPostsPage/index.tsx +4 -4
- package/src/theme/CodeBlock/Container/index.tsx +2 -2
- package/src/theme/CodeBlock/Content/Element.tsx +2 -5
- package/src/theme/CodeBlock/Content/String.tsx +2 -2
- package/src/theme/CodeBlock/CopyButton/index.tsx +8 -2
- package/src/theme/CodeBlock/Line/index.tsx +2 -2
- package/src/theme/CodeBlock/WordWrapButton/index.tsx +2 -2
- package/src/theme/CodeBlock/index.tsx +1 -1
- package/src/theme/CodeInline/index.tsx +2 -2
- package/src/theme/ColorModeToggle/index.tsx +2 -2
- package/src/theme/ContentVisibility/Draft/index.tsx +2 -2
- package/src/theme/ContentVisibility/Unlisted/index.tsx +2 -2
- package/src/theme/ContentVisibility/index.tsx +2 -4
- package/src/theme/Details/index.tsx +2 -2
- package/src/theme/DocBreadcrumbs/Items/Home/index.tsx +2 -2
- package/src/theme/DocBreadcrumbs/index.tsx +3 -3
- package/src/theme/DocCard/index.tsx +5 -9
- package/src/theme/DocCardList/index.tsx +2 -2
- package/src/theme/DocCategoryGeneratedIndexPage/index.tsx +4 -6
- package/src/theme/DocItem/Content/index.tsx +2 -2
- package/src/theme/DocItem/Footer/index.tsx +2 -2
- package/src/theme/DocItem/Layout/index.tsx +2 -2
- package/src/theme/DocItem/Metadata/index.tsx +2 -2
- package/src/theme/DocItem/Paginator/index.tsx +2 -2
- package/src/theme/DocItem/TOC/Desktop/index.tsx +2 -2
- package/src/theme/DocItem/TOC/Mobile/index.tsx +2 -2
- package/src/theme/DocItem/index.tsx +2 -2
- package/src/theme/DocPaginator/index.tsx +2 -2
- package/src/theme/DocRoot/Layout/Main/index.tsx +2 -2
- package/src/theme/DocRoot/Layout/Sidebar/ExpandButton/index.tsx +2 -2
- package/src/theme/DocRoot/Layout/Sidebar/index.tsx +1 -1
- package/src/theme/DocRoot/Layout/index.tsx +2 -2
- package/src/theme/DocRoot/index.tsx +2 -2
- package/src/theme/DocSidebar/Desktop/CollapseButton/index.tsx +2 -2
- package/src/theme/DocSidebar/Desktop/Content/index.tsx +2 -2
- package/src/theme/DocSidebar/index.tsx +2 -2
- package/src/theme/DocSidebarItem/Category/index.tsx +7 -2
- package/src/theme/DocSidebarItem/Html/index.tsx +2 -2
- package/src/theme/DocSidebarItem/Link/index.tsx +2 -2
- package/src/theme/DocSidebarItem/index.tsx +2 -5
- package/src/theme/DocSidebarItems/index.tsx +2 -2
- package/src/theme/DocTagDocListPage/index.tsx +5 -5
- package/src/theme/DocTagsListPage/index.tsx +4 -6
- package/src/theme/DocVersionBadge/index.tsx +2 -4
- package/src/theme/DocVersionBanner/index.tsx +3 -5
- package/src/theme/DocVersionRoot/index.tsx +4 -4
- package/src/theme/DocsRoot/index.tsx +2 -2
- package/src/theme/EditMetaRow/index.tsx +2 -2
- package/src/theme/EditThisPage/index.tsx +2 -2
- package/src/theme/ErrorPageContent.tsx +2 -5
- package/src/theme/Footer/Copyright/index.tsx +2 -2
- package/src/theme/Footer/Layout/index.tsx +2 -2
- package/src/theme/Footer/LinkItem/index.tsx +5 -5
- package/src/theme/Footer/Links/MultiColumn/index.tsx +5 -4
- package/src/theme/Footer/Links/Simple/index.tsx +4 -3
- package/src/theme/Footer/Links/index.tsx +2 -2
- package/src/theme/Footer/Logo/index.tsx +2 -2
- package/src/theme/Footer/index.tsx +2 -2
- package/src/theme/Heading/index.tsx +2 -2
- package/src/theme/Icon/Arrow/index.tsx +2 -2
- package/src/theme/Icon/Close/index.tsx +2 -2
- package/src/theme/Icon/Copy/index.tsx +2 -2
- package/src/theme/Icon/DarkMode/index.tsx +2 -2
- package/src/theme/Icon/Edit/index.tsx +2 -5
- package/src/theme/Icon/ExternalLink/index.tsx +2 -2
- package/src/theme/Icon/Home/index.tsx +2 -2
- package/src/theme/Icon/Language/index.tsx +2 -2
- package/src/theme/Icon/LightMode/index.tsx +2 -2
- package/src/theme/Icon/Menu/index.tsx +2 -2
- package/src/theme/Icon/Socials/Bluesky/index.tsx +27 -0
- package/src/theme/Icon/Socials/Default/index.tsx +2 -2
- package/src/theme/Icon/Socials/GitHub/index.tsx +7 -7
- package/src/theme/Icon/Socials/Instagram/index.tsx +28 -0
- package/src/theme/Icon/Socials/Instagram/styles.module.css +14 -0
- package/src/theme/Icon/Socials/LinkedIn/index.tsx +3 -3
- package/src/theme/Icon/Socials/Mastodon/index.tsx +45 -0
- package/src/theme/Icon/Socials/StackOverflow/index.tsx +2 -2
- package/src/theme/Icon/Socials/Threads/index.tsx +30 -0
- package/src/theme/Icon/Socials/Threads/styles.module.css +14 -0
- package/src/theme/Icon/Socials/Twitch/index.tsx +37 -0
- package/src/theme/Icon/Socials/Twitter/index.tsx +3 -3
- package/src/theme/Icon/Socials/X/index.tsx +4 -4
- package/src/theme/Icon/Socials/YouTube/index.tsx +27 -0
- package/src/theme/Icon/Success/index.tsx +2 -2
- package/src/theme/Icon/WordWrap/index.tsx +2 -2
- package/src/theme/LastUpdated/index.tsx +4 -4
- package/src/theme/Layout/Provider/index.tsx +2 -2
- package/src/theme/Layout/index.tsx +2 -2
- package/src/theme/Logo/index.tsx +2 -2
- package/src/theme/MDXComponents/A.tsx +2 -2
- package/src/theme/MDXComponents/Code.tsx +2 -2
- package/src/theme/MDXComponents/Details.tsx +6 -2
- package/src/theme/MDXComponents/Heading.tsx +2 -2
- package/src/theme/MDXComponents/Img/index.tsx +2 -2
- package/src/theme/MDXComponents/Ul/index.tsx +2 -2
- package/src/theme/MDXContent/index.tsx +2 -2
- package/src/theme/MDXPage/index.tsx +2 -2
- package/src/theme/Navbar/ColorModeToggle/index.tsx +2 -4
- package/src/theme/Navbar/Content/index.tsx +2 -2
- package/src/theme/Navbar/Layout/index.tsx +2 -2
- package/src/theme/Navbar/Logo/index.tsx +2 -2
- package/src/theme/Navbar/MobileSidebar/Header/index.tsx +2 -2
- package/src/theme/Navbar/MobileSidebar/Layout/index.tsx +2 -2
- package/src/theme/Navbar/MobileSidebar/PrimaryMenu/index.tsx +2 -2
- package/src/theme/Navbar/MobileSidebar/SecondaryMenu/index.tsx +2 -2
- package/src/theme/Navbar/MobileSidebar/Toggle/index.tsx +2 -2
- package/src/theme/Navbar/MobileSidebar/index.tsx +2 -2
- package/src/theme/Navbar/Search/index.tsx +2 -5
- package/src/theme/Navbar/index.tsx +2 -2
- package/src/theme/NavbarItem/DefaultNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/DocNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/DocSidebarNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/DocsVersionNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/DropdownNavbarItem/index.tsx +2 -2
- package/src/theme/NavbarItem/HtmlNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx +2 -2
- package/src/theme/NavbarItem/NavbarNavLink.tsx +2 -2
- package/src/theme/NavbarItem/SearchNavbarItem.tsx +2 -2
- package/src/theme/NavbarItem/index.tsx +2 -2
- package/src/theme/NotFound/Content/index.tsx +2 -2
- package/src/theme/NotFound/index.tsx +2 -2
- package/src/theme/PaginatorNavLink/index.tsx +2 -2
- package/src/theme/SearchMetadata/index.tsx +2 -2
- package/src/theme/SiteMetadata/index.tsx +3 -3
- package/src/theme/SkipToContent/index.tsx +2 -2
- package/src/theme/TOC/index.tsx +2 -2
- package/src/theme/TOCCollapsible/CollapseButton/index.tsx +2 -2
- package/src/theme/TOCCollapsible/index.tsx +2 -2
- package/src/theme/TOCInline/index.tsx +2 -2
- package/src/theme/TOCItems/Tree.tsx +2 -2
- package/src/theme/TOCItems/index.tsx +2 -2
- package/src/theme/TabItem/index.tsx +2 -2
- package/src/theme/Tabs/index.tsx +6 -4
- package/src/theme/Tag/index.tsx +2 -2
- package/src/theme/TagsListByLetter/index.tsx +2 -2
- package/src/theme/TagsListInline/index.tsx +2 -2
- package/src/theme/ThemedImage/index.tsx +2 -2
- package/src/theme-classic.d.ts +406 -214
|
@@ -5,15 +5,13 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {useColorMode, useThemeConfig} from '@docusaurus/theme-common';
|
|
10
10
|
import ColorModeToggle from '@theme/ColorModeToggle';
|
|
11
11
|
import type {Props} from '@theme/Navbar/ColorModeToggle';
|
|
12
12
|
import styles from './styles.module.css';
|
|
13
13
|
|
|
14
|
-
export default function NavbarColorModeToggle({
|
|
15
|
-
className,
|
|
16
|
-
}: Props): JSX.Element | null {
|
|
14
|
+
export default function NavbarColorModeToggle({className}: Props): ReactNode {
|
|
17
15
|
const navbarStyle = useThemeConfig().navbar.style;
|
|
18
16
|
const disabled = useThemeConfig().colorMode.disableSwitch;
|
|
19
17
|
const {colorMode, setColorMode} = useColorMode();
|
|
@@ -25,7 +25,7 @@ function useNavbarItems() {
|
|
|
25
25
|
return useThemeConfig().navbar.items as NavbarItemConfig[];
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
function NavbarItems({items}: {items: NavbarItemConfig[]}):
|
|
28
|
+
function NavbarItems({items}: {items: NavbarItemConfig[]}): ReactNode {
|
|
29
29
|
return (
|
|
30
30
|
<>
|
|
31
31
|
{items.map((item, i) => (
|
|
@@ -61,7 +61,7 @@ function NavbarContentLayout({
|
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
export default function NavbarContent():
|
|
64
|
+
export default function NavbarContent(): ReactNode {
|
|
65
65
|
const mobileSidebar = useNavbarMobileSidebar();
|
|
66
66
|
|
|
67
67
|
const items = useNavbarItems();
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {type ComponentProps} from 'react';
|
|
8
|
+
import React, {type ComponentProps, type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {useThemeConfig} from '@docusaurus/theme-common';
|
|
11
11
|
import {
|
|
@@ -28,7 +28,7 @@ function NavbarBackdrop(props: ComponentProps<'div'>) {
|
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export default function NavbarLayout({children}: Props):
|
|
31
|
+
export default function NavbarLayout({children}: Props): ReactNode {
|
|
32
32
|
const {
|
|
33
33
|
navbar: {hideOnScroll, style},
|
|
34
34
|
} = useThemeConfig();
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import Logo from '@theme/Logo';
|
|
10
10
|
|
|
11
|
-
export default function NavbarLogo():
|
|
11
|
+
export default function NavbarLogo(): ReactNode {
|
|
12
12
|
return (
|
|
13
13
|
<Logo
|
|
14
14
|
className="navbar__brand"
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {useNavbarMobileSidebar} from '@docusaurus/theme-common/internal';
|
|
10
10
|
import {translate} from '@docusaurus/Translate';
|
|
11
11
|
import NavbarColorModeToggle from '@theme/Navbar/ColorModeToggle';
|
|
@@ -29,7 +29,7 @@ function CloseButton() {
|
|
|
29
29
|
);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export default function NavbarMobileSidebarHeader():
|
|
32
|
+
export default function NavbarMobileSidebarHeader(): ReactNode {
|
|
33
33
|
return (
|
|
34
34
|
<div className="navbar-sidebar__brand">
|
|
35
35
|
<NavbarLogo />
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {useNavbarSecondaryMenu} from '@docusaurus/theme-common/internal';
|
|
11
11
|
import type {Props} from '@theme/Navbar/MobileSidebar/Layout';
|
|
@@ -14,7 +14,7 @@ export default function NavbarMobileSidebarLayout({
|
|
|
14
14
|
header,
|
|
15
15
|
primaryMenu,
|
|
16
16
|
secondaryMenu,
|
|
17
|
-
}: Props):
|
|
17
|
+
}: Props): ReactNode {
|
|
18
18
|
const {shown: secondaryMenuShown} = useNavbarSecondaryMenu();
|
|
19
19
|
return (
|
|
20
20
|
<div className="navbar-sidebar">
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {useThemeConfig} from '@docusaurus/theme-common';
|
|
10
10
|
import {useNavbarMobileSidebar} from '@docusaurus/theme-common/internal';
|
|
11
11
|
import NavbarItem, {type Props as NavbarItemConfig} from '@theme/NavbarItem';
|
|
@@ -16,7 +16,7 @@ function useNavbarItems() {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
// The primary menu displays the navbar items
|
|
19
|
-
export default function NavbarMobilePrimaryMenu():
|
|
19
|
+
export default function NavbarMobilePrimaryMenu(): ReactNode {
|
|
20
20
|
const mobileSidebar = useNavbarMobileSidebar();
|
|
21
21
|
|
|
22
22
|
// TODO how can the order be defined for mobile?
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {type ComponentProps} from 'react';
|
|
8
|
+
import React, {type ComponentProps, type ReactNode} from 'react';
|
|
9
9
|
import {useThemeConfig} from '@docusaurus/theme-common';
|
|
10
10
|
import {useNavbarSecondaryMenu} from '@docusaurus/theme-common/internal';
|
|
11
11
|
import Translate from '@docusaurus/Translate';
|
|
@@ -24,7 +24,7 @@ function SecondaryMenuBackButton(props: ComponentProps<'button'>) {
|
|
|
24
24
|
|
|
25
25
|
// The secondary menu slides from the right and shows contextual information
|
|
26
26
|
// such as the docs sidebar
|
|
27
|
-
export default function NavbarMobileSidebarSecondaryMenu():
|
|
27
|
+
export default function NavbarMobileSidebarSecondaryMenu(): ReactNode {
|
|
28
28
|
const isPrimaryMenuEmpty = useThemeConfig().navbar.items.length === 0;
|
|
29
29
|
const secondaryMenu = useNavbarSecondaryMenu();
|
|
30
30
|
return (
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {useNavbarMobileSidebar} from '@docusaurus/theme-common/internal';
|
|
10
10
|
import {translate} from '@docusaurus/Translate';
|
|
11
11
|
import IconMenu from '@theme/Icon/Menu';
|
|
12
12
|
|
|
13
|
-
export default function MobileSidebarToggle():
|
|
13
|
+
export default function MobileSidebarToggle(): ReactNode {
|
|
14
14
|
const {toggle, shown} = useNavbarMobileSidebar();
|
|
15
15
|
return (
|
|
16
16
|
<button
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {
|
|
10
10
|
useLockBodyScroll,
|
|
11
11
|
useNavbarMobileSidebar,
|
|
@@ -15,7 +15,7 @@ import NavbarMobileSidebarHeader from '@theme/Navbar/MobileSidebar/Header';
|
|
|
15
15
|
import NavbarMobileSidebarPrimaryMenu from '@theme/Navbar/MobileSidebar/PrimaryMenu';
|
|
16
16
|
import NavbarMobileSidebarSecondaryMenu from '@theme/Navbar/MobileSidebar/SecondaryMenu';
|
|
17
17
|
|
|
18
|
-
export default function NavbarMobileSidebar():
|
|
18
|
+
export default function NavbarMobileSidebar(): ReactNode {
|
|
19
19
|
const mobileSidebar = useNavbarMobileSidebar();
|
|
20
20
|
useLockBodyScroll(mobileSidebar.shown);
|
|
21
21
|
|
|
@@ -5,16 +5,13 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import type {Props} from '@theme/Navbar/Search';
|
|
11
11
|
|
|
12
12
|
import styles from './styles.module.css';
|
|
13
13
|
|
|
14
|
-
export default function NavbarSearch({
|
|
15
|
-
children,
|
|
16
|
-
className,
|
|
17
|
-
}: Props): JSX.Element {
|
|
14
|
+
export default function NavbarSearch({children, className}: Props): ReactNode {
|
|
18
15
|
return (
|
|
19
16
|
<div className={clsx(className, styles.navbarSearchContainer)}>
|
|
20
17
|
{children}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import NavbarLayout from '@theme/Navbar/Layout';
|
|
10
10
|
import NavbarContent from '@theme/Navbar/Content';
|
|
11
11
|
|
|
12
|
-
export default function Navbar():
|
|
12
|
+
export default function Navbar(): ReactNode {
|
|
13
13
|
return (
|
|
14
14
|
<NavbarLayout>
|
|
15
15
|
<NavbarContent />
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import NavbarNavLink from '@theme/NavbarItem/NavbarNavLink';
|
|
11
11
|
import type {
|
|
@@ -52,7 +52,7 @@ export default function DefaultNavbarItem({
|
|
|
52
52
|
mobile = false,
|
|
53
53
|
position, // Need to destructure position from props so that it doesn't get passed on.
|
|
54
54
|
...props
|
|
55
|
-
}: Props):
|
|
55
|
+
}: Props): ReactNode {
|
|
56
56
|
const Comp = mobile ? DefaultNavbarItemMobile : DefaultNavbarItemDesktop;
|
|
57
57
|
return (
|
|
58
58
|
<Comp
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {
|
|
10
10
|
useActiveDocContext,
|
|
11
11
|
useLayoutDoc,
|
|
@@ -18,7 +18,7 @@ export default function DocNavbarItem({
|
|
|
18
18
|
label: staticLabel,
|
|
19
19
|
docsPluginId,
|
|
20
20
|
...props
|
|
21
|
-
}: Props):
|
|
21
|
+
}: Props): ReactNode {
|
|
22
22
|
const {activeDoc} = useActiveDocContext(docsPluginId);
|
|
23
23
|
const doc = useLayoutDoc(docId, docsPluginId);
|
|
24
24
|
const pageActive = activeDoc?.path === doc?.path;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {
|
|
10
10
|
useActiveDocContext,
|
|
11
11
|
useLayoutDocsSidebar,
|
|
@@ -18,7 +18,7 @@ export default function DocSidebarNavbarItem({
|
|
|
18
18
|
label,
|
|
19
19
|
docsPluginId,
|
|
20
20
|
...props
|
|
21
|
-
}: Props):
|
|
21
|
+
}: Props): ReactNode {
|
|
22
22
|
const {activeDoc} = useActiveDocContext(docsPluginId);
|
|
23
23
|
const sidebarLink = useLayoutDocsSidebar(sidebarId, docsPluginId).link;
|
|
24
24
|
if (!sidebarLink) {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {
|
|
10
10
|
useVersions,
|
|
11
11
|
useActiveDocContext,
|
|
@@ -47,7 +47,7 @@ export default function DocsVersionDropdownNavbarItem({
|
|
|
47
47
|
dropdownItemsBefore,
|
|
48
48
|
dropdownItemsAfter,
|
|
49
49
|
...props
|
|
50
|
-
}: Props):
|
|
50
|
+
}: Props): ReactNode {
|
|
51
51
|
const {search, hash} = useLocation();
|
|
52
52
|
const activeDocContext = useActiveDocContext(docsPluginId);
|
|
53
53
|
const versions = useVersions(docsPluginId);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {useDocsVersionCandidates} from '@docusaurus/plugin-content-docs/client';
|
|
10
10
|
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
11
11
|
import type {Props} from '@theme/NavbarItem/DocsVersionNavbarItem';
|
|
@@ -19,7 +19,7 @@ export default function DocsVersionNavbarItem({
|
|
|
19
19
|
to: staticTo,
|
|
20
20
|
docsPluginId,
|
|
21
21
|
...props
|
|
22
|
-
}: Props):
|
|
22
|
+
}: Props): ReactNode {
|
|
23
23
|
const version = useDocsVersionCandidates(docsPluginId)[0];
|
|
24
24
|
const label = staticLabel ?? version.label;
|
|
25
25
|
const path = staticTo ?? getVersionMainDoc(version).path;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {useState, useRef, useEffect} from 'react';
|
|
8
|
+
import React, {useState, useRef, useEffect, type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {
|
|
11
11
|
isRegexpStringMatch,
|
|
@@ -177,7 +177,7 @@ function DropdownNavbarItemMobile({
|
|
|
177
177
|
export default function DropdownNavbarItem({
|
|
178
178
|
mobile = false,
|
|
179
179
|
...props
|
|
180
|
-
}: Props):
|
|
180
|
+
}: Props): ReactNode {
|
|
181
181
|
const Comp = mobile ? DropdownNavbarItemMobile : DropdownNavbarItemDesktop;
|
|
182
182
|
return <Comp {...props} />;
|
|
183
183
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
|
|
11
11
|
import type {Props} from '@theme/NavbarItem/HtmlNavbarItem';
|
|
@@ -15,7 +15,7 @@ export default function HtmlNavbarItem({
|
|
|
15
15
|
className,
|
|
16
16
|
mobile = false,
|
|
17
17
|
isDropdownItem = false,
|
|
18
|
-
}: Props):
|
|
18
|
+
}: Props): ReactNode {
|
|
19
19
|
const Comp = isDropdownItem ? 'li' : 'div';
|
|
20
20
|
return (
|
|
21
21
|
<Comp
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
10
10
|
import {useAlternatePageUtils} from '@docusaurus/theme-common/internal';
|
|
11
11
|
import {translate} from '@docusaurus/Translate';
|
|
@@ -23,7 +23,7 @@ export default function LocaleDropdownNavbarItem({
|
|
|
23
23
|
dropdownItemsAfter,
|
|
24
24
|
queryString = '',
|
|
25
25
|
...props
|
|
26
|
-
}: Props):
|
|
26
|
+
}: Props): ReactNode {
|
|
27
27
|
const {
|
|
28
28
|
i18n: {currentLocale, locales, localeConfigs},
|
|
29
29
|
} = useDocusaurusContext();
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import Link from '@docusaurus/Link';
|
|
10
10
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
11
11
|
import isInternalUrl from '@docusaurus/isInternalUrl';
|
|
@@ -23,7 +23,7 @@ export default function NavbarNavLink({
|
|
|
23
23
|
isDropdownLink,
|
|
24
24
|
prependBaseUrlToHref,
|
|
25
25
|
...props
|
|
26
|
-
}: Props):
|
|
26
|
+
}: Props): ReactNode {
|
|
27
27
|
// TODO all this seems hacky
|
|
28
28
|
// {to: 'version'} should probably be forbidden, in favor of {to: '/version'}
|
|
29
29
|
const toUrl = useBaseUrl(to);
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import SearchBar from '@theme/SearchBar';
|
|
10
10
|
import NavbarSearch from '@theme/Navbar/Search';
|
|
11
11
|
import type {Props} from '@theme/NavbarItem/SearchNavbarItem';
|
|
@@ -13,7 +13,7 @@ import type {Props} from '@theme/NavbarItem/SearchNavbarItem';
|
|
|
13
13
|
export default function SearchNavbarItem({
|
|
14
14
|
mobile,
|
|
15
15
|
className,
|
|
16
|
-
}: Props):
|
|
16
|
+
}: Props): ReactNode {
|
|
17
17
|
if (mobile) {
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import ComponentTypes from '@theme/NavbarItem/ComponentTypes';
|
|
10
10
|
import type {NavbarItemType, Props} from '@theme/NavbarItem';
|
|
11
11
|
|
|
@@ -18,7 +18,7 @@ function normalizeComponentType(type: NavbarItemType, props: object) {
|
|
|
18
18
|
return type;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export default function NavbarItem({type, ...props}: Props):
|
|
21
|
+
export default function NavbarItem({type, ...props}: Props): ReactNode {
|
|
22
22
|
const componentType = normalizeComponentType(type, props);
|
|
23
23
|
const NavbarItemComponent = ComponentTypes[componentType];
|
|
24
24
|
if (!NavbarItemComponent) {
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import Translate from '@docusaurus/Translate';
|
|
11
11
|
import type {Props} from '@theme/NotFound/Content';
|
|
12
12
|
import Heading from '@theme/Heading';
|
|
13
13
|
|
|
14
|
-
export default function NotFoundContent({className}: Props):
|
|
14
|
+
export default function NotFoundContent({className}: Props): ReactNode {
|
|
15
15
|
return (
|
|
16
16
|
<main className={clsx('container margin-vert--xl', className)}>
|
|
17
17
|
<div className="row">
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {translate} from '@docusaurus/Translate';
|
|
10
10
|
import {PageMetadata} from '@docusaurus/theme-common';
|
|
11
11
|
import Layout from '@theme/Layout';
|
|
12
12
|
import NotFoundContent from '@theme/NotFound/Content';
|
|
13
13
|
|
|
14
|
-
export default function Index():
|
|
14
|
+
export default function Index(): ReactNode {
|
|
15
15
|
const title = translate({
|
|
16
16
|
id: 'theme.NotFound.title',
|
|
17
17
|
message: 'Page Not Found',
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import Link from '@docusaurus/Link';
|
|
11
11
|
import type {Props} from '@theme/PaginatorNavLink';
|
|
12
12
|
|
|
13
|
-
export default function PaginatorNavLink(props: Props):
|
|
13
|
+
export default function PaginatorNavLink(props: Props): ReactNode {
|
|
14
14
|
const {permalink, title, subLabel, isNext} = props;
|
|
15
15
|
return (
|
|
16
16
|
<Link
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
|
|
10
10
|
import Head from '@docusaurus/Head';
|
|
11
11
|
import type {Props} from '@theme/SearchMetadata';
|
|
@@ -19,7 +19,7 @@ export default function SearchMetadata({
|
|
|
19
19
|
locale,
|
|
20
20
|
version,
|
|
21
21
|
tag,
|
|
22
|
-
}: Props):
|
|
22
|
+
}: Props): ReactNode {
|
|
23
23
|
// Seems safe to consider here the locale is the language, as the existing
|
|
24
24
|
// docsearch:language filter is afaik a regular string-based filter
|
|
25
25
|
const language = locale;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import Head from '@docusaurus/Head';
|
|
10
10
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
11
11
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
@@ -23,7 +23,7 @@ import SearchMetadata from '@theme/SearchMetadata';
|
|
|
23
23
|
// Useful for i18n/SEO
|
|
24
24
|
// See https://developers.google.com/search/docs/advanced/crawling/localized-versions
|
|
25
25
|
// See https://github.com/facebook/docusaurus/issues/3317
|
|
26
|
-
function AlternateLangHeaders():
|
|
26
|
+
function AlternateLangHeaders(): ReactNode {
|
|
27
27
|
const {
|
|
28
28
|
i18n: {currentLocale, defaultLocale, localeConfigs},
|
|
29
29
|
} = useDocusaurusContext();
|
|
@@ -115,7 +115,7 @@ function CanonicalUrlHeaders({permalink}: {permalink?: string}) {
|
|
|
115
115
|
);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
export default function SiteMetadata():
|
|
118
|
+
export default function SiteMetadata(): ReactNode {
|
|
119
119
|
const {
|
|
120
120
|
i18n: {currentLocale},
|
|
121
121
|
} = useDocusaurusContext();
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import {SkipToContentLink} from '@docusaurus/theme-common';
|
|
10
10
|
import styles from './styles.module.css';
|
|
11
11
|
|
|
12
|
-
export default function SkipToContent():
|
|
12
|
+
export default function SkipToContent(): ReactNode {
|
|
13
13
|
return <SkipToContentLink className={styles.skipToContent} />;
|
|
14
14
|
}
|
package/src/theme/TOC/index.tsx
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import TOCItems from '@theme/TOCItems';
|
|
11
11
|
import type {Props} from '@theme/TOC';
|
|
@@ -17,7 +17,7 @@ import styles from './styles.module.css';
|
|
|
17
17
|
const LINK_CLASS_NAME = 'table-of-contents__link toc-highlight';
|
|
18
18
|
const LINK_ACTIVE_CLASS_NAME = 'table-of-contents__link--active';
|
|
19
19
|
|
|
20
|
-
export default function TOC({className, ...props}: Props):
|
|
20
|
+
export default function TOC({className, ...props}: Props): ReactNode {
|
|
21
21
|
return (
|
|
22
22
|
<div className={clsx(styles.tableOfContents, 'thin-scrollbar', className)}>
|
|
23
23
|
<TOCItems
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import Translate from '@docusaurus/Translate';
|
|
11
11
|
import type {Props} from '@theme/TOCCollapsible/CollapseButton';
|
|
@@ -15,7 +15,7 @@ import styles from './styles.module.css';
|
|
|
15
15
|
export default function TOCCollapsibleCollapseButton({
|
|
16
16
|
collapsed,
|
|
17
17
|
...props
|
|
18
|
-
}: Props):
|
|
18
|
+
}: Props): ReactNode {
|
|
19
19
|
return (
|
|
20
20
|
<button
|
|
21
21
|
type="button"
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import {useCollapsible, Collapsible} from '@docusaurus/theme-common';
|
|
11
11
|
import TOCItems from '@theme/TOCItems';
|
|
@@ -19,7 +19,7 @@ export default function TOCCollapsible({
|
|
|
19
19
|
className,
|
|
20
20
|
minHeadingLevel,
|
|
21
21
|
maxHeadingLevel,
|
|
22
|
-
}: Props):
|
|
22
|
+
}: Props): ReactNode {
|
|
23
23
|
const {collapsed, toggleCollapsed} = useCollapsible({
|
|
24
24
|
initialState: true,
|
|
25
25
|
});
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import TOCItems from '@theme/TOCItems';
|
|
10
10
|
import type {Props} from '@theme/TOCInline';
|
|
11
11
|
|
|
@@ -15,7 +15,7 @@ export default function TOCInline({
|
|
|
15
15
|
toc,
|
|
16
16
|
minHeadingLevel,
|
|
17
17
|
maxHeadingLevel,
|
|
18
|
-
}: Props):
|
|
18
|
+
}: Props): ReactNode {
|
|
19
19
|
return (
|
|
20
20
|
<div className={styles.tableOfContentsInline}>
|
|
21
21
|
<TOCItems
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
9
|
import Link from '@docusaurus/Link';
|
|
10
10
|
import type {Props} from '@theme/TOCItems/Tree';
|
|
11
11
|
|
|
@@ -15,7 +15,7 @@ function TOCItemTree({
|
|
|
15
15
|
className,
|
|
16
16
|
linkClassName,
|
|
17
17
|
isChild,
|
|
18
|
-
}: Props):
|
|
18
|
+
}: Props): ReactNode {
|
|
19
19
|
if (!toc.length) {
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {useMemo} from 'react';
|
|
8
|
+
import React, {type ReactNode, useMemo} from 'react';
|
|
9
9
|
import {useThemeConfig} from '@docusaurus/theme-common';
|
|
10
10
|
import {
|
|
11
11
|
useTOCHighlight,
|
|
@@ -23,7 +23,7 @@ export default function TOCItems({
|
|
|
23
23
|
minHeadingLevel: minHeadingLevelOption,
|
|
24
24
|
maxHeadingLevel: maxHeadingLevelOption,
|
|
25
25
|
...props
|
|
26
|
-
}: Props):
|
|
26
|
+
}: Props): ReactNode {
|
|
27
27
|
const themeConfig = useThemeConfig();
|
|
28
28
|
|
|
29
29
|
const minHeadingLevel =
|