@docusaurus/theme-classic 3.3.2 → 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 -2
- package/lib/index.js +7 -88
- package/lib/inlineScripts.d.ts +16 -0
- package/lib/inlineScripts.js +98 -0
- 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 +5 -32
- 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 +3 -3
- 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 +4 -3
- 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 +1 -3
- package/lib/theme/Tag/index.js +2 -1
- package/lib/theme/TagsListByLetter/index.d.ts +0 -2
- package/lib/theme/TagsListInline/index.d.ts +0 -2
- package/lib/theme/TagsListInline/index.js +3 -3
- 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/index.ts +8 -93
- package/src/inlineScripts.ts +114 -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 +5 -34
- 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 +3 -3
- 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 +4 -2
- 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/Tag/index.tsx +7 -1
- package/src/theme/TagsListInline/index.tsx +3 -3
- 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,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 type { ComponentTypesObject } from '@theme/NavbarItem/ComponentTypes';
|
|
9
8
|
declare const ComponentTypes: ComponentTypesObject;
|
|
10
9
|
export default ComponentTypes;
|
|
@@ -4,8 +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
|
-
/// <reference types="react" />
|
|
9
7
|
import type { Props } from '@theme/NavbarItem/DefaultNavbarItem';
|
|
10
8
|
export default function DefaultNavbarItem({ mobile, position, // Need to destructure position from props so that it doesn't get passed on.
|
|
11
9
|
...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/NavbarItem/DocNavbarItem';
|
|
10
8
|
export default function DocNavbarItem({ docId, label: staticLabel, docsPluginId, ...props }: Props): JSX.Element | null;
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import {
|
|
9
|
-
|
|
8
|
+
import {
|
|
9
|
+
useActiveDocContext,
|
|
10
|
+
useLayoutDoc,
|
|
11
|
+
} from '@docusaurus/plugin-content-docs/client';
|
|
10
12
|
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
11
13
|
export default function DocNavbarItem({
|
|
12
14
|
docId,
|
|
@@ -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/NavbarItem/DocSidebarNavbarItem';
|
|
10
8
|
export default function DocSidebarNavbarItem({ sidebarId, label, docsPluginId, ...props }: Props): JSX.Element;
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import {
|
|
9
|
-
|
|
8
|
+
import {
|
|
9
|
+
useActiveDocContext,
|
|
10
|
+
useLayoutDocsSidebar,
|
|
11
|
+
} from '@docusaurus/plugin-content-docs/client';
|
|
10
12
|
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
11
13
|
export default function DocSidebarNavbarItem({
|
|
12
14
|
sidebarId,
|
|
@@ -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/NavbarItem/DocsVersionDropdownNavbarItem';
|
|
10
8
|
export default function DocsVersionDropdownNavbarItem({ mobile, docsPluginId, dropdownActiveClassDisabled, dropdownItemsBefore, dropdownItemsAfter, ...props }: Props): JSX.Element;
|
|
@@ -8,15 +8,24 @@ import React from 'react';
|
|
|
8
8
|
import {
|
|
9
9
|
useVersions,
|
|
10
10
|
useActiveDocContext,
|
|
11
|
+
useDocsVersionCandidates,
|
|
12
|
+
useDocsPreferredVersion,
|
|
11
13
|
} from '@docusaurus/plugin-content-docs/client';
|
|
12
|
-
import {useDocsPreferredVersion} from '@docusaurus/theme-common';
|
|
13
|
-
import {useDocsVersionCandidates} from '@docusaurus/theme-common/internal';
|
|
14
14
|
import {translate} from '@docusaurus/Translate';
|
|
15
15
|
import {useLocation} from '@docusaurus/router';
|
|
16
16
|
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
17
17
|
import DropdownNavbarItem from '@theme/NavbarItem/DropdownNavbarItem';
|
|
18
|
-
|
|
19
|
-
version.docs.find((doc) => doc.id === version.mainDocId);
|
|
18
|
+
function getVersionMainDoc(version) {
|
|
19
|
+
return version.docs.find((doc) => doc.id === version.mainDocId);
|
|
20
|
+
}
|
|
21
|
+
function getVersionTargetDoc(version, activeDocContext) {
|
|
22
|
+
// We try to link to the same doc, in another version
|
|
23
|
+
// When not possible, fallback to the "main doc" of the version
|
|
24
|
+
return (
|
|
25
|
+
activeDocContext.alternateDocVersions[version.name] ??
|
|
26
|
+
getVersionMainDoc(version)
|
|
27
|
+
);
|
|
28
|
+
}
|
|
20
29
|
export default function DocsVersionDropdownNavbarItem({
|
|
21
30
|
mobile,
|
|
22
31
|
docsPluginId,
|
|
@@ -29,23 +38,19 @@ export default function DocsVersionDropdownNavbarItem({
|
|
|
29
38
|
const activeDocContext = useActiveDocContext(docsPluginId);
|
|
30
39
|
const versions = useVersions(docsPluginId);
|
|
31
40
|
const {savePreferredVersionName} = useDocsPreferredVersion(docsPluginId);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
// When not possible, fallback to the "main doc" of the version
|
|
35
|
-
const versionDoc =
|
|
36
|
-
activeDocContext.alternateDocVersions[version.name] ??
|
|
37
|
-
getVersionMainDoc(version);
|
|
41
|
+
function versionToLink(version) {
|
|
42
|
+
const targetDoc = getVersionTargetDoc(version, activeDocContext);
|
|
38
43
|
return {
|
|
39
44
|
label: version.label,
|
|
40
45
|
// preserve ?search#hash suffix on version switches
|
|
41
|
-
to: `${
|
|
46
|
+
to: `${targetDoc.path}${search}${hash}`,
|
|
42
47
|
isActive: () => version === activeDocContext.activeVersion,
|
|
43
48
|
onClick: () => savePreferredVersionName(version.name),
|
|
44
49
|
};
|
|
45
|
-
}
|
|
50
|
+
}
|
|
46
51
|
const items = [
|
|
47
52
|
...dropdownItemsBefore,
|
|
48
|
-
...
|
|
53
|
+
...versions.map(versionToLink),
|
|
49
54
|
...dropdownItemsAfter,
|
|
50
55
|
];
|
|
51
56
|
const dropdownVersion = useDocsVersionCandidates(docsPluginId)[0];
|
|
@@ -62,7 +67,7 @@ export default function DocsVersionDropdownNavbarItem({
|
|
|
62
67
|
const dropdownTo =
|
|
63
68
|
mobile && items.length > 1
|
|
64
69
|
? undefined
|
|
65
|
-
:
|
|
70
|
+
: getVersionTargetDoc(dropdownVersion, activeDocContext).path;
|
|
66
71
|
// We don't want to render a version dropdown with 0 or 1 item. If we build
|
|
67
72
|
// the site with a single docs version (onlyIncludeVersions: ['1.0.0']),
|
|
68
73
|
// We'd rather render a button instead of a dropdown
|
|
@@ -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/NavbarItem/DocsVersionNavbarItem';
|
|
10
8
|
export default function DocsVersionNavbarItem({ label: staticLabel, to: staticTo, docsPluginId, ...props }: Props): JSX.Element;
|
|
@@ -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 {useDocsVersionCandidates} from '@docusaurus/
|
|
8
|
+
import {useDocsVersionCandidates} from '@docusaurus/plugin-content-docs/client';
|
|
9
9
|
import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem';
|
|
10
10
|
const getVersionMainDoc = (version) =>
|
|
11
11
|
version.docs.find((doc) => doc.id === version.mainDocId);
|
|
@@ -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/NavbarItem/DropdownNavbarItem';
|
|
10
8
|
export default function DropdownNavbarItem({ mobile, ...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/NavbarItem/HtmlNavbarItem';
|
|
10
8
|
export default function HtmlNavbarItem({ value, className, mobile, isDropdownItem, }: 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/NavbarItem/LocaleDropdownNavbarItem';
|
|
10
8
|
export default function LocaleDropdownNavbarItem({ mobile, dropdownItemsBefore, dropdownItemsAfter, queryString, ...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/NavbarItem/NavbarNavLink';
|
|
10
8
|
export default function NavbarNavLink({ activeBasePath, activeBaseRegex, to, href, label, html, isDropdownLink, prependBaseUrlToHref, ...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/NavbarItem/SearchNavbarItem';
|
|
10
8
|
export default function SearchNavbarItem({ mobile, className, }: 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/NavbarItem';
|
|
10
8
|
export default function NavbarItem({ type, ...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/NotFound/Content';
|
|
10
8
|
export default function NotFoundContent({ 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/PaginatorNavLink';
|
|
10
8
|
export default function PaginatorNavLink(props: Props): JSX.Element;
|
package/lib/theme/SearchBar.d.ts
CHANGED
|
@@ -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/SearchMetadata';
|
|
10
8
|
export default function SearchMetadata({ locale, version, tag, }: Props): JSX.Element;
|
package/lib/theme/TOC/index.d.ts
CHANGED
|
@@ -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/TOC';
|
|
10
8
|
export default function TOC({ className, ...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/TOCCollapsible/CollapseButton';
|
|
10
8
|
export default function TOCCollapsibleCollapseButton({ collapsed, ...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/TOCCollapsible';
|
|
10
8
|
export default function TOCCollapsible({ toc, className, minHeadingLevel, maxHeadingLevel, }: 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/TOCInline';
|
|
10
8
|
export default function TOCInline({ toc, minHeadingLevel, maxHeadingLevel, }: 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/TOCItems/Tree';
|
|
10
9
|
declare function TOCItemTree({ toc, className, linkClassName, isChild, }: 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/TOCItems';
|
|
10
8
|
export default function TOCItems({ toc, className, linkClassName, linkActiveClassName, minHeadingLevel: minHeadingLevelOption, maxHeadingLevel: maxHeadingLevelOption, ...props }: 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/TabItem';
|
|
10
8
|
export default function TabItem({ children, hidden, 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/Tabs';
|
|
10
8
|
export default function Tabs(props: Props): JSX.Element;
|
package/lib/theme/Tabs/index.js
CHANGED
|
@@ -91,7 +91,9 @@ function TabContent({lazy, children, selectedValue}) {
|
|
|
91
91
|
// fail-safe or fail-fast? not sure what's best here
|
|
92
92
|
return null;
|
|
93
93
|
}
|
|
94
|
-
return cloneElement(selectedTabItem, {
|
|
94
|
+
return cloneElement(selectedTabItem, {
|
|
95
|
+
className: clsx('margin-top--md', selectedTabItem.props.className),
|
|
96
|
+
});
|
|
95
97
|
}
|
|
96
98
|
return (
|
|
97
99
|
<div className="margin-top--md">
|
package/lib/theme/Tag/index.d.ts
CHANGED
|
@@ -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/Tag';
|
|
10
|
-
export default function Tag({ permalink, label, count }: Props): JSX.Element;
|
|
8
|
+
export default function Tag({ permalink, label, count, description, }: Props): JSX.Element;
|
package/lib/theme/Tag/index.js
CHANGED
|
@@ -8,10 +8,11 @@ import React from 'react';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import Link from '@docusaurus/Link';
|
|
10
10
|
import styles from './styles.module.css';
|
|
11
|
-
export default function Tag({permalink, label, count}) {
|
|
11
|
+
export default function Tag({permalink, label, count, description}) {
|
|
12
12
|
return (
|
|
13
13
|
<Link
|
|
14
14
|
href={permalink}
|
|
15
|
+
title={description}
|
|
15
16
|
className={clsx(
|
|
16
17
|
styles.tag,
|
|
17
18
|
count ? styles.tagWithCount : styles.tagRegular,
|
|
@@ -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/TagsListByLetter';
|
|
10
8
|
export default function TagsListByLetter({ tags }: 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/TagsListInline';
|
|
10
8
|
export default function TagsListInline({ tags }: Props): JSX.Element;
|
|
@@ -20,9 +20,9 @@ export default function TagsListInline({tags}) {
|
|
|
20
20
|
</Translate>
|
|
21
21
|
</b>
|
|
22
22
|
<ul className={clsx(styles.tags, 'padding--none', 'margin-left--sm')}>
|
|
23
|
-
{tags.map((
|
|
24
|
-
<li key={
|
|
25
|
-
<Tag
|
|
23
|
+
{tags.map((tag) => (
|
|
24
|
+
<li key={tag.permalink} className={styles.tag}>
|
|
25
|
+
<Tag {...tag} />
|
|
26
26
|
</li>
|
|
27
27
|
))}
|
|
28
28
|
</ul>
|
|
@@ -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/ThemedImage';
|
|
10
8
|
export default function ThemedImage(props: Props): JSX.Element;
|
package/lib/translations.js
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.getTranslationFiles = getTranslationFiles;
|
|
10
|
+
exports.translateThemeConfig = translateThemeConfig;
|
|
10
11
|
const tslib_1 = require("tslib");
|
|
11
12
|
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
12
13
|
const utils_1 = require("@docusaurus/utils");
|
|
@@ -165,7 +166,6 @@ function getTranslationFiles({ themeConfig, }) {
|
|
|
165
166
|
];
|
|
166
167
|
return translationFiles.filter(Boolean);
|
|
167
168
|
}
|
|
168
|
-
exports.getTranslationFiles = getTranslationFiles;
|
|
169
169
|
function translateThemeConfig({ themeConfig, translationFiles, }) {
|
|
170
170
|
const translationFilesMap = lodash_1.default.keyBy(translationFiles, (f) => f.path);
|
|
171
171
|
return {
|
|
@@ -176,4 +176,3 @@ function translateThemeConfig({ themeConfig, translationFiles, }) {
|
|
|
176
176
|
: undefined,
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
exports.translateThemeConfig = translateThemeConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -20,22 +20,22 @@
|
|
|
20
20
|
"copy:watch": "node ../../admin/scripts/copyUntypedFiles.js --watch"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@docusaurus/core": "3.
|
|
24
|
-
"@docusaurus/mdx-loader": "3.
|
|
25
|
-
"@docusaurus/module-type-aliases": "3.
|
|
26
|
-
"@docusaurus/plugin-content-blog": "3.
|
|
27
|
-
"@docusaurus/plugin-content-docs": "3.
|
|
28
|
-
"@docusaurus/plugin-content-pages": "3.
|
|
29
|
-
"@docusaurus/theme-common": "3.
|
|
30
|
-
"@docusaurus/theme-translations": "3.
|
|
31
|
-
"@docusaurus/types": "3.
|
|
32
|
-
"@docusaurus/utils": "3.
|
|
33
|
-
"@docusaurus/utils-common": "3.
|
|
34
|
-
"@docusaurus/utils-validation": "3.
|
|
23
|
+
"@docusaurus/core": "3.5.0",
|
|
24
|
+
"@docusaurus/mdx-loader": "3.5.0",
|
|
25
|
+
"@docusaurus/module-type-aliases": "3.5.0",
|
|
26
|
+
"@docusaurus/plugin-content-blog": "3.5.0",
|
|
27
|
+
"@docusaurus/plugin-content-docs": "3.5.0",
|
|
28
|
+
"@docusaurus/plugin-content-pages": "3.5.0",
|
|
29
|
+
"@docusaurus/theme-common": "3.5.0",
|
|
30
|
+
"@docusaurus/theme-translations": "3.5.0",
|
|
31
|
+
"@docusaurus/types": "3.5.0",
|
|
32
|
+
"@docusaurus/utils": "3.5.0",
|
|
33
|
+
"@docusaurus/utils-common": "3.5.0",
|
|
34
|
+
"@docusaurus/utils-validation": "3.5.0",
|
|
35
35
|
"@mdx-js/react": "^3.0.0",
|
|
36
36
|
"clsx": "^2.0.0",
|
|
37
37
|
"copy-text-to-clipboard": "^3.2.0",
|
|
38
|
-
"infima": "0.2.0-alpha.
|
|
38
|
+
"infima": "0.2.0-alpha.44",
|
|
39
39
|
"lodash": "^4.17.21",
|
|
40
40
|
"nprogress": "^0.2.0",
|
|
41
41
|
"postcss": "^8.4.26",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=18.0"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "cb5829f3c34b26d798b869e38ee25073488140bd"
|
|
65
65
|
}
|
package/src/getSwizzleConfig.ts
CHANGED
|
@@ -127,6 +127,27 @@ export default function getSwizzleConfig(): SwizzleConfig {
|
|
|
127
127
|
description:
|
|
128
128
|
'The object mapping admonition type to a React component.\nUse it to add custom admonition type components, or replace existing ones.\nCan be ejected or wrapped (only manually, see our documentation).',
|
|
129
129
|
},
|
|
130
|
+
Blog: {
|
|
131
|
+
actions: {
|
|
132
|
+
// Forbidden because it's a parent folder, makes the CLI crash atm
|
|
133
|
+
eject: 'forbidden',
|
|
134
|
+
wrap: 'forbidden',
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
'Blog/Components': {
|
|
138
|
+
actions: {
|
|
139
|
+
// Forbidden because it's a parent folder, makes the CLI crash atm
|
|
140
|
+
eject: 'forbidden',
|
|
141
|
+
wrap: 'forbidden',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
'Blog/Pages': {
|
|
145
|
+
actions: {
|
|
146
|
+
// Forbidden because it's a parent folder, makes the CLI crash atm
|
|
147
|
+
eject: 'forbidden',
|
|
148
|
+
wrap: 'forbidden',
|
|
149
|
+
},
|
|
150
|
+
},
|
|
130
151
|
CodeBlock: {
|
|
131
152
|
actions: {
|
|
132
153
|
eject: 'safe',
|
|
@@ -289,6 +310,17 @@ export default function getSwizzleConfig(): SwizzleConfig {
|
|
|
289
310
|
},
|
|
290
311
|
description: 'The menu icon component',
|
|
291
312
|
},
|
|
313
|
+
'Icon/Socials': {
|
|
314
|
+
actions: {
|
|
315
|
+
// Forbidden because it's a parent folder, makes the CLI crash atm
|
|
316
|
+
// TODO the CLI should rather support --eject
|
|
317
|
+
// Subfolders can be swizzled
|
|
318
|
+
eject: 'forbidden',
|
|
319
|
+
wrap: 'forbidden',
|
|
320
|
+
},
|
|
321
|
+
description:
|
|
322
|
+
'The Icon/Socials folder is not directly swizzle-able, but you can swizzle its sub-components.',
|
|
323
|
+
},
|
|
292
324
|
MDXComponents: {
|
|
293
325
|
actions: {
|
|
294
326
|
eject: 'safe',
|