@docusaurus/theme-classic 3.4.0 → 3.5.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/getSwizzleConfig.js +32 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -1
- package/lib/inlineScripts.js +3 -3
- package/lib/options.d.ts +0 -1
- package/lib/options.js +15 -3
- package/lib/theme/Admonition/Icon/Danger.d.ts +0 -2
- package/lib/theme/Admonition/Icon/Info.d.ts +0 -2
- package/lib/theme/Admonition/Icon/Note.d.ts +0 -2
- package/lib/theme/Admonition/Icon/Tip.d.ts +0 -2
- package/lib/theme/Admonition/Icon/Warning.d.ts +0 -2
- package/lib/theme/Admonition/Layout/index.d.ts +0 -2
- package/lib/theme/Admonition/Type/Caution.d.ts +0 -2
- package/lib/theme/Admonition/Type/Danger.d.ts +0 -2
- package/lib/theme/Admonition/Type/Info.d.ts +0 -2
- package/lib/theme/Admonition/Type/Note.d.ts +0 -2
- package/lib/theme/Admonition/Type/Tip.d.ts +0 -2
- package/lib/theme/Admonition/Type/Warning.d.ts +0 -2
- package/lib/theme/Admonition/Types.d.ts +0 -1
- package/lib/theme/Admonition/index.d.ts +0 -2
- package/lib/theme/AnnouncementBar/CloseButton/index.d.ts +0 -2
- package/lib/theme/AnnouncementBar/Content/index.d.ts +0 -2
- package/lib/theme/AnnouncementBar/index.d.ts +0 -1
- package/lib/theme/BackToTopButton/index.d.ts +0 -1
- package/lib/theme/Blog/Components/Author/Socials/index.d.ts +10 -0
- package/lib/theme/Blog/Components/Author/Socials/index.js +49 -0
- package/lib/theme/Blog/Components/Author/Socials/styles.module.css +39 -0
- package/lib/theme/Blog/Components/Author/index.d.ts +8 -0
- package/lib/theme/Blog/Components/Author/index.js +86 -0
- package/lib/theme/Blog/Components/Author/styles.module.css +74 -0
- package/lib/theme/Blog/Pages/BlogAuthorsListPage/index.d.ts +9 -0
- package/lib/theme/Blog/Pages/BlogAuthorsListPage/index.js +54 -0
- package/lib/theme/Blog/Pages/BlogAuthorsListPage/styles.module.css +11 -0
- package/lib/theme/Blog/Pages/BlogAuthorsPostsPage/index.d.ts +8 -0
- package/lib/theme/Blog/Pages/BlogAuthorsPostsPage/index.js +67 -0
- package/lib/theme/BlogArchivePage/index.d.ts +0 -2
- package/lib/theme/BlogLayout/index.d.ts +0 -2
- package/lib/theme/BlogListPage/StructuredData/index.d.ts +0 -2
- package/lib/theme/BlogListPage/StructuredData/index.js +1 -1
- package/lib/theme/BlogListPage/index.d.ts +0 -2
- package/lib/theme/BlogListPaginator/index.d.ts +0 -2
- package/lib/theme/BlogPostItem/Container/index.d.ts +0 -2
- package/lib/theme/BlogPostItem/Content/index.d.ts +0 -2
- package/lib/theme/BlogPostItem/Content/index.js +1 -1
- package/lib/theme/BlogPostItem/Footer/ReadMoreLink/index.d.ts +0 -2
- package/lib/theme/BlogPostItem/Footer/index.d.ts +0 -1
- package/lib/theme/BlogPostItem/Footer/index.js +1 -1
- package/lib/theme/BlogPostItem/Header/Authors/index.d.ts +0 -2
- package/lib/theme/BlogPostItem/Header/Authors/index.js +5 -4
- package/lib/theme/BlogPostItem/Header/Authors/styles.module.css +0 -1
- package/lib/theme/BlogPostItem/Header/Info/index.d.ts +0 -2
- package/lib/theme/BlogPostItem/Header/Info/index.js +2 -4
- package/lib/theme/BlogPostItem/Header/Title/index.d.ts +0 -2
- package/lib/theme/BlogPostItem/Header/Title/index.js +1 -1
- package/lib/theme/BlogPostItem/Header/index.d.ts +0 -1
- package/lib/theme/BlogPostItem/index.d.ts +0 -2
- package/lib/theme/BlogPostItem/index.js +1 -1
- package/lib/theme/BlogPostItems/index.d.ts +0 -2
- package/lib/theme/BlogPostItems/index.js +1 -1
- package/lib/theme/BlogPostPage/Metadata/index.d.ts +0 -1
- package/lib/theme/BlogPostPage/Metadata/index.js +1 -1
- package/lib/theme/BlogPostPage/StructuredData/index.d.ts +0 -1
- package/lib/theme/BlogPostPage/StructuredData/index.js +1 -1
- package/lib/theme/BlogPostPage/index.d.ts +0 -2
- package/lib/theme/BlogPostPage/index.js +7 -4
- package/lib/theme/BlogPostPaginator/index.d.ts +0 -2
- package/lib/theme/BlogSidebar/Content/index.d.ts +11 -0
- package/lib/theme/BlogSidebar/Content/index.js +41 -0
- package/lib/theme/BlogSidebar/Desktop/index.d.ts +4 -3
- package/lib/theme/BlogSidebar/Desktop/index.js +24 -17
- package/lib/theme/BlogSidebar/Desktop/styles.module.css +5 -0
- package/lib/theme/BlogSidebar/Mobile/index.d.ts +4 -3
- package/lib/theme/BlogSidebar/Mobile/index.js +25 -17
- package/lib/theme/BlogSidebar/Mobile/styles.module.css +10 -0
- package/lib/theme/BlogSidebar/index.d.ts +0 -2
- package/lib/theme/BlogTagsListPage/index.d.ts +0 -2
- package/lib/theme/BlogTagsPostsPage/index.d.ts +0 -2
- package/lib/theme/BlogTagsPostsPage/index.js +3 -31
- package/lib/theme/CodeBlock/Content/Element.d.ts +0 -2
- package/lib/theme/CodeBlock/Content/String.d.ts +0 -2
- package/lib/theme/CodeBlock/CopyButton/index.d.ts +0 -2
- package/lib/theme/CodeBlock/Line/index.d.ts +0 -2
- package/lib/theme/CodeBlock/WordWrapButton/index.d.ts +0 -2
- package/lib/theme/CodeBlock/index.d.ts +0 -2
- package/lib/theme/CodeInline/index.d.ts +0 -2
- package/lib/theme/ColorModeToggle/index.d.ts +0 -1
- package/lib/theme/ContentVisibility/Draft/index.d.ts +8 -0
- package/lib/theme/ContentVisibility/Draft/index.js +24 -0
- package/lib/theme/{Unlisted → ContentVisibility/Unlisted}/index.d.ts +1 -3
- package/lib/theme/ContentVisibility/index.d.ts +8 -0
- package/lib/theme/ContentVisibility/index.js +21 -0
- package/lib/theme/Details/index.d.ts +0 -2
- package/lib/theme/DocBreadcrumbs/Items/Home/index.d.ts +0 -1
- package/lib/theme/DocBreadcrumbs/index.d.ts +0 -1
- package/lib/theme/DocBreadcrumbs/index.js +2 -4
- package/lib/theme/DocCard/index.d.ts +0 -2
- package/lib/theme/DocCard/index.js +2 -2
- package/lib/theme/DocCardList/index.d.ts +0 -2
- package/lib/theme/DocCardList/index.js +1 -1
- package/lib/theme/DocCategoryGeneratedIndexPage/index.d.ts +0 -2
- package/lib/theme/DocCategoryGeneratedIndexPage/index.js +2 -4
- package/lib/theme/DocItem/Content/index.d.ts +0 -2
- package/lib/theme/DocItem/Content/index.js +1 -1
- package/lib/theme/DocItem/Footer/index.d.ts +0 -1
- package/lib/theme/DocItem/Footer/index.js +1 -1
- package/lib/theme/DocItem/Layout/index.d.ts +0 -2
- package/lib/theme/DocItem/Layout/index.js +4 -6
- package/lib/theme/DocItem/Metadata/index.d.ts +0 -1
- package/lib/theme/DocItem/Metadata/index.js +1 -1
- package/lib/theme/DocItem/Paginator/index.d.ts +0 -1
- package/lib/theme/DocItem/Paginator/index.js +1 -1
- package/lib/theme/DocItem/TOC/Desktop/index.d.ts +0 -1
- package/lib/theme/DocItem/TOC/Desktop/index.js +1 -1
- package/lib/theme/DocItem/TOC/Mobile/index.d.ts +0 -1
- package/lib/theme/DocItem/TOC/Mobile/index.js +1 -1
- package/lib/theme/DocItem/index.d.ts +0 -2
- package/lib/theme/DocItem/index.js +1 -1
- package/lib/theme/DocPaginator/index.d.ts +0 -2
- package/lib/theme/DocRoot/Layout/Main/index.d.ts +0 -2
- package/lib/theme/DocRoot/Layout/Main/index.js +1 -1
- package/lib/theme/DocRoot/Layout/Sidebar/ExpandButton/index.d.ts +0 -2
- package/lib/theme/DocRoot/Layout/Sidebar/index.d.ts +0 -2
- package/lib/theme/DocRoot/Layout/Sidebar/index.js +1 -1
- package/lib/theme/DocRoot/Layout/index.d.ts +0 -2
- package/lib/theme/DocRoot/Layout/index.js +1 -1
- package/lib/theme/DocRoot/index.d.ts +0 -2
- package/lib/theme/DocRoot/index.js +1 -1
- package/lib/theme/DocSidebar/Desktop/CollapseButton/index.d.ts +0 -2
- package/lib/theme/DocSidebar/Desktop/Content/index.d.ts +0 -2
- package/lib/theme/DocSidebar/Desktop/index.d.ts +0 -1
- package/lib/theme/DocSidebar/Mobile/index.d.ts +0 -1
- package/lib/theme/DocSidebar/index.d.ts +0 -2
- package/lib/theme/DocSidebarItem/Category/index.d.ts +0 -2
- package/lib/theme/DocSidebarItem/Category/index.js +2 -2
- package/lib/theme/DocSidebarItem/Html/index.d.ts +0 -2
- package/lib/theme/DocSidebarItem/Link/index.d.ts +0 -2
- package/lib/theme/DocSidebarItem/Link/index.js +1 -1
- package/lib/theme/DocSidebarItem/index.d.ts +0 -2
- package/lib/theme/DocSidebarItems/index.d.ts +0 -1
- package/lib/theme/DocSidebarItems/index.js +1 -1
- package/lib/theme/DocTagDocListPage/index.d.ts +0 -2
- package/lib/theme/DocTagDocListPage/index.js +1 -1
- package/lib/theme/DocTagsListPage/index.d.ts +0 -2
- package/lib/theme/DocVersionBadge/index.d.ts +0 -2
- package/lib/theme/DocVersionBadge/index.js +1 -1
- package/lib/theme/DocVersionBanner/index.d.ts +0 -2
- package/lib/theme/DocVersionBanner/index.js +1 -1
- package/lib/theme/DocVersionRoot/index.d.ts +0 -2
- package/lib/theme/DocVersionRoot/index.js +3 -3
- package/lib/theme/DocsRoot/index.d.ts +0 -2
- package/lib/theme/EditMetaRow/index.d.ts +0 -2
- package/lib/theme/EditThisPage/index.d.ts +0 -2
- package/lib/theme/ErrorPageContent.d.ts +0 -2
- package/lib/theme/Footer/Copyright/index.d.ts +0 -2
- package/lib/theme/Footer/Layout/index.d.ts +0 -2
- package/lib/theme/Footer/LinkItem/index.d.ts +0 -2
- package/lib/theme/Footer/Links/MultiColumn/index.d.ts +0 -2
- package/lib/theme/Footer/Links/Simple/index.d.ts +0 -2
- package/lib/theme/Footer/Links/index.d.ts +0 -2
- package/lib/theme/Footer/Logo/index.d.ts +0 -2
- package/lib/theme/Heading/index.d.ts +0 -2
- package/lib/theme/Icon/Arrow/index.d.ts +0 -2
- package/lib/theme/Icon/Close/index.d.ts +0 -2
- package/lib/theme/Icon/Copy/index.d.ts +0 -2
- package/lib/theme/Icon/DarkMode/index.d.ts +0 -2
- package/lib/theme/Icon/Edit/index.d.ts +0 -2
- package/lib/theme/Icon/ExternalLink/index.d.ts +0 -2
- package/lib/theme/Icon/Home/index.d.ts +0 -2
- package/lib/theme/Icon/Language/index.d.ts +0 -2
- package/lib/theme/Icon/LightMode/index.d.ts +0 -2
- package/lib/theme/Icon/Menu/index.d.ts +0 -2
- package/lib/theme/Icon/Socials/Default/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/Default/index.js +30 -0
- package/lib/theme/Icon/Socials/GitHub/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/GitHub/index.js +25 -0
- package/lib/theme/Icon/Socials/GitHub/styles.module.css +14 -0
- package/lib/theme/Icon/Socials/LinkedIn/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/LinkedIn/index.js +24 -0
- package/lib/theme/Icon/Socials/StackOverflow/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/StackOverflow/index.js +27 -0
- package/lib/theme/Icon/Socials/Twitter/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/Twitter/index.js +24 -0
- package/lib/theme/Icon/Socials/X/index.d.ts +9 -0
- package/lib/theme/Icon/Socials/X/index.js +25 -0
- package/lib/theme/Icon/Socials/X/styles.module.css +14 -0
- package/lib/theme/Icon/Success/index.d.ts +0 -2
- package/lib/theme/Icon/WordWrap/index.d.ts +0 -2
- package/lib/theme/LastUpdated/index.d.ts +0 -2
- package/lib/theme/Layout/Provider/index.d.ts +0 -2
- package/lib/theme/Layout/Provider/index.js +1 -1
- package/lib/theme/Layout/index.d.ts +0 -3
- package/lib/theme/Logo/index.d.ts +0 -2
- package/lib/theme/MDXComponents/A.d.ts +0 -2
- package/lib/theme/MDXComponents/Code.d.ts +0 -2
- package/lib/theme/MDXComponents/Details.d.ts +0 -2
- package/lib/theme/MDXComponents/Heading.d.ts +0 -2
- package/lib/theme/MDXComponents/Img/index.d.ts +0 -2
- package/lib/theme/MDXComponents/Li.d.ts +0 -1
- package/lib/theme/MDXComponents/Pre.d.ts +0 -1
- package/lib/theme/MDXComponents/Ul/index.d.ts +0 -2
- package/lib/theme/MDXComponents/index.d.ts +0 -1
- package/lib/theme/MDXContent/index.d.ts +0 -2
- package/lib/theme/MDXPage/index.d.ts +0 -2
- package/lib/theme/MDXPage/index.js +10 -13
- package/lib/theme/Mermaid.d.ts +0 -1
- package/lib/theme/Navbar/ColorModeToggle/index.d.ts +0 -2
- package/lib/theme/Navbar/Content/index.d.ts +0 -1
- package/lib/theme/Navbar/Layout/index.d.ts +0 -2
- package/lib/theme/Navbar/Logo/index.d.ts +0 -1
- package/lib/theme/Navbar/MobileSidebar/Header/index.d.ts +0 -1
- package/lib/theme/Navbar/MobileSidebar/Layout/index.d.ts +0 -2
- package/lib/theme/Navbar/MobileSidebar/PrimaryMenu/index.d.ts +0 -1
- package/lib/theme/Navbar/MobileSidebar/SecondaryMenu/index.d.ts +0 -1
- package/lib/theme/Navbar/MobileSidebar/Toggle/index.d.ts +0 -1
- package/lib/theme/Navbar/MobileSidebar/index.d.ts +0 -1
- package/lib/theme/Navbar/Search/index.d.ts +0 -2
- package/lib/theme/Navbar/index.d.ts +0 -1
- package/lib/theme/NavbarItem/ComponentTypes.d.ts +0 -1
- package/lib/theme/NavbarItem/DefaultNavbarItem.d.ts +0 -2
- package/lib/theme/NavbarItem/DocNavbarItem.d.ts +0 -2
- package/lib/theme/NavbarItem/DocNavbarItem.js +4 -2
- package/lib/theme/NavbarItem/DocSidebarNavbarItem.d.ts +0 -2
- package/lib/theme/NavbarItem/DocSidebarNavbarItem.js +4 -2
- package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.d.ts +0 -2
- package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +19 -14
- package/lib/theme/NavbarItem/DocsVersionNavbarItem.d.ts +0 -2
- package/lib/theme/NavbarItem/DocsVersionNavbarItem.js +1 -1
- package/lib/theme/NavbarItem/DropdownNavbarItem/index.d.ts +0 -2
- package/lib/theme/NavbarItem/HtmlNavbarItem.d.ts +0 -2
- package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/index.d.ts +0 -2
- package/lib/theme/NavbarItem/NavbarNavLink.d.ts +0 -2
- package/lib/theme/NavbarItem/SearchNavbarItem.d.ts +0 -2
- package/lib/theme/NavbarItem/index.d.ts +0 -2
- package/lib/theme/NotFound/Content/index.d.ts +0 -2
- package/lib/theme/NotFound/index.d.ts +0 -1
- package/lib/theme/PaginatorNavLink/index.d.ts +0 -2
- package/lib/theme/SearchBar.d.ts +0 -1
- package/lib/theme/SearchMetadata/index.d.ts +0 -2
- package/lib/theme/SiteMetadata/index.d.ts +0 -1
- package/lib/theme/SkipToContent/index.d.ts +0 -1
- package/lib/theme/TOC/index.d.ts +0 -2
- package/lib/theme/TOCCollapsible/CollapseButton/index.d.ts +0 -2
- package/lib/theme/TOCCollapsible/index.d.ts +0 -2
- package/lib/theme/TOCInline/index.d.ts +0 -2
- package/lib/theme/TOCItems/Tree.d.ts +0 -1
- package/lib/theme/TOCItems/index.d.ts +0 -2
- package/lib/theme/TabItem/index.d.ts +0 -2
- package/lib/theme/Tabs/index.d.ts +0 -2
- package/lib/theme/Tabs/index.js +3 -1
- package/lib/theme/Tag/index.d.ts +0 -2
- package/lib/theme/TagsListByLetter/index.d.ts +0 -2
- package/lib/theme/TagsListInline/index.d.ts +0 -2
- package/lib/theme/ThemedImage/index.d.ts +0 -2
- package/lib/translations.js +2 -3
- package/package.json +15 -15
- package/src/getSwizzleConfig.ts +32 -0
- package/src/options.ts +18 -2
- package/src/theme/Blog/Components/Author/Socials/index.tsx +66 -0
- package/src/theme/Blog/Components/Author/Socials/styles.module.css +39 -0
- package/src/theme/Blog/Components/Author/index.tsx +99 -0
- package/src/theme/Blog/Components/Author/styles.module.css +74 -0
- package/src/theme/Blog/Pages/BlogAuthorsListPage/index.tsx +62 -0
- package/src/theme/Blog/Pages/BlogAuthorsListPage/styles.module.css +11 -0
- package/src/theme/Blog/Pages/BlogAuthorsPostsPage/index.tsx +73 -0
- package/src/theme/BlogListPage/StructuredData/index.tsx +1 -1
- package/src/theme/BlogPostItem/Content/index.tsx +1 -1
- package/src/theme/BlogPostItem/Footer/index.tsx +1 -1
- package/src/theme/BlogPostItem/Header/Authors/index.tsx +5 -4
- package/src/theme/BlogPostItem/Header/Authors/styles.module.css +0 -1
- package/src/theme/BlogPostItem/Header/Info/index.tsx +2 -4
- package/src/theme/BlogPostItem/Header/Title/index.tsx +1 -1
- package/src/theme/BlogPostItem/index.tsx +1 -1
- package/src/theme/BlogPostItems/index.tsx +1 -1
- package/src/theme/BlogPostPage/Metadata/index.tsx +1 -1
- package/src/theme/BlogPostPage/StructuredData/index.tsx +1 -1
- package/src/theme/BlogPostPage/index.tsx +7 -4
- package/src/theme/BlogSidebar/Content/index.tsx +57 -0
- package/src/theme/BlogSidebar/Desktop/index.tsx +27 -17
- package/src/theme/BlogSidebar/Desktop/styles.module.css +5 -0
- package/src/theme/BlogSidebar/Mobile/index.tsx +29 -17
- package/src/theme/BlogSidebar/Mobile/styles.module.css +10 -0
- package/src/theme/BlogTagsPostsPage/index.tsx +3 -33
- package/src/theme/ContentVisibility/Draft/index.tsx +27 -0
- package/src/theme/{Unlisted → ContentVisibility/Unlisted}/index.tsx +1 -1
- package/src/theme/ContentVisibility/index.tsx +27 -0
- package/src/theme/DocBreadcrumbs/index.tsx +2 -4
- package/src/theme/DocCard/index.tsx +2 -2
- package/src/theme/DocCardList/index.tsx +1 -1
- package/src/theme/DocCategoryGeneratedIndexPage/index.tsx +2 -4
- package/src/theme/DocItem/Content/index.tsx +1 -1
- package/src/theme/DocItem/Footer/index.tsx +1 -1
- package/src/theme/DocItem/Layout/index.tsx +4 -6
- package/src/theme/DocItem/Metadata/index.tsx +1 -1
- package/src/theme/DocItem/Paginator/index.tsx +1 -1
- package/src/theme/DocItem/TOC/Desktop/index.tsx +1 -1
- package/src/theme/DocItem/TOC/Mobile/index.tsx +1 -1
- package/src/theme/DocItem/index.tsx +1 -1
- package/src/theme/DocRoot/Layout/Main/index.tsx +1 -1
- package/src/theme/DocRoot/Layout/Sidebar/index.tsx +1 -1
- package/src/theme/DocRoot/Layout/index.tsx +1 -1
- package/src/theme/DocRoot/index.tsx +1 -1
- package/src/theme/DocSidebarItem/Category/index.tsx +2 -2
- package/src/theme/DocSidebarItem/Link/index.tsx +1 -1
- package/src/theme/DocSidebarItems/index.tsx +1 -1
- package/src/theme/DocTagDocListPage/index.tsx +1 -1
- package/src/theme/DocVersionBadge/index.tsx +1 -1
- package/src/theme/DocVersionBanner/index.tsx +1 -1
- package/src/theme/DocVersionRoot/index.tsx +3 -3
- package/src/theme/Icon/Socials/Default/index.tsx +33 -0
- package/src/theme/Icon/Socials/GitHub/index.tsx +29 -0
- package/src/theme/Icon/Socials/GitHub/styles.module.css +14 -0
- package/src/theme/Icon/Socials/LinkedIn/index.tsx +27 -0
- package/src/theme/Icon/Socials/StackOverflow/index.tsx +30 -0
- package/src/theme/Icon/Socials/Twitter/index.tsx +27 -0
- package/src/theme/Icon/Socials/X/index.tsx +29 -0
- package/src/theme/Icon/Socials/X/styles.module.css +14 -0
- package/src/theme/Layout/Provider/index.tsx +1 -1
- package/src/theme/MDXPage/index.tsx +10 -13
- package/src/theme/NavbarItem/DocNavbarItem.tsx +4 -2
- package/src/theme/NavbarItem/DocSidebarNavbarItem.tsx +4 -2
- package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +32 -16
- package/src/theme/NavbarItem/DocsVersionNavbarItem.tsx +1 -1
- package/src/theme/Tabs/index.tsx +3 -1
- package/src/theme-classic.d.ts +106 -12
- package/lib/theme/BlogPostItem/Header/Author/index.d.ts +0 -10
- package/lib/theme/BlogPostItem/Header/Author/index.js +0 -39
- package/src/theme/BlogPostItem/Header/Author/index.tsx +0 -47
- /package/lib/theme/{Unlisted → ContentVisibility/Unlisted}/index.js +0 -0
|
@@ -4,29 +4,36 @@
|
|
|
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';
|
|
8
|
-
import
|
|
9
|
-
|
|
7
|
+
import React, {memo} from 'react';
|
|
8
|
+
import {
|
|
9
|
+
useVisibleBlogSidebarItems,
|
|
10
|
+
BlogSidebarItemList,
|
|
11
|
+
} from '@docusaurus/plugin-content-blog/client';
|
|
10
12
|
import {NavbarSecondaryMenuFiller} from '@docusaurus/theme-common';
|
|
13
|
+
import BlogSidebarContent from '@theme/BlogSidebar/Content';
|
|
14
|
+
import styles from './styles.module.css';
|
|
15
|
+
const ListComponent = ({items}) => {
|
|
16
|
+
return (
|
|
17
|
+
<BlogSidebarItemList
|
|
18
|
+
items={items}
|
|
19
|
+
ulClassName="menu__list"
|
|
20
|
+
liClassName="menu__list-item"
|
|
21
|
+
linkClassName="menu__link"
|
|
22
|
+
linkActiveClassName="menu__link--active"
|
|
23
|
+
/>
|
|
24
|
+
);
|
|
25
|
+
};
|
|
11
26
|
function BlogSidebarMobileSecondaryMenu({sidebar}) {
|
|
12
27
|
const items = useVisibleBlogSidebarItems(sidebar.items);
|
|
13
28
|
return (
|
|
14
|
-
<
|
|
15
|
-
{items
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
to={item.permalink}
|
|
20
|
-
className="menu__link"
|
|
21
|
-
activeClassName="menu__link--active">
|
|
22
|
-
{item.title}
|
|
23
|
-
</Link>
|
|
24
|
-
</li>
|
|
25
|
-
))}
|
|
26
|
-
</ul>
|
|
29
|
+
<BlogSidebarContent
|
|
30
|
+
items={items}
|
|
31
|
+
ListComponent={ListComponent}
|
|
32
|
+
yearGroupHeadingClassName={styles.yearGroupHeading}
|
|
33
|
+
/>
|
|
27
34
|
);
|
|
28
35
|
}
|
|
29
|
-
|
|
36
|
+
function BlogSidebarMobile(props) {
|
|
30
37
|
return (
|
|
31
38
|
<NavbarSecondaryMenuFiller
|
|
32
39
|
component={BlogSidebarMobileSecondaryMenu}
|
|
@@ -34,3 +41,4 @@ export default function BlogSidebarMobile(props) {
|
|
|
34
41
|
/>
|
|
35
42
|
);
|
|
36
43
|
}
|
|
44
|
+
export default memo(BlogSidebarMobile);
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/BlogSidebar';
|
|
10
8
|
export default function BlogSidebar({ sidebar }: Props): JSX.Element | null;
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference types="@docusaurus/plugin-content-blog" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/BlogTagsListPage';
|
|
10
8
|
export default function BlogTagsListPage({ tags, sidebar }: Props): JSX.Element;
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference types="@docusaurus/plugin-content-blog" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/BlogTagsPostsPage';
|
|
10
8
|
export default function BlogTagsPostsPage(props: Props): JSX.Element;
|
|
@@ -6,48 +6,20 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
|
-
import Translate
|
|
9
|
+
import Translate from '@docusaurus/Translate';
|
|
10
10
|
import {
|
|
11
11
|
PageMetadata,
|
|
12
12
|
HtmlClassNameProvider,
|
|
13
13
|
ThemeClassNames,
|
|
14
|
-
usePluralForm,
|
|
15
14
|
} from '@docusaurus/theme-common';
|
|
15
|
+
import {useBlogTagsPostsPageTitle} from '@docusaurus/theme-common/internal';
|
|
16
16
|
import Link from '@docusaurus/Link';
|
|
17
17
|
import BlogLayout from '@theme/BlogLayout';
|
|
18
18
|
import BlogListPaginator from '@theme/BlogListPaginator';
|
|
19
19
|
import SearchMetadata from '@theme/SearchMetadata';
|
|
20
20
|
import BlogPostItems from '@theme/BlogPostItems';
|
|
21
|
-
import Unlisted from '@theme/Unlisted';
|
|
21
|
+
import Unlisted from '@theme/ContentVisibility/Unlisted';
|
|
22
22
|
import Heading from '@theme/Heading';
|
|
23
|
-
// Very simple pluralization: probably good enough for now
|
|
24
|
-
function useBlogPostsPlural() {
|
|
25
|
-
const {selectMessage} = usePluralForm();
|
|
26
|
-
return (count) =>
|
|
27
|
-
selectMessage(
|
|
28
|
-
count,
|
|
29
|
-
translate(
|
|
30
|
-
{
|
|
31
|
-
id: 'theme.blog.post.plurals',
|
|
32
|
-
description:
|
|
33
|
-
'Pluralized label for "{count} posts". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)',
|
|
34
|
-
message: 'One post|{count} posts',
|
|
35
|
-
},
|
|
36
|
-
{count},
|
|
37
|
-
),
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
function useBlogTagsPostsPageTitle(tag) {
|
|
41
|
-
const blogPostsPlural = useBlogPostsPlural();
|
|
42
|
-
return translate(
|
|
43
|
-
{
|
|
44
|
-
id: 'theme.blog.tagTitle',
|
|
45
|
-
description: 'The title of the page for a blog tag',
|
|
46
|
-
message: '{nPosts} tagged with "{tagName}"',
|
|
47
|
-
},
|
|
48
|
-
{nPosts: blogPostsPlural(tag.count), tagName: tag.label},
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
23
|
function BlogTagsPostsPageMetadata({tag}) {
|
|
52
24
|
const title = useBlogTagsPostsPageTitle(tag);
|
|
53
25
|
return (
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/CodeBlock/Content/Element';
|
|
10
8
|
export default function CodeBlockJSX({ children, className, }: Props): JSX.Element;
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/CodeBlock/Content/String';
|
|
10
8
|
export default function CodeBlockString({ children, className: blockClassName, metastring, title: titleProp, showLineNumbers: showLineNumbersProp, language: languageProp, }: Props): JSX.Element;
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/CodeBlock/CopyButton';
|
|
10
8
|
export default function CopyButton({ code, className }: Props): JSX.Element;
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/CodeBlock/Line';
|
|
10
8
|
export default function CodeBlockLine({ line, classNames, showLineNumbers, getLineProps, getTokenProps, }: Props): JSX.Element;
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/CodeBlock/WordWrapButton';
|
|
10
8
|
export default function WordWrapButton({ className, onClick, isEnabled, }: Props): JSX.Element | null;
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/CodeBlock';
|
|
10
8
|
export default function CodeBlock({ children: rawChildren, ...props }: Props): JSX.Element;
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/CodeInline';
|
|
10
8
|
export default function CodeInline(props: Props): JSX.Element;
|
|
@@ -4,7 +4,6 @@
|
|
|
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
|
-
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
8
7
|
import React from 'react';
|
|
9
8
|
import type { Props } from '@theme/ColorModeToggle';
|
|
10
9
|
declare function ColorModeToggle({ className, buttonClassName, value, onChange, }: Props): JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import type { Props } from '@theme/ContentVisibility/Draft';
|
|
8
|
+
export default function Draft({ className }: Props): JSX.Element | null;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import clsx from 'clsx';
|
|
9
|
+
import {
|
|
10
|
+
ThemeClassNames,
|
|
11
|
+
DraftBannerTitle,
|
|
12
|
+
DraftBannerMessage,
|
|
13
|
+
} from '@docusaurus/theme-common';
|
|
14
|
+
import Admonition from '@theme/Admonition';
|
|
15
|
+
export default function Draft({className}) {
|
|
16
|
+
return (
|
|
17
|
+
<Admonition
|
|
18
|
+
type="caution"
|
|
19
|
+
title={<DraftBannerTitle />}
|
|
20
|
+
className={clsx(className, ThemeClassNames.common.draftBanner)}>
|
|
21
|
+
<DraftBannerMessage />
|
|
22
|
+
</Admonition>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
|
|
8
|
-
/// <reference types="react" />
|
|
9
|
-
import type { Props } from '@theme/Unlisted';
|
|
7
|
+
import type { Props } from '@theme/ContentVisibility/Unlisted';
|
|
10
8
|
export default function Unlisted(props: Props): JSX.Element | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import type { Props } from '@theme/ContentVisibility';
|
|
8
|
+
export default function ContentVisibility({ metadata, }: Props): JSX.Element | null;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import Draft from '@theme/ContentVisibility/Draft';
|
|
9
|
+
import Unlisted from '@theme/ContentVisibility/Unlisted';
|
|
10
|
+
export default function ContentVisibility({metadata}) {
|
|
11
|
+
const {unlisted, frontMatter} = metadata;
|
|
12
|
+
// Reading draft/unlisted status from frontMatter is useful to display
|
|
13
|
+
// the banners in dev mode (in dev, metadata.unlisted is always false)
|
|
14
|
+
// See https://github.com/facebook/docusaurus/issues/8285
|
|
15
|
+
return (
|
|
16
|
+
<>
|
|
17
|
+
{(unlisted || frontMatter.unlisted) && <Unlisted />}
|
|
18
|
+
{frontMatter.draft && <Draft />}
|
|
19
|
+
</>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/Details';
|
|
10
8
|
export default function Details({ ...props }: Props): JSX.Element;
|
|
@@ -7,10 +7,8 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
useHomePageRoute,
|
|
13
|
-
} from '@docusaurus/theme-common/internal';
|
|
10
|
+
import {useSidebarBreadcrumbs} from '@docusaurus/plugin-content-docs/client';
|
|
11
|
+
import {useHomePageRoute} from '@docusaurus/theme-common/internal';
|
|
14
12
|
import Link from '@docusaurus/Link';
|
|
15
13
|
import {translate} from '@docusaurus/Translate';
|
|
16
14
|
import HomeBreadcrumbItem from '@theme/DocBreadcrumbs/Items/Home';
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/DocCard';
|
|
10
8
|
export default function DocCard({ item }: Props): JSX.Element;
|
|
@@ -8,9 +8,9 @@ import React from 'react';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import Link from '@docusaurus/Link';
|
|
10
10
|
import {
|
|
11
|
-
findFirstSidebarItemLink,
|
|
12
11
|
useDocById,
|
|
13
|
-
|
|
12
|
+
findFirstSidebarItemLink,
|
|
13
|
+
} from '@docusaurus/plugin-content-docs/client';
|
|
14
14
|
import {usePluralForm} from '@docusaurus/theme-common';
|
|
15
15
|
import isInternalUrl from '@docusaurus/isInternalUrl';
|
|
16
16
|
import {translate} from '@docusaurus/Translate';
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/DocCardList';
|
|
10
8
|
export default function DocCardList(props: Props): JSX.Element;
|
|
@@ -9,7 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import {
|
|
10
10
|
useCurrentSidebarCategory,
|
|
11
11
|
filterDocCardListItems,
|
|
12
|
-
} from '@docusaurus/
|
|
12
|
+
} from '@docusaurus/plugin-content-docs/client';
|
|
13
13
|
import DocCard from '@theme/DocCard';
|
|
14
14
|
function DocCardListForCurrentSidebarCategory({className}) {
|
|
15
15
|
const category = useCurrentSidebarCategory();
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference types="@docusaurus/plugin-content-docs" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/DocCategoryGeneratedIndexPage';
|
|
10
8
|
export default function DocCategoryGeneratedIndexPage(props: Props): JSX.Element;
|
|
@@ -5,10 +5,8 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
useCurrentSidebarCategory,
|
|
11
|
-
} from '@docusaurus/theme-common';
|
|
8
|
+
import {PageMetadata} from '@docusaurus/theme-common';
|
|
9
|
+
import {useCurrentSidebarCategory} from '@docusaurus/plugin-content-docs/client';
|
|
12
10
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
13
11
|
import DocCardList from '@theme/DocCardList';
|
|
14
12
|
import DocPaginator from '@theme/DocPaginator';
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/DocItem/Content';
|
|
10
8
|
export default function DocItemContent({ children }: Props): JSX.Element;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
10
|
-
import {useDoc} from '@docusaurus/
|
|
10
|
+
import {useDoc} from '@docusaurus/plugin-content-docs/client';
|
|
11
11
|
import Heading from '@theme/Heading';
|
|
12
12
|
import MDXContent from '@theme/MDXContent';
|
|
13
13
|
/**
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
10
|
-
import {useDoc} from '@docusaurus/
|
|
10
|
+
import {useDoc} from '@docusaurus/plugin-content-docs/client';
|
|
11
11
|
import TagsListInline from '@theme/TagsListInline';
|
|
12
12
|
import EditMetaRow from '@theme/EditMetaRow';
|
|
13
13
|
export default function DocItemFooter() {
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/DocItem/Layout';
|
|
10
8
|
export default function DocItemLayout({ children }: Props): JSX.Element;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import {useWindowSize} from '@docusaurus/theme-common';
|
|
10
|
-
import {useDoc} from '@docusaurus/
|
|
10
|
+
import {useDoc} from '@docusaurus/plugin-content-docs/client';
|
|
11
11
|
import DocItemPaginator from '@theme/DocItem/Paginator';
|
|
12
12
|
import DocVersionBanner from '@theme/DocVersionBanner';
|
|
13
13
|
import DocVersionBadge from '@theme/DocVersionBadge';
|
|
@@ -16,7 +16,7 @@ import DocItemTOCMobile from '@theme/DocItem/TOC/Mobile';
|
|
|
16
16
|
import DocItemTOCDesktop from '@theme/DocItem/TOC/Desktop';
|
|
17
17
|
import DocItemContent from '@theme/DocItem/Content';
|
|
18
18
|
import DocBreadcrumbs from '@theme/DocBreadcrumbs';
|
|
19
|
-
import
|
|
19
|
+
import ContentVisibility from '@theme/ContentVisibility';
|
|
20
20
|
import styles from './styles.module.css';
|
|
21
21
|
/**
|
|
22
22
|
* Decide if the toc should be rendered, on mobile or desktop viewports
|
|
@@ -39,13 +39,11 @@ function useDocTOC() {
|
|
|
39
39
|
}
|
|
40
40
|
export default function DocItemLayout({children}) {
|
|
41
41
|
const docTOC = useDocTOC();
|
|
42
|
-
const {
|
|
43
|
-
metadata: {unlisted},
|
|
44
|
-
} = useDoc();
|
|
42
|
+
const {metadata} = useDoc();
|
|
45
43
|
return (
|
|
46
44
|
<div className="row">
|
|
47
45
|
<div className={clsx('col', !docTOC.hidden && styles.docItemCol)}>
|
|
48
|
-
{
|
|
46
|
+
<ContentVisibility metadata={metadata} />
|
|
49
47
|
<DocVersionBanner />
|
|
50
48
|
<div className={styles.docItemContainer}>
|
|
51
49
|
<article>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import {PageMetadata} from '@docusaurus/theme-common';
|
|
9
|
-
import {useDoc} from '@docusaurus/
|
|
9
|
+
import {useDoc} from '@docusaurus/plugin-content-docs/client';
|
|
10
10
|
export default function DocItemMetadata() {
|
|
11
11
|
const {metadata, frontMatter, assets} = useDoc();
|
|
12
12
|
return (
|
|
@@ -4,7 +4,6 @@
|
|
|
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
|
-
/// <reference types="react" />
|
|
8
7
|
/**
|
|
9
8
|
* This extra component is needed, because <DocPaginator> should remain generic.
|
|
10
9
|
* DocPaginator is used in non-docs contexts too: generated-index pages...
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import {useDoc} from '@docusaurus/
|
|
8
|
+
import {useDoc} from '@docusaurus/plugin-content-docs/client';
|
|
9
9
|
import DocPaginator from '@theme/DocPaginator';
|
|
10
10
|
/**
|
|
11
11
|
* This extra component is needed, because <DocPaginator> should remain generic.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
9
|
-
import {useDoc} from '@docusaurus/
|
|
9
|
+
import {useDoc} from '@docusaurus/plugin-content-docs/client';
|
|
10
10
|
import TOC from '@theme/TOC';
|
|
11
11
|
export default function DocItemTOCDesktop() {
|
|
12
12
|
const {toc, frontMatter} = useDoc();
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
10
|
-
import {useDoc} from '@docusaurus/
|
|
10
|
+
import {useDoc} from '@docusaurus/plugin-content-docs/client';
|
|
11
11
|
import TOCCollapsible from '@theme/TOCCollapsible';
|
|
12
12
|
import styles from './styles.module.css';
|
|
13
13
|
export default function DocItemTOCMobile() {
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference types="@docusaurus/plugin-content-docs" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/DocItem';
|
|
10
8
|
export default function DocItem(props: Props): JSX.Element;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import {HtmlClassNameProvider} from '@docusaurus/theme-common';
|
|
9
|
-
import {DocProvider} from '@docusaurus/
|
|
9
|
+
import {DocProvider} from '@docusaurus/plugin-content-docs/client';
|
|
10
10
|
import DocItemMetadata from '@theme/DocItem/Metadata';
|
|
11
11
|
import DocItemLayout from '@theme/DocItem/Layout';
|
|
12
12
|
export default function DocItem(props) {
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/DocPaginator';
|
|
10
8
|
export default function DocPaginator(props: Props): JSX.Element;
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/DocRoot/Layout/Main';
|
|
10
8
|
export default function DocRootLayoutMain({ hiddenSidebarContainer, children, }: Props): JSX.Element;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
|
-
import {useDocsSidebar} from '@docusaurus/
|
|
9
|
+
import {useDocsSidebar} from '@docusaurus/plugin-content-docs/client';
|
|
10
10
|
import styles from './styles.module.css';
|
|
11
11
|
export default function DocRootLayoutMain({hiddenSidebarContainer, children}) {
|
|
12
12
|
const sidebar = useDocsSidebar();
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/DocRoot/Layout/Sidebar/ExpandButton';
|
|
10
8
|
export default function DocRootLayoutSidebarExpandButton({ toggleSidebar, }: Props): JSX.Element;
|
|
@@ -4,7 +4,5 @@
|
|
|
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
|
-
/// <reference path="../../../../../src/theme-classic.d.ts" />
|
|
8
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/DocRoot/Layout/Sidebar';
|
|
10
8
|
export default function DocRootLayoutSidebar({ sidebar, hiddenSidebarContainer, setHiddenSidebarContainer, }: Props): JSX.Element;
|