@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,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 {ThemeClassNames} from '@docusaurus/theme-common';
|
|
11
11
|
import {isActiveSidebarItem} from '@docusaurus/plugin-content-docs/client';
|
|
@@ -23,7 +23,7 @@ export default function DocSidebarItemLink({
|
|
|
23
23
|
level,
|
|
24
24
|
index,
|
|
25
25
|
...props
|
|
26
|
-
}: Props):
|
|
26
|
+
}: Props): ReactNode {
|
|
27
27
|
const {href, label, className, autoAddBaseUrl} = item;
|
|
28
28
|
const isActive = isActiveSidebarItem(item, activePath);
|
|
29
29
|
const isInternalLink = isInternalUrl(href);
|
|
@@ -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 DocSidebarItemCategory from '@theme/DocSidebarItem/Category';
|
|
10
10
|
import DocSidebarItemLink from '@theme/DocSidebarItem/Link';
|
|
11
11
|
import DocSidebarItemHtml from '@theme/DocSidebarItem/Html';
|
|
12
12
|
import type {Props} from '@theme/DocSidebarItem';
|
|
13
13
|
|
|
14
|
-
export default function DocSidebarItem({
|
|
15
|
-
item,
|
|
16
|
-
...props
|
|
17
|
-
}: Props): JSX.Element | null {
|
|
14
|
+
export default function DocSidebarItem({item, ...props}: Props): ReactNode {
|
|
18
15
|
switch (item.type) {
|
|
19
16
|
case 'category':
|
|
20
17
|
return <DocSidebarItemCategory item={item} {...props} />;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {memo} from 'react';
|
|
8
|
+
import React, {memo, type ReactNode} from 'react';
|
|
9
9
|
import {
|
|
10
10
|
DocSidebarItemsExpandedStateProvider,
|
|
11
11
|
useVisibleSidebarItems,
|
|
@@ -14,7 +14,7 @@ import DocSidebarItem from '@theme/DocSidebarItem';
|
|
|
14
14
|
|
|
15
15
|
import type {Props} from '@theme/DocSidebarItems';
|
|
16
16
|
|
|
17
|
-
function DocSidebarItems({items, ...props}: Props):
|
|
17
|
+
function DocSidebarItems({items, ...props}: Props): ReactNode {
|
|
18
18
|
const visibleItems = useVisibleSidebarItems(items, props.activePath);
|
|
19
19
|
return (
|
|
20
20
|
<DocSidebarItemsExpandedStateProvider>
|
|
@@ -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 Link from '@docusaurus/Link';
|
|
11
11
|
import {
|
|
@@ -50,7 +50,7 @@ function usePageTitle(props: Props): string {
|
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
function DocItem({doc}: {doc: Props['tag']['items'][number]}):
|
|
53
|
+
function DocItem({doc}: {doc: Props['tag']['items'][number]}): ReactNode {
|
|
54
54
|
return (
|
|
55
55
|
<article className="margin-vert--lg">
|
|
56
56
|
<Link to={doc.permalink}>
|
|
@@ -64,7 +64,7 @@ function DocItem({doc}: {doc: Props['tag']['items'][number]}): JSX.Element {
|
|
|
64
64
|
function DocTagDocListPageMetadata({
|
|
65
65
|
title,
|
|
66
66
|
tag,
|
|
67
|
-
}: Props & {title: string}):
|
|
67
|
+
}: Props & {title: string}): ReactNode {
|
|
68
68
|
return (
|
|
69
69
|
<>
|
|
70
70
|
<PageMetadata title={title} description={tag.description} />
|
|
@@ -76,7 +76,7 @@ function DocTagDocListPageMetadata({
|
|
|
76
76
|
function DocTagDocListPageContent({
|
|
77
77
|
tag,
|
|
78
78
|
title,
|
|
79
|
-
}: Props & {title: string}):
|
|
79
|
+
}: Props & {title: string}): ReactNode {
|
|
80
80
|
return (
|
|
81
81
|
<HtmlClassNameProvider
|
|
82
82
|
className={clsx(ThemeClassNames.page.docsTagDocListPage)}>
|
|
@@ -107,7 +107,7 @@ function DocTagDocListPageContent({
|
|
|
107
107
|
);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
export default function DocTagDocListPage(props: Props):
|
|
110
|
+
export default function DocTagDocListPage(props: Props): ReactNode {
|
|
111
111
|
const title = usePageTitle(props);
|
|
112
112
|
return (
|
|
113
113
|
<>
|
|
@@ -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 {
|
|
11
11
|
PageMetadata,
|
|
@@ -18,9 +18,7 @@ import SearchMetadata from '@theme/SearchMetadata';
|
|
|
18
18
|
import type {Props} from '@theme/DocTagsListPage';
|
|
19
19
|
import Heading from '@theme/Heading';
|
|
20
20
|
|
|
21
|
-
function DocTagsListPageMetadata({
|
|
22
|
-
title,
|
|
23
|
-
}: Props & {title: string}): JSX.Element {
|
|
21
|
+
function DocTagsListPageMetadata({title}: Props & {title: string}): ReactNode {
|
|
24
22
|
return (
|
|
25
23
|
<>
|
|
26
24
|
<PageMetadata title={title} />
|
|
@@ -32,7 +30,7 @@ function DocTagsListPageMetadata({
|
|
|
32
30
|
function DocTagsListPageContent({
|
|
33
31
|
tags,
|
|
34
32
|
title,
|
|
35
|
-
}: Props & {title: string}):
|
|
33
|
+
}: Props & {title: string}): ReactNode {
|
|
36
34
|
return (
|
|
37
35
|
<HtmlClassNameProvider
|
|
38
36
|
className={clsx(ThemeClassNames.page.docsTagsListPage)}>
|
|
@@ -48,7 +46,7 @@ function DocTagsListPageContent({
|
|
|
48
46
|
);
|
|
49
47
|
}
|
|
50
48
|
|
|
51
|
-
export default function DocTagsListPage(props: Props):
|
|
49
|
+
export default function DocTagsListPage(props: Props): ReactNode {
|
|
52
50
|
const title = translateTagsPageTitle();
|
|
53
51
|
return (
|
|
54
52
|
<>
|
|
@@ -5,16 +5,14 @@
|
|
|
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 {ThemeClassNames} from '@docusaurus/theme-common';
|
|
12
12
|
import {useDocsVersion} from '@docusaurus/plugin-content-docs/client';
|
|
13
13
|
import type {Props} from '@theme/DocVersionBadge';
|
|
14
14
|
|
|
15
|
-
export default function DocVersionBadge({
|
|
16
|
-
className,
|
|
17
|
-
}: Props): JSX.Element | null {
|
|
15
|
+
export default function DocVersionBadge({className}: Props): ReactNode {
|
|
18
16
|
const versionMetadata = useDocsVersion();
|
|
19
17
|
if (versionMetadata.badge) {
|
|
20
18
|
return (
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {type ComponentType} from 'react';
|
|
8
|
+
import React, {type ComponentType, type ReactNode} from 'react';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
10
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
11
11
|
import Link from '@docusaurus/Link';
|
|
@@ -121,7 +121,7 @@ function DocVersionBannerEnabled({
|
|
|
121
121
|
versionMetadata,
|
|
122
122
|
}: Props & {
|
|
123
123
|
versionMetadata: PropVersionMetadata;
|
|
124
|
-
}):
|
|
124
|
+
}): ReactNode {
|
|
125
125
|
const {
|
|
126
126
|
siteConfig: {title: siteTitle},
|
|
127
127
|
} = useDocusaurusContext();
|
|
@@ -162,9 +162,7 @@ function DocVersionBannerEnabled({
|
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
export default function DocVersionBanner({
|
|
166
|
-
className,
|
|
167
|
-
}: Props): JSX.Element | null {
|
|
165
|
+
export default function DocVersionBanner({className}: Props): ReactNode {
|
|
168
166
|
const versionMetadata = useDocsVersion();
|
|
169
167
|
if (versionMetadata.banner) {
|
|
170
168
|
return (
|
|
@@ -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 {HtmlClassNameProvider, PageMetadata} from '@docusaurus/theme-common';
|
|
10
10
|
import {
|
|
11
11
|
getDocsVersionSearchTag,
|
|
@@ -16,7 +16,7 @@ import SearchMetadata from '@theme/SearchMetadata';
|
|
|
16
16
|
|
|
17
17
|
import type {Props} from '@theme/DocVersionRoot';
|
|
18
18
|
|
|
19
|
-
function DocVersionRootMetadata(props: Props):
|
|
19
|
+
function DocVersionRootMetadata(props: Props): ReactNode {
|
|
20
20
|
const {version} = props;
|
|
21
21
|
return (
|
|
22
22
|
<>
|
|
@@ -31,7 +31,7 @@ function DocVersionRootMetadata(props: Props): JSX.Element {
|
|
|
31
31
|
);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
function DocVersionRootContent(props: Props):
|
|
34
|
+
function DocVersionRootContent(props: Props): ReactNode {
|
|
35
35
|
const {version, route} = props;
|
|
36
36
|
return (
|
|
37
37
|
<HtmlClassNameProvider className={version.className}>
|
|
@@ -41,7 +41,7 @@ function DocVersionRootContent(props: Props): JSX.Element {
|
|
|
41
41
|
</HtmlClassNameProvider>
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
|
-
export default function DocVersionRoot(props: Props):
|
|
44
|
+
export default function DocVersionRoot(props: Props): ReactNode {
|
|
45
45
|
return (
|
|
46
46
|
<>
|
|
47
47
|
<DocVersionRootMetadata {...props} />
|
|
@@ -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 {ThemeClassNames, HtmlClassNameProvider} from '@docusaurus/theme-common';
|
|
11
11
|
import renderRoutes from '@docusaurus/renderRoutes';
|
|
@@ -13,7 +13,7 @@ import Layout from '@theme/Layout';
|
|
|
13
13
|
|
|
14
14
|
import type {Props} from '@theme/DocVersionRoot';
|
|
15
15
|
|
|
16
|
-
export default function DocsRoot(props: Props):
|
|
16
|
+
export default function DocsRoot(props: Props): ReactNode {
|
|
17
17
|
return (
|
|
18
18
|
<HtmlClassNameProvider className={clsx(ThemeClassNames.wrapper.docsPages)}>
|
|
19
19
|
<Layout>{renderRoutes(props.route.routes!)}</Layout>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
|
-
import React from 'react';
|
|
7
|
+
import React, {type ReactNode} from 'react';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import EditThisPage from '@theme/EditThisPage';
|
|
10
10
|
import type {Props} from '@theme/EditMetaRow';
|
|
@@ -17,7 +17,7 @@ export default function EditMetaRow({
|
|
|
17
17
|
editUrl,
|
|
18
18
|
lastUpdatedAt,
|
|
19
19
|
lastUpdatedBy,
|
|
20
|
-
}: Props):
|
|
20
|
+
}: Props): ReactNode {
|
|
21
21
|
return (
|
|
22
22
|
<div className={clsx('row', className)}>
|
|
23
23
|
<div className="col">{editUrl && <EditThisPage editUrl={editUrl} />}</div>
|
|
@@ -5,14 +5,14 @@
|
|
|
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 {ThemeClassNames} from '@docusaurus/theme-common';
|
|
11
11
|
import Link from '@docusaurus/Link';
|
|
12
12
|
import IconEdit from '@theme/Icon/Edit';
|
|
13
13
|
import type {Props} from '@theme/EditThisPage';
|
|
14
14
|
|
|
15
|
-
export default function EditThisPage({editUrl}: Props):
|
|
15
|
+
export default function EditThisPage({editUrl}: Props): ReactNode {
|
|
16
16
|
return (
|
|
17
17
|
<Link to={editUrl} className={ThemeClassNames.common.editThisPage}>
|
|
18
18
|
<IconEdit />
|
|
@@ -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 Translate from '@docusaurus/Translate';
|
|
10
10
|
import {
|
|
11
11
|
ErrorBoundaryError,
|
|
@@ -14,10 +14,7 @@ import {
|
|
|
14
14
|
import type {Props} from '@theme/Error';
|
|
15
15
|
import Heading from '@theme/Heading';
|
|
16
16
|
|
|
17
|
-
export default function ErrorPageContent({
|
|
18
|
-
error,
|
|
19
|
-
tryAgain,
|
|
20
|
-
}: Props): JSX.Element {
|
|
17
|
+
export default function ErrorPageContent({error, tryAgain}: Props): ReactNode {
|
|
21
18
|
return (
|
|
22
19
|
<main className="container margin-vert--xl">
|
|
23
20
|
<div className="row">
|
|
@@ -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 type {Props} from '@theme/Footer/Copyright';
|
|
10
10
|
|
|
11
|
-
export default function FooterCopyright({copyright}: Props):
|
|
11
|
+
export default function FooterCopyright({copyright}: Props): ReactNode {
|
|
12
12
|
return (
|
|
13
13
|
<div
|
|
14
14
|
className="footer__copyright"
|
|
@@ -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 type {Props} from '@theme/Footer/Layout';
|
|
11
11
|
|
|
@@ -14,7 +14,7 @@ export default function FooterLayout({
|
|
|
14
14
|
links,
|
|
15
15
|
logo,
|
|
16
16
|
copyright,
|
|
17
|
-
}: Props):
|
|
17
|
+
}: Props): ReactNode {
|
|
18
18
|
return (
|
|
19
19
|
<footer
|
|
20
20
|
className={clsx('footer', {
|
|
@@ -5,22 +5,22 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React from 'react';
|
|
9
|
-
|
|
8
|
+
import React, {type ReactNode} from 'react';
|
|
9
|
+
import clsx from 'clsx';
|
|
10
10
|
import Link from '@docusaurus/Link';
|
|
11
11
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
12
12
|
import isInternalUrl from '@docusaurus/isInternalUrl';
|
|
13
13
|
import IconExternalLink from '@theme/Icon/ExternalLink';
|
|
14
14
|
import type {Props} from '@theme/Footer/LinkItem';
|
|
15
15
|
|
|
16
|
-
export default function FooterLinkItem({item}: Props):
|
|
17
|
-
const {to, href, label, prependBaseUrlToHref, ...props} = item;
|
|
16
|
+
export default function FooterLinkItem({item}: Props): ReactNode {
|
|
17
|
+
const {to, href, label, prependBaseUrlToHref, className, ...props} = item;
|
|
18
18
|
const toUrl = useBaseUrl(to);
|
|
19
19
|
const normalizedHref = useBaseUrl(href, {forcePrependBaseUrl: true});
|
|
20
20
|
|
|
21
21
|
return (
|
|
22
22
|
<Link
|
|
23
|
-
className=
|
|
23
|
+
className={clsx('footer__link-item', className)}
|
|
24
24
|
{...(href
|
|
25
25
|
? {
|
|
26
26
|
href: prependBaseUrlToHref ? normalizedHref : href,
|
|
@@ -5,7 +5,8 @@
|
|
|
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
|
+
import clsx from 'clsx';
|
|
9
10
|
import LinkItem from '@theme/Footer/LinkItem';
|
|
10
11
|
import type {Props} from '@theme/Footer/Links/MultiColumn';
|
|
11
12
|
|
|
@@ -15,7 +16,7 @@ type ColumnItemType = ColumnType['items'][number];
|
|
|
15
16
|
function ColumnLinkItem({item}: {item: ColumnItemType}) {
|
|
16
17
|
return item.html ? (
|
|
17
18
|
<li
|
|
18
|
-
className=
|
|
19
|
+
className={clsx('footer__item', item.className)}
|
|
19
20
|
// Developer provided the HTML, so assume it's safe.
|
|
20
21
|
// eslint-disable-next-line react/no-danger
|
|
21
22
|
dangerouslySetInnerHTML={{__html: item.html}}
|
|
@@ -29,7 +30,7 @@ function ColumnLinkItem({item}: {item: ColumnItemType}) {
|
|
|
29
30
|
|
|
30
31
|
function Column({column}: {column: ColumnType}) {
|
|
31
32
|
return (
|
|
32
|
-
<div className=
|
|
33
|
+
<div className={clsx('col footer__col', column.className)}>
|
|
33
34
|
<div className="footer__title">{column.title}</div>
|
|
34
35
|
<ul className="footer__items clean-list">
|
|
35
36
|
{column.items.map((item, i) => (
|
|
@@ -40,7 +41,7 @@ function Column({column}: {column: ColumnType}) {
|
|
|
40
41
|
);
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
export default function FooterLinksMultiColumn({columns}: Props):
|
|
44
|
+
export default function FooterLinksMultiColumn({columns}: Props): ReactNode {
|
|
44
45
|
return (
|
|
45
46
|
<div className="row footer__links">
|
|
46
47
|
{columns.map((column, i) => (
|
|
@@ -5,7 +5,8 @@
|
|
|
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
|
+
import clsx from 'clsx';
|
|
9
10
|
import LinkItem from '@theme/Footer/LinkItem';
|
|
10
11
|
import type {Props} from '@theme/Footer/Links/Simple';
|
|
11
12
|
|
|
@@ -16,7 +17,7 @@ function Separator() {
|
|
|
16
17
|
function SimpleLinkItem({item}: {item: Props['links'][number]}) {
|
|
17
18
|
return item.html ? (
|
|
18
19
|
<span
|
|
19
|
-
className=
|
|
20
|
+
className={clsx('footer__link-item', item.className)}
|
|
20
21
|
// Developer provided the HTML, so assume it's safe.
|
|
21
22
|
// eslint-disable-next-line react/no-danger
|
|
22
23
|
dangerouslySetInnerHTML={{__html: item.html}}
|
|
@@ -26,7 +27,7 @@ function SimpleLinkItem({item}: {item: Props['links'][number]}) {
|
|
|
26
27
|
);
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
export default function FooterLinksSimple({links}: Props):
|
|
30
|
+
export default function FooterLinksSimple({links}: Props): ReactNode {
|
|
30
31
|
return (
|
|
31
32
|
<div className="footer__links text--center">
|
|
32
33
|
<div className="footer__links">
|
|
@@ -5,14 +5,14 @@
|
|
|
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 {isMultiColumnFooterLinks} from '@docusaurus/theme-common';
|
|
11
11
|
import FooterLinksMultiColumn from '@theme/Footer/Links/MultiColumn';
|
|
12
12
|
import FooterLinksSimple from '@theme/Footer/Links/Simple';
|
|
13
13
|
import type {Props} from '@theme/Footer/Links';
|
|
14
14
|
|
|
15
|
-
export default function FooterLinks({links}: Props):
|
|
15
|
+
export default function FooterLinks({links}: Props): ReactNode {
|
|
16
16
|
return isMultiColumnFooterLinks(links) ? (
|
|
17
17
|
<FooterLinksMultiColumn columns={links} />
|
|
18
18
|
) : (
|
|
@@ -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 Link from '@docusaurus/Link';
|
|
11
11
|
import {useBaseUrlUtils} from '@docusaurus/useBaseUrl';
|
|
@@ -32,7 +32,7 @@ function LogoImage({logo}: Props) {
|
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export default function FooterLogo({logo}: Props):
|
|
35
|
+
export default function FooterLogo({logo}: Props): ReactNode {
|
|
36
36
|
return logo.href ? (
|
|
37
37
|
<Link
|
|
38
38
|
href={logo.href}
|
|
@@ -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 {useThemeConfig} from '@docusaurus/theme-common';
|
|
11
11
|
import FooterLinks from '@theme/Footer/Links';
|
|
@@ -13,7 +13,7 @@ import FooterLogo from '@theme/Footer/Logo';
|
|
|
13
13
|
import FooterCopyright from '@theme/Footer/Copyright';
|
|
14
14
|
import FooterLayout from '@theme/Footer/Layout';
|
|
15
15
|
|
|
16
|
-
function Footer():
|
|
16
|
+
function Footer(): ReactNode {
|
|
17
17
|
const {footer} = useThemeConfig();
|
|
18
18
|
if (!footer) {
|
|
19
19
|
return null;
|
|
@@ -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 {useThemeConfig} from '@docusaurus/theme-common';
|
|
@@ -15,7 +15,7 @@ import type {Props} from '@theme/Heading';
|
|
|
15
15
|
|
|
16
16
|
import styles from './styles.module.css';
|
|
17
17
|
|
|
18
|
-
export default function Heading({as: As, id, ...props}: Props):
|
|
18
|
+
export default function Heading({as: As, id, ...props}: Props): ReactNode {
|
|
19
19
|
const brokenLinks = useBrokenLinks();
|
|
20
20
|
const {
|
|
21
21
|
navbar: {hideOnScroll},
|
|
@@ -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 type {Props} from '@theme/Icon/Arrow';
|
|
10
10
|
|
|
11
|
-
export default function IconArrow(props: Props):
|
|
11
|
+
export default function IconArrow(props: Props): ReactNode {
|
|
12
12
|
return (
|
|
13
13
|
<svg width="20" height="20" aria-hidden="true" {...props}>
|
|
14
14
|
<g fill="#7a7a7a">
|
|
@@ -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 type {Props} from '@theme/Icon/Close';
|
|
10
10
|
|
|
11
11
|
export default function IconClose({
|
|
@@ -15,7 +15,7 @@ export default function IconClose({
|
|
|
15
15
|
strokeWidth = 1.2,
|
|
16
16
|
className,
|
|
17
17
|
...restProps
|
|
18
|
-
}: Props):
|
|
18
|
+
}: Props): ReactNode {
|
|
19
19
|
return (
|
|
20
20
|
<svg viewBox="0 0 15 15" width={width} height={height} {...restProps}>
|
|
21
21
|
<g stroke={color} strokeWidth={strokeWidth}>
|
|
@@ -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 type {Props} from '@theme/Icon/Copy';
|
|
10
10
|
|
|
11
|
-
export default function IconCopy(props: Props):
|
|
11
|
+
export default function IconCopy(props: Props): ReactNode {
|
|
12
12
|
return (
|
|
13
13
|
<svg viewBox="0 0 24 24" {...props}>
|
|
14
14
|
<path
|
|
@@ -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 type {Props} from '@theme/Icon/DarkMode';
|
|
10
10
|
|
|
11
|
-
export default function IconDarkMode(props: Props):
|
|
11
|
+
export default function IconDarkMode(props: Props): ReactNode {
|
|
12
12
|
return (
|
|
13
13
|
<svg viewBox="0 0 24 24" width={24} height={24} {...props}>
|
|
14
14
|
<path
|
|
@@ -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/Icon/Edit';
|
|
11
11
|
|
|
12
12
|
import styles from './styles.module.css';
|
|
13
13
|
|
|
14
|
-
export default function IconEdit({
|
|
15
|
-
className,
|
|
16
|
-
...restProps
|
|
17
|
-
}: Props): JSX.Element {
|
|
14
|
+
export default function IconEdit({className, ...restProps}: Props): ReactNode {
|
|
18
15
|
return (
|
|
19
16
|
<svg
|
|
20
17
|
fill="currentColor"
|
|
@@ -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 type {Props} from '@theme/Icon/ExternalLink';
|
|
10
10
|
|
|
11
11
|
import styles from './styles.module.css';
|
|
@@ -13,7 +13,7 @@ import styles from './styles.module.css';
|
|
|
13
13
|
export default function IconExternalLink({
|
|
14
14
|
width = 13.5,
|
|
15
15
|
height = 13.5,
|
|
16
|
-
}: Props):
|
|
16
|
+
}: Props): ReactNode {
|
|
17
17
|
return (
|
|
18
18
|
<svg
|
|
19
19
|
width={width}
|
|
@@ -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 type {Props} from '@theme/Icon/Home';
|
|
10
10
|
|
|
11
|
-
export default function IconHome(props: Props):
|
|
11
|
+
export default function IconHome(props: Props): ReactNode {
|
|
12
12
|
return (
|
|
13
13
|
<svg viewBox="0 0 24 24" {...props}>
|
|
14
14
|
<path
|
|
@@ -5,14 +5,14 @@
|
|
|
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 type {Props} from '@theme/Icon/Language';
|
|
10
10
|
|
|
11
11
|
export default function IconLanguage({
|
|
12
12
|
width = 20,
|
|
13
13
|
height = 20,
|
|
14
14
|
...props
|
|
15
|
-
}: Props):
|
|
15
|
+
}: Props): ReactNode {
|
|
16
16
|
return (
|
|
17
17
|
<svg
|
|
18
18
|
viewBox="0 0 24 24"
|
|
@@ -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 type {Props} from '@theme/Icon/LightMode';
|
|
10
10
|
|
|
11
|
-
export default function IconLightMode(props: Props):
|
|
11
|
+
export default function IconLightMode(props: Props): ReactNode {
|
|
12
12
|
return (
|
|
13
13
|
<svg viewBox="0 0 24 24" width={24} height={24} {...props}>
|
|
14
14
|
<path
|