@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 type {ComponentType} from 'react';
|
|
8
|
+
import type {ComponentType, ReactNode} from 'react';
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import clsx from 'clsx';
|
|
11
11
|
import Link from '@docusaurus/Link';
|
|
@@ -17,6 +17,12 @@ import X from '@theme/Icon/Socials/X';
|
|
|
17
17
|
import StackOverflow from '@theme/Icon/Socials/StackOverflow';
|
|
18
18
|
import LinkedIn from '@theme/Icon/Socials/LinkedIn';
|
|
19
19
|
import DefaultSocialIcon from '@theme/Icon/Socials/Default';
|
|
20
|
+
import Bluesky from '@theme/Icon/Socials/Bluesky';
|
|
21
|
+
import Instagram from '@theme/Icon/Socials/Instagram';
|
|
22
|
+
import Threads from '@theme/Icon/Socials/Threads';
|
|
23
|
+
import Youtube from '@theme/Icon/Socials/YouTube';
|
|
24
|
+
import Mastodon from '@theme/Icon/Socials/Mastodon';
|
|
25
|
+
import Twitch from '@theme/Icon/Socials/Twitch';
|
|
20
26
|
|
|
21
27
|
import styles from './styles.module.css';
|
|
22
28
|
|
|
@@ -30,6 +36,12 @@ const SocialPlatformConfigs: Record<string, SocialPlatformConfig> = {
|
|
|
30
36
|
stackoverflow: {Icon: StackOverflow, label: 'Stack Overflow'},
|
|
31
37
|
linkedin: {Icon: LinkedIn, label: 'LinkedIn'},
|
|
32
38
|
x: {Icon: X, label: 'X'},
|
|
39
|
+
bluesky: {Icon: Bluesky, label: 'Bluesky'},
|
|
40
|
+
instagram: {Icon: Instagram, label: 'Instagram'},
|
|
41
|
+
threads: {Icon: Threads, label: 'Threads'},
|
|
42
|
+
mastodon: {Icon: Mastodon, label: 'Mastodon'},
|
|
43
|
+
youtube: {Icon: Youtube, label: 'YouTube'},
|
|
44
|
+
twitch: {Icon: Twitch, label: 'Twitch'},
|
|
33
45
|
};
|
|
34
46
|
|
|
35
47
|
function getSocialPlatformConfig(platformKey: string): SocialPlatformConfig {
|
|
@@ -54,7 +66,7 @@ export default function BlogAuthorSocials({
|
|
|
54
66
|
author,
|
|
55
67
|
}: {
|
|
56
68
|
author: Props['author'];
|
|
57
|
-
}):
|
|
69
|
+
}): ReactNode {
|
|
58
70
|
const entries = Object.entries(author.socials ?? {});
|
|
59
71
|
return (
|
|
60
72
|
<div className={styles.authorSocials}>
|
|
@@ -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, {type Props as LinkProps} from '@docusaurus/Link';
|
|
11
11
|
import AuthorSocials from '@theme/Blog/Components/Author/Socials';
|
|
@@ -13,7 +13,7 @@ import type {Props} from '@theme/Blog/Components/Author';
|
|
|
13
13
|
import Heading from '@theme/Heading';
|
|
14
14
|
import styles from './styles.module.css';
|
|
15
15
|
|
|
16
|
-
function MaybeLink(props: LinkProps):
|
|
16
|
+
function MaybeLink(props: LinkProps): ReactNode {
|
|
17
17
|
if (props.href) {
|
|
18
18
|
return <Link {...props} />;
|
|
19
19
|
}
|
|
@@ -53,7 +53,7 @@ export default function BlogAuthor({
|
|
|
53
53
|
author,
|
|
54
54
|
className,
|
|
55
55
|
count,
|
|
56
|
-
}: Props):
|
|
56
|
+
}: Props): ReactNode {
|
|
57
57
|
const {name, title, url, imageURL, email, page} = author;
|
|
58
58
|
const link =
|
|
59
59
|
page?.permalink || url || (email && `mailto:${email}`) || undefined;
|
|
@@ -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,
|
|
@@ -26,7 +26,7 @@ import type {Props} from '@theme/Blog/Pages/BlogAuthorsPostsPage';
|
|
|
26
26
|
import BlogPostItems from '@theme/BlogPostItems';
|
|
27
27
|
import Author from '@theme/Blog/Components/Author';
|
|
28
28
|
|
|
29
|
-
function Metadata({author}: Props):
|
|
29
|
+
function Metadata({author}: Props): ReactNode {
|
|
30
30
|
const title = useBlogAuthorPageTitle(author);
|
|
31
31
|
return (
|
|
32
32
|
<>
|
|
@@ -45,7 +45,7 @@ function ViewAllAuthorsLink() {
|
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
function Content({author, items, sidebar, listMetadata}: Props):
|
|
48
|
+
function Content({author, items, sidebar, listMetadata}: Props): ReactNode {
|
|
49
49
|
return (
|
|
50
50
|
<BlogLayout sidebar={sidebar}>
|
|
51
51
|
<header className="margin-bottom--xl">
|
|
@@ -68,7 +68,7 @@ function Content({author, items, sidebar, listMetadata}: Props): JSX.Element {
|
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
export default function BlogAuthorsPostsPage(props: Props):
|
|
71
|
+
export default function BlogAuthorsPostsPage(props: Props): ReactNode {
|
|
72
72
|
return (
|
|
73
73
|
<HtmlClassNameProvider
|
|
74
74
|
className={clsx(
|
|
@@ -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 {translate} from '@docusaurus/Translate';
|
|
11
11
|
import {PageMetadata} from '@docusaurus/theme-common';
|
|
@@ -76,7 +76,7 @@ function listPostsByYears(blogPosts: readonly ArchiveBlogPost[]): YearProp[] {
|
|
|
76
76
|
}));
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
export default function BlogArchive({archive}: Props):
|
|
79
|
+
export default function BlogArchive({archive}: Props): ReactNode {
|
|
80
80
|
const title = translate({
|
|
81
81
|
id: 'theme.blog.archive.title',
|
|
82
82
|
message: 'Archive',
|
|
@@ -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 clsx from 'clsx';
|
|
10
10
|
import Layout from '@theme/Layout';
|
|
11
11
|
import BlogSidebar from '@theme/BlogSidebar';
|
|
12
12
|
|
|
13
13
|
import type {Props} from '@theme/BlogLayout';
|
|
14
14
|
|
|
15
|
-
export default function BlogLayout(props: Props):
|
|
15
|
+
export default function BlogLayout(props: Props): ReactNode {
|
|
16
16
|
const {sidebar, toc, children, ...layoutProps} = props;
|
|
17
17
|
const hasSidebar = sidebar && sidebar.items.length > 0;
|
|
18
18
|
|
|
@@ -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 Head from '@docusaurus/Head';
|
|
10
10
|
import {useBlogListPageStructuredData} from '@docusaurus/plugin-content-blog/client';
|
|
11
11
|
import type {Props} from '@theme/BlogListPage/StructuredData';
|
|
12
12
|
|
|
13
|
-
export default function BlogListPageStructuredData(props: Props):
|
|
13
|
+
export default function BlogListPageStructuredData(props: Props): ReactNode {
|
|
14
14
|
const structuredData = useBlogListPageStructuredData(props);
|
|
15
15
|
return (
|
|
16
16
|
<Head>
|
|
@@ -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 useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
@@ -21,7 +21,7 @@ import type {Props} from '@theme/BlogListPage';
|
|
|
21
21
|
import BlogPostItems from '@theme/BlogPostItems';
|
|
22
22
|
import BlogListPageStructuredData from '@theme/BlogListPage/StructuredData';
|
|
23
23
|
|
|
24
|
-
function BlogListPageMetadata(props: Props):
|
|
24
|
+
function BlogListPageMetadata(props: Props): ReactNode {
|
|
25
25
|
const {metadata} = props;
|
|
26
26
|
const {
|
|
27
27
|
siteConfig: {title: siteTitle},
|
|
@@ -37,7 +37,7 @@ function BlogListPageMetadata(props: Props): JSX.Element {
|
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
function BlogListPageContent(props: Props):
|
|
40
|
+
function BlogListPageContent(props: Props): ReactNode {
|
|
41
41
|
const {metadata, items, sidebar} = props;
|
|
42
42
|
return (
|
|
43
43
|
<BlogLayout sidebar={sidebar}>
|
|
@@ -47,7 +47,7 @@ function BlogListPageContent(props: Props): JSX.Element {
|
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export default function BlogListPage(props: Props):
|
|
50
|
+
export default function BlogListPage(props: Props): ReactNode {
|
|
51
51
|
return (
|
|
52
52
|
<HtmlClassNameProvider
|
|
53
53
|
className={clsx(
|
|
@@ -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 Translate, {translate} from '@docusaurus/Translate';
|
|
10
10
|
import PaginatorNavLink from '@theme/PaginatorNavLink';
|
|
11
11
|
import type {Props} from '@theme/BlogListPaginator';
|
|
12
12
|
|
|
13
|
-
export default function BlogListPaginator(props: Props):
|
|
13
|
+
export default function BlogListPaginator(props: Props): ReactNode {
|
|
14
14
|
const {metadata} = props;
|
|
15
15
|
const {previousPage, nextPage} = metadata;
|
|
16
16
|
|
|
@@ -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 type {Props} from '@theme/BlogPostItem/Container';
|
|
10
10
|
|
|
11
11
|
export default function BlogPostItemContainer({
|
|
12
12
|
children,
|
|
13
13
|
className,
|
|
14
|
-
}: Props):
|
|
14
|
+
}: Props): ReactNode {
|
|
15
15
|
return <article className={className}>{children}</article>;
|
|
16
16
|
}
|
|
@@ -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 {blogPostContainerID} from '@docusaurus/utils-common';
|
|
11
11
|
import {useBlogPost} from '@docusaurus/plugin-content-blog/client';
|
|
@@ -15,7 +15,7 @@ import type {Props} from '@theme/BlogPostItem/Content';
|
|
|
15
15
|
export default function BlogPostItemContent({
|
|
16
16
|
children,
|
|
17
17
|
className,
|
|
18
|
-
}: Props):
|
|
18
|
+
}: Props): ReactNode {
|
|
19
19
|
const {isBlogPostPage} = useBlogPost();
|
|
20
20
|
return (
|
|
21
21
|
<div
|
|
@@ -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, {translate} from '@docusaurus/Translate';
|
|
10
10
|
import Link from '@docusaurus/Link';
|
|
11
11
|
import type {Props} from '@theme/BlogPostItem/Footer/ReadMoreLink';
|
|
@@ -24,7 +24,7 @@ function ReadMoreLabel() {
|
|
|
24
24
|
|
|
25
25
|
export default function BlogPostItemFooterReadMoreLink(
|
|
26
26
|
props: Props,
|
|
27
|
-
):
|
|
27
|
+
): ReactNode {
|
|
28
28
|
const {blogPostTitle, ...linkProps} = props;
|
|
29
29
|
return (
|
|
30
30
|
<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
|
import clsx from 'clsx';
|
|
10
10
|
import {useBlogPost} from '@docusaurus/plugin-content-blog/client';
|
|
11
11
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
@@ -13,7 +13,7 @@ import EditMetaRow from '@theme/EditMetaRow';
|
|
|
13
13
|
import TagsListInline from '@theme/TagsListInline';
|
|
14
14
|
import ReadMoreLink from '@theme/BlogPostItem/Footer/ReadMoreLink';
|
|
15
15
|
|
|
16
|
-
export default function BlogPostItemFooter():
|
|
16
|
+
export default function BlogPostItemFooter(): ReactNode {
|
|
17
17
|
const {metadata, isBlogPostPage} = useBlogPost();
|
|
18
18
|
const {
|
|
19
19
|
tags,
|
|
@@ -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 {useBlogPost} from '@docusaurus/plugin-content-blog/client';
|
|
11
11
|
import BlogAuthor from '@theme/Blog/Components/Author';
|
|
@@ -15,7 +15,7 @@ import styles from './styles.module.css';
|
|
|
15
15
|
// Component responsible for the authors layout
|
|
16
16
|
export default function BlogPostItemHeaderAuthors({
|
|
17
17
|
className,
|
|
18
|
-
}: Props):
|
|
18
|
+
}: Props): ReactNode {
|
|
19
19
|
const {
|
|
20
20
|
metadata: {authors},
|
|
21
21
|
assets,
|
|
@@ -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 {usePluralForm} from '@docusaurus/theme-common';
|
|
@@ -54,9 +54,7 @@ function Spacer() {
|
|
|
54
54
|
return <>{' · '}</>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
export default function BlogPostItemHeaderInfo({
|
|
58
|
-
className,
|
|
59
|
-
}: Props): JSX.Element {
|
|
57
|
+
export default function BlogPostItemHeaderInfo({className}: Props): ReactNode {
|
|
60
58
|
const {metadata} = useBlogPost();
|
|
61
59
|
const {date, readingTime} = metadata;
|
|
62
60
|
|
|
@@ -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 {useBlogPost} from '@docusaurus/plugin-content-blog/client';
|
|
@@ -13,9 +13,7 @@ import type {Props} from '@theme/BlogPostItem/Header/Title';
|
|
|
13
13
|
|
|
14
14
|
import styles from './styles.module.css';
|
|
15
15
|
|
|
16
|
-
export default function BlogPostItemHeaderTitle({
|
|
17
|
-
className,
|
|
18
|
-
}: Props): JSX.Element {
|
|
16
|
+
export default function BlogPostItemHeaderTitle({className}: Props): ReactNode {
|
|
19
17
|
const {metadata, isBlogPostPage} = useBlogPost();
|
|
20
18
|
const {permalink, title} = metadata;
|
|
21
19
|
const TitleHeading = isBlogPostPage ? 'h1' : 'h2';
|
|
@@ -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 BlogPostItemHeaderTitle from '@theme/BlogPostItem/Header/Title';
|
|
10
10
|
import BlogPostItemHeaderInfo from '@theme/BlogPostItem/Header/Info';
|
|
11
11
|
import BlogPostItemHeaderAuthors from '@theme/BlogPostItem/Header/Authors';
|
|
12
12
|
|
|
13
|
-
export default function BlogPostItemHeader():
|
|
13
|
+
export default function BlogPostItemHeader(): ReactNode {
|
|
14
14
|
return (
|
|
15
15
|
<header>
|
|
16
16
|
<BlogPostItemHeaderTitle />
|
|
@@ -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 {useBlogPost} from '@docusaurus/plugin-content-blog/client';
|
|
11
11
|
import BlogPostItemContainer from '@theme/BlogPostItem/Container';
|
|
@@ -20,10 +20,7 @@ function useContainerClassName() {
|
|
|
20
20
|
return !isBlogPostPage ? 'margin-bottom--xl' : undefined;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export default function BlogPostItem({
|
|
24
|
-
children,
|
|
25
|
-
className,
|
|
26
|
-
}: Props): JSX.Element {
|
|
23
|
+
export default function BlogPostItem({children, className}: Props): ReactNode {
|
|
27
24
|
const containerClassName = useContainerClassName();
|
|
28
25
|
return (
|
|
29
26
|
<BlogPostItemContainer className={clsx(containerClassName, className)}>
|
|
@@ -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 {BlogPostProvider} from '@docusaurus/plugin-content-blog/client';
|
|
10
10
|
import BlogPostItem from '@theme/BlogPostItem';
|
|
11
11
|
import type {Props} from '@theme/BlogPostItems';
|
|
@@ -13,7 +13,7 @@ import type {Props} from '@theme/BlogPostItems';
|
|
|
13
13
|
export default function BlogPostItems({
|
|
14
14
|
items,
|
|
15
15
|
component: BlogPostItemComponent = BlogPostItem,
|
|
16
|
-
}: Props):
|
|
16
|
+
}: Props): ReactNode {
|
|
17
17
|
return (
|
|
18
18
|
<>
|
|
19
19
|
{items.map(({content: BlogPostContent}) => (
|
|
@@ -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 {PageMetadata} from '@docusaurus/theme-common';
|
|
10
10
|
import {useBlogPost} from '@docusaurus/plugin-content-blog/client';
|
|
11
11
|
|
|
12
|
-
export default function BlogPostPageMetadata():
|
|
12
|
+
export default function BlogPostPageMetadata(): ReactNode {
|
|
13
13
|
const {assets, metadata} = useBlogPost();
|
|
14
14
|
const {title, description, date, tags, authors, frontMatter} = metadata;
|
|
15
15
|
|
|
@@ -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 Head from '@docusaurus/Head';
|
|
10
10
|
import {useBlogPostStructuredData} from '@docusaurus/plugin-content-blog/client';
|
|
11
11
|
|
|
12
|
-
export default function BlogPostStructuredData():
|
|
12
|
+
export default function BlogPostStructuredData(): ReactNode {
|
|
13
13
|
const structuredData = useBlogPostStructuredData();
|
|
14
14
|
return (
|
|
15
15
|
<Head>
|
|
@@ -28,7 +28,7 @@ function BlogPostPageContent({
|
|
|
28
28
|
}: {
|
|
29
29
|
sidebar: BlogSidebar;
|
|
30
30
|
children: ReactNode;
|
|
31
|
-
}):
|
|
31
|
+
}): ReactNode {
|
|
32
32
|
const {metadata, toc} = useBlogPost();
|
|
33
33
|
const {nextItem, prevItem, frontMatter} = metadata;
|
|
34
34
|
const {
|
|
@@ -59,7 +59,7 @@ function BlogPostPageContent({
|
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export default function BlogPostPage(props: Props):
|
|
62
|
+
export default function BlogPostPage(props: Props): ReactNode {
|
|
63
63
|
const BlogPostContent = props.content;
|
|
64
64
|
return (
|
|
65
65
|
<BlogPostProvider content={props.content} isBlogPostPage>
|
|
@@ -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 Translate, {translate} from '@docusaurus/Translate';
|
|
10
10
|
import PaginatorNavLink from '@theme/PaginatorNavLink';
|
|
11
11
|
import type {Props} from '@theme/BlogPostPaginator';
|
|
12
12
|
|
|
13
|
-
export default function BlogPostPaginator(props: Props):
|
|
13
|
+
export default function BlogPostPaginator(props: Props): ReactNode {
|
|
14
14
|
const {nextItem, prevItem} = props;
|
|
15
15
|
|
|
16
16
|
return (
|
|
@@ -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
|
useVisibleBlogSidebarItems,
|
|
11
11
|
BlogSidebarItemList,
|
|
@@ -29,7 +29,7 @@ const ListComponent: BlogSidebarContentProps['ListComponent'] = ({items}) => {
|
|
|
29
29
|
);
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
-
function BlogSidebarMobileSecondaryMenu({sidebar}: Props):
|
|
32
|
+
function BlogSidebarMobileSecondaryMenu({sidebar}: Props): ReactNode {
|
|
33
33
|
const items = useVisibleBlogSidebarItems(sidebar.items);
|
|
34
34
|
return (
|
|
35
35
|
<BlogSidebarContent
|
|
@@ -40,7 +40,7 @@ function BlogSidebarMobileSecondaryMenu({sidebar}: Props): JSX.Element {
|
|
|
40
40
|
);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
function BlogSidebarMobile(props: Props):
|
|
43
|
+
function BlogSidebarMobile(props: Props): ReactNode {
|
|
44
44
|
return (
|
|
45
45
|
<NavbarSecondaryMenuFiller
|
|
46
46
|
component={BlogSidebarMobileSecondaryMenu}
|
|
@@ -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 {useWindowSize} from '@docusaurus/theme-common';
|
|
10
10
|
import BlogSidebarDesktop from '@theme/BlogSidebar/Desktop';
|
|
11
11
|
import BlogSidebarMobile from '@theme/BlogSidebar/Mobile';
|
|
12
12
|
import type {Props} from '@theme/BlogSidebar';
|
|
13
13
|
|
|
14
|
-
export default function BlogSidebar({sidebar}: Props):
|
|
14
|
+
export default function BlogSidebar({sidebar}: Props): ReactNode {
|
|
15
15
|
const windowSize = useWindowSize();
|
|
16
16
|
if (!sidebar?.items.length) {
|
|
17
17
|
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 {
|
|
11
11
|
PageMetadata,
|
|
@@ -19,7 +19,7 @@ import type {Props} from '@theme/BlogTagsListPage';
|
|
|
19
19
|
import SearchMetadata from '@theme/SearchMetadata';
|
|
20
20
|
import Heading from '@theme/Heading';
|
|
21
21
|
|
|
22
|
-
export default function BlogTagsListPage({tags, sidebar}: Props):
|
|
22
|
+
export default function BlogTagsListPage({tags, sidebar}: Props): ReactNode {
|
|
23
23
|
const title = translateTagsPageTitle();
|
|
24
24
|
return (
|
|
25
25
|
<HtmlClassNameProvider
|
|
@@ -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 {
|
|
@@ -23,7 +23,7 @@ import BlogPostItems from '@theme/BlogPostItems';
|
|
|
23
23
|
import Unlisted from '@theme/ContentVisibility/Unlisted';
|
|
24
24
|
import Heading from '@theme/Heading';
|
|
25
25
|
|
|
26
|
-
function BlogTagsPostsPageMetadata({tag}: Props):
|
|
26
|
+
function BlogTagsPostsPageMetadata({tag}: Props): ReactNode {
|
|
27
27
|
const title = useBlogTagsPostsPageTitle(tag);
|
|
28
28
|
return (
|
|
29
29
|
<>
|
|
@@ -38,7 +38,7 @@ function BlogTagsPostsPageContent({
|
|
|
38
38
|
items,
|
|
39
39
|
sidebar,
|
|
40
40
|
listMetadata,
|
|
41
|
-
}: Props):
|
|
41
|
+
}: Props): ReactNode {
|
|
42
42
|
const title = useBlogTagsPostsPageTitle(tag);
|
|
43
43
|
return (
|
|
44
44
|
<BlogLayout sidebar={sidebar}>
|
|
@@ -59,7 +59,7 @@ function BlogTagsPostsPageContent({
|
|
|
59
59
|
</BlogLayout>
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
|
-
export default function BlogTagsPostsPage(props: Props):
|
|
62
|
+
export default function BlogTagsPostsPage(props: Props): ReactNode {
|
|
63
63
|
return (
|
|
64
64
|
<HtmlClassNameProvider
|
|
65
65
|
className={clsx(
|
|
@@ -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 {ThemeClassNames, usePrismTheme} from '@docusaurus/theme-common';
|
|
11
11
|
import {getPrismCssVariables} from '@docusaurus/theme-common/internal';
|
|
@@ -14,7 +14,7 @@ import styles from './styles.module.css';
|
|
|
14
14
|
export default function CodeBlockContainer<T extends 'div' | 'pre'>({
|
|
15
15
|
as: As,
|
|
16
16
|
...props
|
|
17
|
-
}: {as: T} & ComponentProps<T>):
|
|
17
|
+
}: {as: T} & ComponentProps<T>): ReactNode {
|
|
18
18
|
const prismTheme = usePrismTheme();
|
|
19
19
|
const prismCssVariables = getPrismCssVariables(prismTheme);
|
|
20
20
|
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 clsx from 'clsx';
|
|
10
10
|
import Container from '@theme/CodeBlock/Container';
|
|
11
11
|
import type {Props} from '@theme/CodeBlock/Content/Element';
|
|
@@ -15,10 +15,7 @@ import styles from './styles.module.css';
|
|
|
15
15
|
// <pre> tags in markdown map to CodeBlocks. They may contain JSX children. When
|
|
16
16
|
// the children is not a simple string, we just return a styled block without
|
|
17
17
|
// actually highlighting.
|
|
18
|
-
export default function CodeBlockJSX({
|
|
19
|
-
children,
|
|
20
|
-
className,
|
|
21
|
-
}: Props): JSX.Element {
|
|
18
|
+
export default function CodeBlockJSX({children, className}: Props): ReactNode {
|
|
22
19
|
return (
|
|
23
20
|
<Container
|
|
24
21
|
as="pre"
|
|
@@ -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 {useThemeConfig, usePrismTheme} from '@docusaurus/theme-common';
|
|
11
11
|
import {
|
|
@@ -38,7 +38,7 @@ export default function CodeBlockString({
|
|
|
38
38
|
title: titleProp,
|
|
39
39
|
showLineNumbers: showLineNumbersProp,
|
|
40
40
|
language: languageProp,
|
|
41
|
-
}: Props):
|
|
41
|
+
}: Props): ReactNode {
|
|
42
42
|
const {
|
|
43
43
|
prism: {defaultLanguage, magicComments},
|
|
44
44
|
} = useThemeConfig();
|
|
@@ -5,7 +5,13 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {
|
|
8
|
+
import React, {
|
|
9
|
+
useCallback,
|
|
10
|
+
useState,
|
|
11
|
+
useRef,
|
|
12
|
+
useEffect,
|
|
13
|
+
type ReactNode,
|
|
14
|
+
} from 'react';
|
|
9
15
|
import clsx from 'clsx';
|
|
10
16
|
import copy from 'copy-text-to-clipboard';
|
|
11
17
|
import {translate} from '@docusaurus/Translate';
|
|
@@ -15,7 +21,7 @@ import IconSuccess from '@theme/Icon/Success';
|
|
|
15
21
|
|
|
16
22
|
import styles from './styles.module.css';
|
|
17
23
|
|
|
18
|
-
export default function CopyButton({code, className}: Props):
|
|
24
|
+
export default function CopyButton({code, className}: Props): ReactNode {
|
|
19
25
|
const [isCopied, setIsCopied] = useState(false);
|
|
20
26
|
const copyTimeout = useRef<number | undefined>(undefined);
|
|
21
27
|
const handleCopyCode = useCallback(() => {
|