@seqera/docusaurus-theme-seqera 1.0.0 → 1.0.2-next.10
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/README.md +3 -3
- package/lib/getSwizzleConfig.d.ts +2 -0
- package/lib/getSwizzleConfig.js +400 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +113 -0
- package/lib/inlineScripts.d.ts +10 -0
- package/lib/inlineScripts.js +72 -0
- package/lib/inlineSvgSprites.d.ts +1 -0
- package/lib/inlineSvgSprites.js +8 -0
- package/lib/main-styles.css +322 -0
- package/lib/nprogress.css +36 -0
- package/lib/nprogress.d.ts +4 -0
- package/lib/nprogress.js +19 -0
- package/lib/options.d.ts +8 -0
- package/lib/options.js +427 -0
- package/lib/prism-include-languages.d.ts +1 -0
- package/lib/prism-include-languages.js +3 -0
- package/lib/styles/api.css +42 -0
- package/lib/styles/typography.css +342 -0
- package/lib/theme/Admonition/Icon/Danger.d.ts +3 -0
- package/lib/theme/Admonition/Icon/Danger.js +11 -0
- package/lib/theme/Admonition/Icon/Info.d.ts +3 -0
- package/lib/theme/Admonition/Icon/Info.js +11 -0
- package/lib/theme/Admonition/Icon/Note.d.ts +3 -0
- package/lib/theme/Admonition/Icon/Note.js +11 -0
- package/lib/theme/Admonition/Icon/Tip.d.ts +3 -0
- package/lib/theme/Admonition/Icon/Tip.js +11 -0
- package/lib/theme/Admonition/Icon/Warning.d.ts +3 -0
- package/lib/theme/Admonition/Icon/Warning.js +11 -0
- package/lib/theme/Admonition/Layout/index.d.ts +3 -0
- package/lib/theme/Admonition/Layout/index.js +40 -0
- package/lib/theme/Admonition/Layout/styles.module.css +39 -0
- package/lib/theme/Admonition/Type/Caution.d.ts +3 -0
- package/lib/theme/Admonition/Type/Caution.js +28 -0
- package/lib/theme/Admonition/Type/Danger.d.ts +3 -0
- package/lib/theme/Admonition/Type/Danger.js +26 -0
- package/lib/theme/Admonition/Type/Info.d.ts +3 -0
- package/lib/theme/Admonition/Type/Info.js +26 -0
- package/lib/theme/Admonition/Type/Note.d.ts +3 -0
- package/lib/theme/Admonition/Type/Note.js +26 -0
- package/lib/theme/Admonition/Type/Tip.d.ts +3 -0
- package/lib/theme/Admonition/Type/Tip.js +26 -0
- package/lib/theme/Admonition/Type/Warning.d.ts +3 -0
- package/lib/theme/Admonition/Type/Warning.js +26 -0
- package/lib/theme/Admonition/Types.d.ts +5 -0
- package/lib/theme/Admonition/Types.js +27 -0
- package/lib/theme/Admonition/index.d.ts +3 -0
- package/lib/theme/Admonition/index.js +18 -0
- package/lib/theme/AdmonitionVersioned/AddedInVersion.d.ts +8 -0
- package/lib/theme/AdmonitionVersioned/AddedInVersion.js +6 -0
- package/lib/theme/AdmonitionVersioned/AdmonitionVersioned.d.ts +18 -0
- package/lib/theme/AdmonitionVersioned/AdmonitionVersioned.js +43 -0
- package/lib/theme/AdmonitionVersioned/ChangedInVersion.d.ts +8 -0
- package/lib/theme/AdmonitionVersioned/ChangedInVersion.js +6 -0
- package/lib/theme/AdmonitionVersioned/DeprecatedInVersion.d.ts +8 -0
- package/lib/theme/AdmonitionVersioned/DeprecatedInVersion.js +6 -0
- package/lib/theme/AdmonitionVersioned/getStableVersion.d.ts +4 -0
- package/lib/theme/AdmonitionVersioned/getStableVersion.js +20 -0
- package/lib/theme/AdmonitionVersioned/index.d.ts +1 -0
- package/lib/theme/AdmonitionVersioned/index.js +5 -0
- package/lib/theme/AdmonitionVersioned/stableVersions.d.ts +20 -0
- package/lib/theme/AdmonitionVersioned/stableVersions.js +91 -0
- package/lib/theme/AnnouncementBar/CloseButton/index.d.ts +3 -0
- package/lib/theme/AnnouncementBar/CloseButton/index.js +20 -0
- package/lib/theme/AnnouncementBar/CloseButton/styles.module.css +6 -0
- package/lib/theme/AnnouncementBar/Content/index.d.ts +3 -0
- package/lib/theme/AnnouncementBar/Content/index.js +17 -0
- package/lib/theme/AnnouncementBar/Content/styles.module.css +12 -0
- package/lib/theme/AnnouncementBar/index.d.ts +2 -0
- package/lib/theme/AnnouncementBar/index.js +33 -0
- package/lib/theme/AnnouncementBar/styles.module.css +57 -0
- package/lib/theme/BackToTopButton/index.d.ts +2 -0
- package/lib/theme/BackToTopButton/index.js +26 -0
- package/lib/theme/BackToTopButton/styles.module.css +39 -0
- package/lib/theme/Blog/Components/Author/Socials/index.d.ts +5 -0
- package/lib/theme/Blog/Components/Author/Socials/index.js +57 -0
- package/lib/theme/Blog/Components/Author/Socials/styles.module.css +34 -0
- package/lib/theme/Blog/Components/Author/index.d.ts +3 -0
- package/lib/theme/Blog/Components/Author/index.js +84 -0
- package/lib/theme/Blog/Components/Author/styles.module.css +69 -0
- package/lib/theme/Blog/Pages/BlogAuthorsListPage/index.d.ts +3 -0
- package/lib/theme/Blog/Pages/BlogAuthorsListPage/index.js +48 -0
- package/lib/theme/Blog/Pages/BlogAuthorsListPage/styles.module.css +6 -0
- package/lib/theme/Blog/Pages/BlogAuthorsPostsPage/index.d.ts +3 -0
- package/lib/theme/Blog/Pages/BlogAuthorsPostsPage/index.js +70 -0
- package/lib/theme/BlogArchivePage/index.d.ts +3 -0
- package/lib/theme/BlogArchivePage/index.js +87 -0
- package/lib/theme/BlogLayout/index.d.ts +3 -0
- package/lib/theme/BlogLayout/index.js +25 -0
- package/lib/theme/BlogListPage/StructuredData/index.d.ts +3 -0
- package/lib/theme/BlogListPage/StructuredData/index.js +13 -0
- package/lib/theme/BlogListPage/index.d.ts +3 -0
- package/lib/theme/BlogListPage/index.js +50 -0
- package/lib/theme/BlogListPaginator/index.d.ts +3 -0
- package/lib/theme/BlogListPaginator/index.js +42 -0
- package/lib/theme/BlogPostItem/Container/index.d.ts +3 -0
- package/lib/theme/BlogPostItem/Container/index.js +4 -0
- package/lib/theme/BlogPostItem/Content/index.d.ts +3 -0
- package/lib/theme/BlogPostItem/Content/index.js +16 -0
- package/lib/theme/BlogPostItem/Footer/ReadMoreLink/index.d.ts +3 -0
- package/lib/theme/BlogPostItem/Footer/ReadMoreLink/index.js +32 -0
- package/lib/theme/BlogPostItem/Footer/index.d.ts +2 -0
- package/lib/theme/BlogPostItem/Footer/index.js +76 -0
- package/lib/theme/BlogPostItem/Header/Authors/index.d.ts +3 -0
- package/lib/theme/BlogPostItem/Header/Authors/index.js +43 -0
- package/lib/theme/BlogPostItem/Header/Authors/styles.module.css +15 -0
- package/lib/theme/BlogPostItem/Header/Info/index.d.ts +3 -0
- package/lib/theme/BlogPostItem/Header/Info/index.js +58 -0
- package/lib/theme/BlogPostItem/Header/Info/styles.module.css +5 -0
- package/lib/theme/BlogPostItem/Header/Title/index.d.ts +3 -0
- package/lib/theme/BlogPostItem/Header/Title/index.js +15 -0
- package/lib/theme/BlogPostItem/Header/Title/styles.module.css +14 -0
- package/lib/theme/BlogPostItem/Header/index.d.ts +2 -0
- package/lib/theme/BlogPostItem/Header/index.js +13 -0
- package/lib/theme/BlogPostItem/index.d.ts +3 -0
- package/lib/theme/BlogPostItem/index.js +22 -0
- package/lib/theme/BlogPostItems/index.d.ts +3 -0
- package/lib/theme/BlogPostItems/index.js +21 -0
- package/lib/theme/BlogPostPage/Metadata/index.d.ts +2 -0
- package/lib/theme/BlogPostPage/Metadata/index.js +35 -0
- package/lib/theme/BlogPostPage/StructuredData/index.d.ts +2 -0
- package/lib/theme/BlogPostPage/StructuredData/index.js +13 -0
- package/lib/theme/BlogPostPage/index.d.ts +3 -0
- package/lib/theme/BlogPostPage/index.js +62 -0
- package/lib/theme/BlogPostPaginator/index.d.ts +3 -0
- package/lib/theme/BlogPostPaginator/index.js +41 -0
- package/lib/theme/BlogSidebar/Content/index.d.ts +5 -0
- package/lib/theme/BlogSidebar/Content/index.js +35 -0
- package/lib/theme/BlogSidebar/Desktop/index.d.ts +5 -0
- package/lib/theme/BlogSidebar/Desktop/index.js +45 -0
- package/lib/theme/BlogSidebar/Desktop/styles.module.css +46 -0
- package/lib/theme/BlogSidebar/Mobile/index.d.ts +5 -0
- package/lib/theme/BlogSidebar/Mobile/index.js +38 -0
- package/lib/theme/BlogSidebar/Mobile/styles.module.css +5 -0
- package/lib/theme/BlogSidebar/index.d.ts +3 -0
- package/lib/theme/BlogSidebar/index.js +15 -0
- package/lib/theme/BlogTagsListPage/index.d.ts +3 -0
- package/lib/theme/BlogTagsListPage/index.js +29 -0
- package/lib/theme/BlogTagsPostsPage/index.d.ts +3 -0
- package/lib/theme/BlogTagsPostsPage/index.js +58 -0
- package/lib/theme/CodeBlock/Buttons/Button/index.d.ts +3 -0
- package/lib/theme/CodeBlock/Buttons/Button/index.js +7 -0
- package/lib/theme/CodeBlock/Buttons/CopyButton/index.d.ts +3 -0
- package/lib/theme/CodeBlock/Buttons/CopyButton/index.js +64 -0
- package/lib/theme/CodeBlock/Buttons/CopyButton/styles.module.css +42 -0
- package/lib/theme/CodeBlock/Buttons/WordWrapButton/index.d.ts +3 -0
- package/lib/theme/CodeBlock/Buttons/WordWrapButton/index.js +32 -0
- package/lib/theme/CodeBlock/Buttons/WordWrapButton/styles.module.css +10 -0
- package/lib/theme/CodeBlock/Buttons/index.d.ts +3 -0
- package/lib/theme/CodeBlock/Buttons/index.js +21 -0
- package/lib/theme/CodeBlock/Buttons/styles.module.css +32 -0
- package/lib/theme/CodeBlock/Container/index.d.ts +4 -0
- package/lib/theme/CodeBlock/Container/index.js +21 -0
- package/lib/theme/CodeBlock/Container/styles.module.css +9 -0
- package/lib/theme/CodeBlock/Content/Element.d.ts +3 -0
- package/lib/theme/CodeBlock/Content/Element.js +19 -0
- package/lib/theme/CodeBlock/Content/String.d.ts +3 -0
- package/lib/theme/CodeBlock/Content/String.js +31 -0
- package/lib/theme/CodeBlock/Content/index.d.ts +3 -0
- package/lib/theme/CodeBlock/Content/index.js +68 -0
- package/lib/theme/CodeBlock/Content/styles.module.css +30 -0
- package/lib/theme/CodeBlock/Layout/index.d.ts +3 -0
- package/lib/theme/CodeBlock/Layout/index.js +24 -0
- package/lib/theme/CodeBlock/Layout/styles.module.css +22 -0
- package/lib/theme/CodeBlock/Line/Token/index.d.ts +3 -0
- package/lib/theme/CodeBlock/Line/Token/index.js +5 -0
- package/lib/theme/CodeBlock/Line/index.d.ts +3 -0
- package/lib/theme/CodeBlock/Line/index.js +48 -0
- package/lib/theme/CodeBlock/Line/styles.module.css +47 -0
- package/lib/theme/CodeBlock/Title/index.d.ts +3 -0
- package/lib/theme/CodeBlock/Title/index.js +4 -0
- package/lib/theme/CodeBlock/index.d.ts +3 -0
- package/lib/theme/CodeBlock/index.js +32 -0
- package/lib/theme/CodeInline/index.d.ts +3 -0
- package/lib/theme/CodeInline/index.js +7 -0
- package/lib/theme/ColorModeToggle/index.d.ts +5 -0
- package/lib/theme/ColorModeToggle/index.js +115 -0
- package/lib/theme/ColorModeToggle/styles.module.css +35 -0
- package/lib/theme/ContentVisibility/Draft/index.d.ts +3 -0
- package/lib/theme/ContentVisibility/Draft/index.js +18 -0
- package/lib/theme/ContentVisibility/Unlisted/index.d.ts +3 -0
- package/lib/theme/ContentVisibility/Unlisted/index.js +32 -0
- package/lib/theme/ContentVisibility/index.d.ts +3 -0
- package/lib/theme/ContentVisibility/index.js +15 -0
- package/lib/theme/Details/index.d.ts +3 -0
- package/lib/theme/Details/index.js +15 -0
- package/lib/theme/Details/styles.module.css +8 -0
- package/lib/theme/DocBreadcrumbs/Items/Home/index.d.ts +2 -0
- package/lib/theme/DocBreadcrumbs/Items/Home/index.js +22 -0
- package/lib/theme/DocBreadcrumbs/Items/Home/styles.module.css +9 -0
- package/lib/theme/DocBreadcrumbs/StructuredData/index.d.ts +3 -0
- package/lib/theme/DocBreadcrumbs/StructuredData/index.js +15 -0
- package/lib/theme/DocBreadcrumbs/index.d.ts +2 -0
- package/lib/theme/DocBreadcrumbs/index.js +76 -0
- package/lib/theme/DocBreadcrumbs/styles.module.css +14 -0
- package/lib/theme/DocCard/index.d.ts +3 -0
- package/lib/theme/DocCard/index.js +96 -0
- package/lib/theme/DocCard/styles.module.css +29 -0
- package/lib/theme/DocCardList/index.d.ts +3 -0
- package/lib/theme/DocCardList/index.js +33 -0
- package/lib/theme/DocCardList/styles.module.css +9 -0
- package/lib/theme/DocCategoryGeneratedIndexPage/index.d.ts +3 -0
- package/lib/theme/DocCategoryGeneratedIndexPage/index.js +57 -0
- package/lib/theme/DocCategoryGeneratedIndexPage/styles.module.css +13 -0
- package/lib/theme/DocItem/Content/index.d.ts +3 -0
- package/lib/theme/DocItem/Content/index.js +38 -0
- package/lib/theme/DocItem/Footer/index.d.ts +2 -0
- package/lib/theme/DocItem/Footer/index.js +43 -0
- package/lib/theme/DocItem/Layout/index.d.ts +3 -0
- package/lib/theme/DocItem/Layout/index.js +60 -0
- package/lib/theme/DocItem/Layout/styles.module.css +12 -0
- package/lib/theme/DocItem/Metadata/index.d.ts +2 -0
- package/lib/theme/DocItem/Metadata/index.js +14 -0
- package/lib/theme/DocItem/Paginator/index.d.ts +6 -0
- package/lib/theme/DocItem/Paginator/index.js +17 -0
- package/lib/theme/DocItem/TOC/Desktop/index.d.ts +2 -0
- package/lib/theme/DocItem/TOC/Desktop/index.js +15 -0
- package/lib/theme/DocItem/TOC/Mobile/index.d.ts +2 -0
- package/lib/theme/DocItem/TOC/Mobile/index.js +17 -0
- package/lib/theme/DocItem/TOC/Mobile/styles.module.css +26 -0
- package/lib/theme/DocItem/index.d.ts +3 -0
- package/lib/theme/DocItem/index.js +19 -0
- package/lib/theme/DocPaginator/index.d.ts +3 -0
- package/lib/theme/DocPaginator/index.js +42 -0
- package/lib/theme/DocRoot/Layout/Main/index.d.ts +3 -0
- package/lib/theme/DocRoot/Layout/Main/index.js +23 -0
- package/lib/theme/DocRoot/Layout/Main/styles.module.css +23 -0
- package/lib/theme/DocRoot/Layout/Sidebar/ExpandButton/index.d.ts +3 -0
- package/lib/theme/DocRoot/Layout/Sidebar/ExpandButton/index.js +28 -0
- package/lib/theme/DocRoot/Layout/Sidebar/ExpandButton/styles.module.css +29 -0
- package/lib/theme/DocRoot/Layout/Sidebar/index.d.ts +3 -0
- package/lib/theme/DocRoot/Layout/Sidebar/index.js +70 -0
- package/lib/theme/DocRoot/Layout/Sidebar/styles.module.css +34 -0
- package/lib/theme/DocRoot/Layout/index.d.ts +3 -0
- package/lib/theme/DocRoot/Layout/index.js +27 -0
- package/lib/theme/DocRoot/Layout/styles.module.css +11 -0
- package/lib/theme/DocRoot/index.d.ts +3 -0
- package/lib/theme/DocRoot/index.js +25 -0
- package/lib/theme/DocSidebar/Desktop/CollapseButton/index.d.ts +3 -0
- package/lib/theme/DocSidebar/Desktop/CollapseButton/index.js +25 -0
- package/lib/theme/DocSidebar/Desktop/CollapseButton/styles.module.css +42 -0
- package/lib/theme/DocSidebar/Desktop/Content/index.d.ts +3 -0
- package/lib/theme/DocSidebar/Desktop/Content/index.js +44 -0
- package/lib/theme/DocSidebar/Desktop/Content/styles.module.css +18 -0
- package/lib/theme/DocSidebar/Desktop/index.d.ts +5 -0
- package/lib/theme/DocSidebar/Desktop/index.js +33 -0
- package/lib/theme/DocSidebar/Desktop/styles.module.css +39 -0
- package/lib/theme/DocSidebar/Mobile/index.d.ts +5 -0
- package/lib/theme/DocSidebar/Mobile/index.js +39 -0
- package/lib/theme/DocSidebar/index.d.ts +3 -0
- package/lib/theme/DocSidebar/index.js +18 -0
- package/lib/theme/DocSidebarItem/Category/index.d.ts +3 -0
- package/lib/theme/DocSidebarItem/Category/index.js +273 -0
- package/lib/theme/DocSidebarItem/Category/styles.module.css +35 -0
- package/lib/theme/DocSidebarItem/Html/index.d.ts +3 -0
- package/lib/theme/DocSidebarItem/Html/index.js +23 -0
- package/lib/theme/DocSidebarItem/Html/styles.module.css +8 -0
- package/lib/theme/DocSidebarItem/Link/index.d.ts +3 -0
- package/lib/theme/DocSidebarItem/Link/index.js +60 -0
- package/lib/theme/DocSidebarItem/Link/styles.module.css +13 -0
- package/lib/theme/DocSidebarItem/index.d.ts +3 -0
- package/lib/theme/DocSidebarItem/index.js +27 -0
- package/lib/theme/DocSidebarItems/index.d.ts +5 -0
- package/lib/theme/DocSidebarItems/index.js +18 -0
- package/lib/theme/DocTagDocListPage/index.d.ts +3 -0
- package/lib/theme/DocTagDocListPage/index.js +98 -0
- package/lib/theme/DocTagsListPage/index.d.ts +3 -0
- package/lib/theme/DocTagsListPage/index.js +43 -0
- package/lib/theme/DocVersionBadge/index.d.ts +3 -0
- package/lib/theme/DocVersionBadge/index.js +25 -0
- package/lib/theme/DocVersionBanner/index.d.ts +3 -0
- package/lib/theme/DocVersionBanner/index.js +125 -0
- package/lib/theme/DocVersionRoot/index.d.ts +3 -0
- package/lib/theme/DocVersionRoot/index.js +40 -0
- package/lib/theme/DocsRoot/index.d.ts +3 -0
- package/lib/theme/DocsRoot/index.js +12 -0
- package/lib/theme/EditMetaRow/index.d.ts +3 -0
- package/lib/theme/EditMetaRow/index.js +27 -0
- package/lib/theme/EditMetaRow/styles.module.css +19 -0
- package/lib/theme/EditThisPage/index.d.ts +3 -0
- package/lib/theme/EditThisPage/index.js +18 -0
- package/lib/theme/ErrorPageContent.d.ts +3 -0
- package/lib/theme/ErrorPageContent.js +34 -0
- package/lib/theme/Footer/Copyright/index.d.ts +3 -0
- package/lib/theme/Footer/Copyright/index.js +11 -0
- package/lib/theme/Footer/Layout/index.d.ts +3 -0
- package/lib/theme/Footer/Layout/index.js +35 -0
- package/lib/theme/Footer/LinkItem/index.d.ts +3 -0
- package/lib/theme/Footer/LinkItem/index.js +26 -0
- package/lib/theme/Footer/Links/MultiColumn/index.d.ts +3 -0
- package/lib/theme/Footer/Links/MultiColumn/index.js +44 -0
- package/lib/theme/Footer/Links/Simple/index.d.ts +3 -0
- package/lib/theme/Footer/Links/Simple/index.js +32 -0
- package/lib/theme/Footer/Links/index.d.ts +3 -0
- package/lib/theme/Footer/Links/index.js +11 -0
- package/lib/theme/Footer/Logo/index.d.ts +3 -0
- package/lib/theme/Footer/Logo/index.js +35 -0
- package/lib/theme/Footer/Logo/styles.module.css +11 -0
- package/lib/theme/Footer/index.d.ts +4 -0
- package/lib/theme/Footer/index.js +22 -0
- package/lib/theme/Heading/index.d.ts +4 -0
- package/lib/theme/Heading/index.js +42 -0
- package/lib/theme/Heading/styles.module.css +17 -0
- package/lib/theme/Homepage/index.d.ts +5 -0
- package/lib/theme/Homepage/index.js +161 -0
- package/lib/theme/Icon/AI/index.d.ts +3 -0
- package/lib/theme/Icon/AI/index.js +17 -0
- package/lib/theme/Icon/AWS/index.d.ts +3 -0
- package/lib/theme/Icon/AWS/index.js +19 -0
- package/lib/theme/Icon/Arrow/index.d.ts +3 -0
- package/lib/theme/Icon/Arrow/index.js +11 -0
- package/lib/theme/Icon/Azure/index.d.ts +3 -0
- package/lib/theme/Icon/Azure/index.js +26 -0
- package/lib/theme/Icon/Changelog/index.d.ts +3 -0
- package/lib/theme/Icon/Changelog/index.js +22 -0
- package/lib/theme/Icon/ChatBubble/index.d.ts +3 -0
- package/lib/theme/Icon/ChatBubble/index.js +21 -0
- package/lib/theme/Icon/ChatBubbles/index.d.ts +3 -0
- package/lib/theme/Icon/ChatBubbles/index.js +36 -0
- package/lib/theme/Icon/Close/index.d.ts +3 -0
- package/lib/theme/Icon/Close/index.js +17 -0
- package/lib/theme/Icon/Cog/index.d.ts +3 -0
- package/lib/theme/Icon/Cog/index.js +43 -0
- package/lib/theme/Icon/Copy/index.d.ts +3 -0
- package/lib/theme/Icon/Copy/index.js +11 -0
- package/lib/theme/Icon/DarkMode/index.d.ts +3 -0
- package/lib/theme/Icon/DarkMode/index.js +11 -0
- package/lib/theme/Icon/Edit/index.d.ts +3 -0
- package/lib/theme/Icon/Edit/index.js +19 -0
- package/lib/theme/Icon/Edit/styles.module.css +6 -0
- package/lib/theme/Icon/Envelope/index.d.ts +3 -0
- package/lib/theme/Icon/Envelope/index.js +27 -0
- package/lib/theme/Icon/ExternalLink/index.d.ts +3 -0
- package/lib/theme/Icon/ExternalLink/index.js +21 -0
- package/lib/theme/Icon/ExternalLink/styles.module.css +5 -0
- package/lib/theme/Icon/Fusion/index.d.ts +3 -0
- package/lib/theme/Icon/Fusion/index.js +30 -0
- package/lib/theme/Icon/GoogleCloud/index.d.ts +3 -0
- package/lib/theme/Icon/GoogleCloud/index.js +58 -0
- package/lib/theme/Icon/Home/index.d.ts +3 -0
- package/lib/theme/Icon/Home/index.js +11 -0
- package/lib/theme/Icon/Language/index.d.ts +3 -0
- package/lib/theme/Icon/Language/index.js +16 -0
- package/lib/theme/Icon/LightMode/index.d.ts +3 -0
- package/lib/theme/Icon/LightMode/index.js +11 -0
- package/lib/theme/Icon/MCP/index.d.ts +3 -0
- package/lib/theme/Icon/MCP/index.js +72 -0
- package/lib/theme/Icon/Menu/index.d.ts +3 -0
- package/lib/theme/Icon/Menu/index.js +25 -0
- package/lib/theme/Icon/MultiQC/index.d.ts +3 -0
- package/lib/theme/Icon/MultiQC/index.js +23 -0
- package/lib/theme/Icon/Nextflow/index.d.ts +3 -0
- package/lib/theme/Icon/Nextflow/index.js +23 -0
- package/lib/theme/Icon/QuestionMark/index.d.ts +3 -0
- package/lib/theme/Icon/QuestionMark/index.js +44 -0
- package/lib/theme/Icon/SeqeraCloud/index.d.ts +3 -0
- package/lib/theme/Icon/SeqeraCloud/index.js +33 -0
- package/lib/theme/Icon/SeqeraEnterprise/index.d.ts +3 -0
- package/lib/theme/Icon/SeqeraEnterprise/index.js +370 -0
- package/lib/theme/Icon/SeqeraLogo/index.d.ts +3 -0
- package/lib/theme/Icon/SeqeraLogo/index.js +18 -0
- package/lib/theme/Icon/ServiceStatus/index.d.ts +3 -0
- package/lib/theme/Icon/ServiceStatus/index.js +99 -0
- package/lib/theme/Icon/Sidebar/index.d.ts +3 -0
- package/lib/theme/Icon/Sidebar/index.js +21 -0
- package/lib/theme/Icon/Socials/Bluesky/index.d.ts +3 -0
- package/lib/theme/Icon/Socials/Bluesky/index.js +19 -0
- package/lib/theme/Icon/Socials/Bluesky/styles.module.css +9 -0
- package/lib/theme/Icon/Socials/Default/index.d.ts +3 -0
- package/lib/theme/Icon/Socials/Default/index.js +24 -0
- package/lib/theme/Icon/Socials/Email/index.d.ts +3 -0
- package/lib/theme/Icon/Socials/Email/index.js +19 -0
- package/lib/theme/Icon/Socials/GitHub/index.d.ts +3 -0
- package/lib/theme/Icon/Socials/GitHub/index.js +19 -0
- package/lib/theme/Icon/Socials/GitHub/styles.module.css +9 -0
- package/lib/theme/Icon/Socials/Instagram/index.d.ts +3 -0
- package/lib/theme/Icon/Socials/Instagram/index.js +19 -0
- package/lib/theme/Icon/Socials/Instagram/styles.module.css +9 -0
- package/lib/theme/Icon/Socials/LinkedIn/index.d.ts +3 -0
- package/lib/theme/Icon/Socials/LinkedIn/index.js +19 -0
- package/lib/theme/Icon/Socials/LinkedIn/styles.module.css +9 -0
- package/lib/theme/Icon/Socials/Mastodon/index.d.ts +3 -0
- package/lib/theme/Icon/Socials/Mastodon/index.js +36 -0
- package/lib/theme/Icon/Socials/StackOverflow/index.d.ts +3 -0
- package/lib/theme/Icon/Socials/StackOverflow/index.js +21 -0
- package/lib/theme/Icon/Socials/Threads/index.d.ts +3 -0
- package/lib/theme/Icon/Socials/Threads/index.js +20 -0
- package/lib/theme/Icon/Socials/Threads/styles.module.css +9 -0
- package/lib/theme/Icon/Socials/Twitch/index.d.ts +3 -0
- package/lib/theme/Icon/Socials/Twitch/index.js +29 -0
- package/lib/theme/Icon/Socials/Twitter/index.d.ts +3 -0
- package/lib/theme/Icon/Socials/Twitter/index.js +18 -0
- package/lib/theme/Icon/Socials/X/index.d.ts +3 -0
- package/lib/theme/Icon/Socials/X/index.js +19 -0
- package/lib/theme/Icon/Socials/X/styles.module.css +9 -0
- package/lib/theme/Icon/Socials/YouTube/index.d.ts +3 -0
- package/lib/theme/Icon/Socials/YouTube/index.js +19 -0
- package/lib/theme/Icon/Success/index.d.ts +3 -0
- package/lib/theme/Icon/Success/index.js +11 -0
- package/lib/theme/Icon/SystemColorMode/index.d.ts +3 -0
- package/lib/theme/Icon/SystemColorMode/index.js +10 -0
- package/lib/theme/Icon/Wave/index.d.ts +3 -0
- package/lib/theme/Icon/Wave/index.js +30 -0
- package/lib/theme/Icon/WordWrap/index.d.ts +3 -0
- package/lib/theme/Icon/WordWrap/index.js +11 -0
- package/lib/theme/LastUpdated/index.d.ts +3 -0
- package/lib/theme/LastUpdated/index.js +71 -0
- package/lib/theme/Layout/Provider/index.d.ts +3 -0
- package/lib/theme/Layout/Provider/index.js +21 -0
- package/lib/theme/Layout/index.d.ts +3 -0
- package/lib/theme/Layout/index.js +53 -0
- package/lib/theme/Layout/styles.module.css +23 -0
- package/lib/theme/Logo/index.d.ts +3 -0
- package/lib/theme/Logo/index.js +60 -0
- package/lib/theme/MDXComponents/A/index.d.ts +3 -0
- package/lib/theme/MDXComponents/A/index.js +11 -0
- package/lib/theme/MDXComponents/Button/index.d.ts +9 -0
- package/lib/theme/MDXComponents/Button/index.js +31 -0
- package/lib/theme/MDXComponents/Code.d.ts +3 -0
- package/lib/theme/MDXComponents/Code.js +20 -0
- package/lib/theme/MDXComponents/Details.d.ts +3 -0
- package/lib/theme/MDXComponents/Details.js +16 -0
- package/lib/theme/MDXComponents/Heading.d.ts +3 -0
- package/lib/theme/MDXComponents/Heading.js +5 -0
- package/lib/theme/MDXComponents/Img/index.d.ts +3 -0
- package/lib/theme/MDXComponents/Img/index.js +17 -0
- package/lib/theme/MDXComponents/Img/styles.module.css +5 -0
- package/lib/theme/MDXComponents/Li.d.ts +3 -0
- package/lib/theme/MDXComponents/Li.js +12 -0
- package/lib/theme/MDXComponents/Pre.d.ts +3 -0
- package/lib/theme/MDXComponents/Pre.js +6 -0
- package/lib/theme/MDXComponents/Ul/index.d.ts +3 -0
- package/lib/theme/MDXComponents/Ul/index.js +19 -0
- package/lib/theme/MDXComponents/Ul/styles.module.css +9 -0
- package/lib/theme/MDXComponents/index.d.ts +3 -0
- package/lib/theme/MDXComponents/index.js +40 -0
- package/lib/theme/MDXContent/index.d.ts +3 -0
- package/lib/theme/MDXContent/index.js +6 -0
- package/lib/theme/MDXPage/index.d.ts +3 -0
- package/lib/theme/MDXPage/index.js +80 -0
- package/lib/theme/MDXPage/styles.module.css +5 -0
- package/lib/theme/Mermaid.d.ts +1 -0
- package/lib/theme/Mermaid.js +7 -0
- package/lib/theme/Navbar/ColorModeToggle/index.d.ts +3 -0
- package/lib/theme/Navbar/ColorModeToggle/index.js +23 -0
- package/lib/theme/Navbar/ColorModeToggle/styles.module.css +5 -0
- package/lib/theme/Navbar/Content/index.d.ts +2 -0
- package/lib/theme/Navbar/Content/index.js +136 -0
- package/lib/theme/Navbar/Content/styles.module.css +19 -0
- package/lib/theme/Navbar/Layout/index.d.ts +3 -0
- package/lib/theme/Navbar/Layout/index.js +53 -0
- package/lib/theme/Navbar/Layout/styles.module.css +9 -0
- package/lib/theme/Navbar/Logo/index.d.ts +2 -0
- package/lib/theme/Navbar/Logo/index.js +11 -0
- package/lib/theme/Navbar/MobileSidebar/Header/index.d.ts +2 -0
- package/lib/theme/Navbar/MobileSidebar/Header/index.js +32 -0
- package/lib/theme/Navbar/MobileSidebar/Layout/index.d.ts +3 -0
- package/lib/theme/Navbar/MobileSidebar/Layout/index.js +55 -0
- package/lib/theme/Navbar/MobileSidebar/Layout/styles.module.css +11 -0
- package/lib/theme/Navbar/MobileSidebar/PrimaryMenu/index.d.ts +2 -0
- package/lib/theme/Navbar/MobileSidebar/PrimaryMenu/index.js +86 -0
- package/lib/theme/Navbar/MobileSidebar/SecondaryMenu/index.d.ts +2 -0
- package/lib/theme/Navbar/MobileSidebar/SecondaryMenu/index.js +33 -0
- package/lib/theme/Navbar/MobileSidebar/Toggle/index.d.ts +2 -0
- package/lib/theme/Navbar/MobileSidebar/Toggle/index.js +22 -0
- package/lib/theme/Navbar/MobileSidebar/index.d.ts +2 -0
- package/lib/theme/Navbar/MobileSidebar/index.js +23 -0
- package/lib/theme/Navbar/Search/index.d.ts +3 -0
- package/lib/theme/Navbar/Search/index.js +10 -0
- package/lib/theme/Navbar/Search/styles.module.css +22 -0
- package/lib/theme/Navbar/Submenu/SubmenuLinks.d.ts +2 -0
- package/lib/theme/Navbar/Submenu/SubmenuLinks.js +110 -0
- package/lib/theme/Navbar/Submenu/index.d.ts +2 -0
- package/lib/theme/Navbar/Submenu/index.js +77 -0
- package/lib/theme/Navbar/Submenu/styles.module.css +82 -0
- package/lib/theme/Navbar/index.d.ts +2 -0
- package/lib/theme/Navbar/index.js +10 -0
- package/lib/theme/NavbarItem/ComponentTypes.d.ts +3 -0
- package/lib/theme/NavbarItem/ComponentTypes.js +21 -0
- package/lib/theme/NavbarItem/DefaultNavbarItem/Desktop/index.d.ts +3 -0
- package/lib/theme/NavbarItem/DefaultNavbarItem/Desktop/index.js +23 -0
- package/lib/theme/NavbarItem/DefaultNavbarItem/Mobile/index.d.ts +3 -0
- package/lib/theme/NavbarItem/DefaultNavbarItem/Mobile/index.js +14 -0
- package/lib/theme/NavbarItem/DefaultNavbarItem/index.d.ts +4 -0
- package/lib/theme/NavbarItem/DefaultNavbarItem/index.js +19 -0
- package/lib/theme/NavbarItem/DocNavbarItem.d.ts +3 -0
- package/lib/theme/NavbarItem/DocNavbarItem.js +32 -0
- package/lib/theme/NavbarItem/DocSidebarNavbarItem.d.ts +3 -0
- package/lib/theme/NavbarItem/DocSidebarNavbarItem.js +29 -0
- package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.d.ts +3 -0
- package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +133 -0
- package/lib/theme/NavbarItem/DocsVersionNavbarItem.d.ts +3 -0
- package/lib/theme/NavbarItem/DocsVersionNavbarItem.js +16 -0
- package/lib/theme/NavbarItem/DropdownNavbarItem/Desktop/index.d.ts +3 -0
- package/lib/theme/NavbarItem/DropdownNavbarItem/Desktop/index.js +68 -0
- package/lib/theme/NavbarItem/DropdownNavbarItem/Mobile/index.d.ts +4 -0
- package/lib/theme/NavbarItem/DropdownNavbarItem/Mobile/index.js +136 -0
- package/lib/theme/NavbarItem/DropdownNavbarItem/Mobile/styles.module.css +5 -0
- package/lib/theme/NavbarItem/DropdownNavbarItem/index.d.ts +3 -0
- package/lib/theme/NavbarItem/DropdownNavbarItem/index.js +7 -0
- package/lib/theme/NavbarItem/HtmlNavbarItem.d.ts +3 -0
- package/lib/theme/NavbarItem/HtmlNavbarItem.js +22 -0
- package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/index.d.ts +3 -0
- package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/index.js +114 -0
- package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/styles.module.css +6 -0
- package/lib/theme/NavbarItem/NavbarNavLink.d.ts +3 -0
- package/lib/theme/NavbarItem/NavbarNavLink.js +62 -0
- package/lib/theme/NavbarItem/SearchNavbarItem.d.ts +3 -0
- package/lib/theme/NavbarItem/SearchNavbarItem.js +13 -0
- package/lib/theme/NavbarItem/index.d.ts +3 -0
- package/lib/theme/NavbarItem/index.js +18 -0
- package/lib/theme/NotFound/Content/index.d.ts +3 -0
- package/lib/theme/NotFound/Content/index.js +38 -0
- package/lib/theme/NotFound/index.d.ts +2 -0
- package/lib/theme/NotFound/index.js +19 -0
- package/lib/theme/PaginatorNavLink/index.d.ts +3 -0
- package/lib/theme/PaginatorNavLink/index.js +19 -0
- package/lib/theme/SearchBar.d.ts +1 -0
- package/lib/theme/SearchBar.js +5 -0
- package/lib/theme/SearchMetadata/index.d.ts +3 -0
- package/lib/theme/SearchMetadata/index.js +28 -0
- package/lib/theme/SiteMetadata/index.d.ts +2 -0
- package/lib/theme/SiteMetadata/index.js +137 -0
- package/lib/theme/SkipToContent/index.d.ts +2 -0
- package/lib/theme/SkipToContent/index.js +6 -0
- package/lib/theme/SkipToContent/styles.module.css +16 -0
- package/lib/theme/TOC/index.d.ts +3 -0
- package/lib/theme/TOC/index.js +22 -0
- package/lib/theme/TOC/styles.module.css +23 -0
- package/lib/theme/TOCCollapsible/CollapseButton/index.d.ts +3 -0
- package/lib/theme/TOCCollapsible/CollapseButton/index.js +22 -0
- package/lib/theme/TOCCollapsible/CollapseButton/styles.module.css +27 -0
- package/lib/theme/TOCCollapsible/index.d.ts +3 -0
- package/lib/theme/TOCCollapsible/index.js +37 -0
- package/lib/theme/TOCCollapsible/styles.module.css +26 -0
- package/lib/theme/TOCInline/index.d.ts +3 -0
- package/lib/theme/TOCInline/index.js +16 -0
- package/lib/theme/TOCInline/styles.module.css +7 -0
- package/lib/theme/TOCItems/Tree.d.ts +5 -0
- package/lib/theme/TOCItems/Tree.js +30 -0
- package/lib/theme/TOCItems/index.d.ts +3 -0
- package/lib/theme/TOCItems/index.js +47 -0
- package/lib/theme/TabItem/index.d.ts +3 -0
- package/lib/theme/TabItem/index.js +13 -0
- package/lib/theme/TabItem/styles.module.css +5 -0
- package/lib/theme/Tabs/index.d.ts +3 -0
- package/lib/theme/Tabs/index.js +133 -0
- package/lib/theme/Tabs/styles.module.css +9 -0
- package/lib/theme/Tag/index.d.ts +3 -0
- package/lib/theme/Tag/index.js +20 -0
- package/lib/theme/Tag/styles.module.css +65 -0
- package/lib/theme/TagsListByLetter/index.d.ts +3 -0
- package/lib/theme/TagsListByLetter/index.js +35 -0
- package/lib/theme/TagsListByLetter/styles.module.css +6 -0
- package/lib/theme/TagsListInline/index.d.ts +3 -0
- package/lib/theme/TagsListInline/index.js +25 -0
- package/lib/theme/TagsListInline/styles.module.css +10 -0
- package/lib/theme/ThemeProvider/TitleFormatter/index.d.ts +3 -0
- package/lib/theme/ThemeProvider/TitleFormatter/index.js +13 -0
- package/lib/theme/ThemeProvider/index.d.ts +3 -0
- package/lib/theme/ThemeProvider/index.js +5 -0
- package/lib/theme/ThemedImage/index.d.ts +3 -0
- package/lib/theme/ThemedImage/index.js +17 -0
- package/lib/theme/ThemedImage/styles.module.css +13 -0
- package/lib/theme/pages/Home/index.d.ts +2 -0
- package/lib/theme/pages/Home/index.js +14 -0
- package/lib/theme/prism-include-languages.d.ts +2 -0
- package/lib/theme/prism-include-languages.js +28 -0
- package/lib/translations.d.ts +9 -0
- package/lib/translations.js +172 -0
- package/package.json +4 -3
- package/src/index.ts +3 -3
- package/src/options.ts +1 -1
- package/src/theme-seqera.d.ts +2 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React, {memo} from 'react';
|
|
2
|
+
import {
|
|
3
|
+
useVisibleBlogSidebarItems,
|
|
4
|
+
BlogSidebarItemList,
|
|
5
|
+
} from '@docusaurus/plugin-content-blog/client';
|
|
6
|
+
import {NavbarSecondaryMenuFiller} from '@docusaurus/theme-common';
|
|
7
|
+
import BlogSidebarContent from '@theme/BlogSidebar/Content';
|
|
8
|
+
import styles from './styles.module.css';
|
|
9
|
+
const ListComponent = ({items}) => {
|
|
10
|
+
return (
|
|
11
|
+
<BlogSidebarItemList
|
|
12
|
+
items={items}
|
|
13
|
+
ulClassName="menu__list"
|
|
14
|
+
liClassName="menu__list-item"
|
|
15
|
+
linkClassName="menu__link"
|
|
16
|
+
linkActiveClassName="menu__link--active"
|
|
17
|
+
/>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
function BlogSidebarMobileSecondaryMenu({sidebar}) {
|
|
21
|
+
const items = useVisibleBlogSidebarItems(sidebar.items);
|
|
22
|
+
return (
|
|
23
|
+
<BlogSidebarContent
|
|
24
|
+
items={items}
|
|
25
|
+
ListComponent={ListComponent}
|
|
26
|
+
yearGroupHeadingClassName={styles.yearGroupHeading}
|
|
27
|
+
/>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
function BlogSidebarMobile(props) {
|
|
31
|
+
return (
|
|
32
|
+
<NavbarSecondaryMenuFiller
|
|
33
|
+
component={BlogSidebarMobileSecondaryMenu}
|
|
34
|
+
props={props}
|
|
35
|
+
/>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
export default memo(BlogSidebarMobile);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {useWindowSize} from '@docusaurus/theme-common';
|
|
3
|
+
import BlogSidebarDesktop from '@theme/BlogSidebar/Desktop';
|
|
4
|
+
import BlogSidebarMobile from '@theme/BlogSidebar/Mobile';
|
|
5
|
+
export default function BlogSidebar({sidebar}) {
|
|
6
|
+
const windowSize = useWindowSize();
|
|
7
|
+
if (!sidebar?.items.length) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
// Mobile sidebar doesn't need to be server-rendered
|
|
11
|
+
if (windowSize === 'mobile') {
|
|
12
|
+
return <BlogSidebarMobile sidebar={sidebar} />;
|
|
13
|
+
}
|
|
14
|
+
return <BlogSidebarDesktop sidebar={sidebar} />;
|
|
15
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import {
|
|
4
|
+
PageMetadata,
|
|
5
|
+
HtmlClassNameProvider,
|
|
6
|
+
ThemeClassNames,
|
|
7
|
+
translateTagsPageTitle,
|
|
8
|
+
} from '@docusaurus/theme-common';
|
|
9
|
+
import BlogLayout from '@theme/BlogLayout';
|
|
10
|
+
import TagsListByLetter from '@theme/TagsListByLetter';
|
|
11
|
+
import SearchMetadata from '@theme/SearchMetadata';
|
|
12
|
+
import Heading from '@theme/Heading';
|
|
13
|
+
export default function BlogTagsListPage({tags, sidebar}) {
|
|
14
|
+
const title = translateTagsPageTitle();
|
|
15
|
+
return (
|
|
16
|
+
<HtmlClassNameProvider
|
|
17
|
+
className={clsx(
|
|
18
|
+
ThemeClassNames.wrapper.blogPages,
|
|
19
|
+
ThemeClassNames.page.blogTagsListPage,
|
|
20
|
+
)}>
|
|
21
|
+
<PageMetadata title={title} />
|
|
22
|
+
<SearchMetadata tag="blog_tags_list" />
|
|
23
|
+
<BlogLayout sidebar={sidebar}>
|
|
24
|
+
<Heading as="h1">{title}</Heading>
|
|
25
|
+
<TagsListByLetter tags={tags} />
|
|
26
|
+
</BlogLayout>
|
|
27
|
+
</HtmlClassNameProvider>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import Translate from '@docusaurus/Translate';
|
|
4
|
+
import {
|
|
5
|
+
PageMetadata,
|
|
6
|
+
HtmlClassNameProvider,
|
|
7
|
+
ThemeClassNames,
|
|
8
|
+
} from '@docusaurus/theme-common';
|
|
9
|
+
import {useBlogTagsPostsPageTitle} from '@docusaurus/theme-common/internal';
|
|
10
|
+
import Link from '@docusaurus/Link';
|
|
11
|
+
import BlogLayout from '@theme/BlogLayout';
|
|
12
|
+
import BlogListPaginator from '@theme/BlogListPaginator';
|
|
13
|
+
import SearchMetadata from '@theme/SearchMetadata';
|
|
14
|
+
import BlogPostItems from '@theme/BlogPostItems';
|
|
15
|
+
import Unlisted from '@theme/ContentVisibility/Unlisted';
|
|
16
|
+
import Heading from '@theme/Heading';
|
|
17
|
+
function BlogTagsPostsPageMetadata({tag}) {
|
|
18
|
+
const title = useBlogTagsPostsPageTitle(tag);
|
|
19
|
+
return (
|
|
20
|
+
<>
|
|
21
|
+
<PageMetadata title={title} description={tag.description} />
|
|
22
|
+
<SearchMetadata tag="blog_tags_posts" />
|
|
23
|
+
</>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
function BlogTagsPostsPageContent({tag, items, sidebar, listMetadata}) {
|
|
27
|
+
const title = useBlogTagsPostsPageTitle(tag);
|
|
28
|
+
return (
|
|
29
|
+
<BlogLayout sidebar={sidebar}>
|
|
30
|
+
{tag.unlisted && <Unlisted />}
|
|
31
|
+
<header className="margin-bottom--xl">
|
|
32
|
+
<Heading as="h1">{title}</Heading>
|
|
33
|
+
{tag.description && <p>{tag.description}</p>}
|
|
34
|
+
<Link href={tag.allTagsPath}>
|
|
35
|
+
<Translate
|
|
36
|
+
id="theme.tags.tagsPageLink"
|
|
37
|
+
description="The label of the link targeting the tag list page">
|
|
38
|
+
View All Tags
|
|
39
|
+
</Translate>
|
|
40
|
+
</Link>
|
|
41
|
+
</header>
|
|
42
|
+
<BlogPostItems items={items} />
|
|
43
|
+
<BlogListPaginator metadata={listMetadata} />
|
|
44
|
+
</BlogLayout>
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
export default function BlogTagsPostsPage(props) {
|
|
48
|
+
return (
|
|
49
|
+
<HtmlClassNameProvider
|
|
50
|
+
className={clsx(
|
|
51
|
+
ThemeClassNames.wrapper.blogPages,
|
|
52
|
+
ThemeClassNames.page.blogTagPostListPage,
|
|
53
|
+
)}>
|
|
54
|
+
<BlogTagsPostsPageMetadata {...props} />
|
|
55
|
+
<BlogTagsPostsPageContent {...props} />
|
|
56
|
+
</HtmlClassNameProvider>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React, {useCallback, useState, useRef, useEffect} from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import {translate} from '@docusaurus/Translate';
|
|
4
|
+
import {useCodeBlockContext} from '@docusaurus/theme-common/internal';
|
|
5
|
+
import Button from '@theme/CodeBlock/Buttons/Button';
|
|
6
|
+
import IconCopy from '@theme/Icon/Copy';
|
|
7
|
+
import IconSuccess from '@theme/Icon/Success';
|
|
8
|
+
import styles from './styles.module.css';
|
|
9
|
+
function title() {
|
|
10
|
+
return translate({
|
|
11
|
+
id: 'theme.CodeBlock.copy',
|
|
12
|
+
message: 'Copy',
|
|
13
|
+
description: 'The copy button label on code blocks',
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function ariaLabel(isCopied) {
|
|
17
|
+
return isCopied
|
|
18
|
+
? translate({
|
|
19
|
+
id: 'theme.CodeBlock.copied',
|
|
20
|
+
message: 'Copied',
|
|
21
|
+
description: 'The copied button label on code blocks',
|
|
22
|
+
})
|
|
23
|
+
: translate({
|
|
24
|
+
id: 'theme.CodeBlock.copyButtonAriaLabel',
|
|
25
|
+
message: 'Copy code to clipboard',
|
|
26
|
+
description: 'The ARIA label for copy code blocks button',
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function useCopyButton() {
|
|
30
|
+
const {
|
|
31
|
+
metadata: {code},
|
|
32
|
+
} = useCodeBlockContext();
|
|
33
|
+
const [isCopied, setIsCopied] = useState(false);
|
|
34
|
+
const copyTimeout = useRef(undefined);
|
|
35
|
+
const copyCode = useCallback(() => {
|
|
36
|
+
navigator.clipboard.writeText(code).then(() => {
|
|
37
|
+
setIsCopied(true);
|
|
38
|
+
copyTimeout.current = window.setTimeout(() => {
|
|
39
|
+
setIsCopied(false);
|
|
40
|
+
}, 1000);
|
|
41
|
+
});
|
|
42
|
+
}, [code]);
|
|
43
|
+
useEffect(() => () => window.clearTimeout(copyTimeout.current), []);
|
|
44
|
+
return {copyCode, isCopied};
|
|
45
|
+
}
|
|
46
|
+
export default function CopyButton({className}) {
|
|
47
|
+
const {copyCode, isCopied} = useCopyButton();
|
|
48
|
+
return (
|
|
49
|
+
<Button
|
|
50
|
+
aria-label={ariaLabel(isCopied)}
|
|
51
|
+
title={title()}
|
|
52
|
+
className={clsx(
|
|
53
|
+
className,
|
|
54
|
+
styles.copyButton,
|
|
55
|
+
isCopied && styles.copyButtonCopied,
|
|
56
|
+
)}
|
|
57
|
+
onClick={copyCode}>
|
|
58
|
+
<span className={styles.copyButtonIcons} aria-hidden="true">
|
|
59
|
+
<IconCopy className={styles.copyButtonIcon} />
|
|
60
|
+
<IconSuccess className={styles.copyButtonSuccessIcon} />
|
|
61
|
+
</span>
|
|
62
|
+
</Button>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
:global(.theme-code-block:hover) .copyButtonCopied {
|
|
4
|
+
opacity: 1 !important;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.copyButtonIcons {
|
|
8
|
+
position: relative;
|
|
9
|
+
width: 1.125rem;
|
|
10
|
+
height: 1.125rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.copyButtonIcon,
|
|
14
|
+
.copyButtonSuccessIcon {
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
fill: currentColor;
|
|
19
|
+
opacity: inherit;
|
|
20
|
+
width: inherit;
|
|
21
|
+
height: inherit;
|
|
22
|
+
transition: all var(--ifm-transition-fast) ease;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.copyButtonSuccessIcon {
|
|
26
|
+
top: 50%;
|
|
27
|
+
left: 50%;
|
|
28
|
+
transform: translate(-50%, -50%) scale(0.33);
|
|
29
|
+
opacity: 0;
|
|
30
|
+
color: #00d600;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.copyButtonCopied .copyButtonIcon {
|
|
34
|
+
transform: scale(0.33);
|
|
35
|
+
opacity: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.copyButtonCopied .copyButtonSuccessIcon {
|
|
39
|
+
transform: translate(-50%, -50%) scale(1);
|
|
40
|
+
opacity: 1;
|
|
41
|
+
transition-delay: 0.075s;
|
|
42
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import {translate} from '@docusaurus/Translate';
|
|
4
|
+
import {useCodeBlockContext} from '@docusaurus/theme-common/internal';
|
|
5
|
+
import Button from '@theme/CodeBlock/Buttons/Button';
|
|
6
|
+
import IconWordWrap from '@theme/Icon/WordWrap';
|
|
7
|
+
import styles from './styles.module.css';
|
|
8
|
+
export default function WordWrapButton({className}) {
|
|
9
|
+
const {wordWrap} = useCodeBlockContext();
|
|
10
|
+
const canShowButton = wordWrap.isEnabled || wordWrap.isCodeScrollable;
|
|
11
|
+
if (!canShowButton) {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
const title = translate({
|
|
15
|
+
id: 'theme.CodeBlock.wordWrapToggle',
|
|
16
|
+
message: 'Toggle word wrap',
|
|
17
|
+
description:
|
|
18
|
+
'The title attribute for toggle word wrapping button of code block lines',
|
|
19
|
+
});
|
|
20
|
+
return (
|
|
21
|
+
<Button
|
|
22
|
+
onClick={() => wordWrap.toggle()}
|
|
23
|
+
className={clsx(
|
|
24
|
+
className,
|
|
25
|
+
wordWrap.isEnabled && styles.wordWrapButtonEnabled,
|
|
26
|
+
)}
|
|
27
|
+
aria-label={title}
|
|
28
|
+
title={title}>
|
|
29
|
+
<IconWordWrap className={styles.wordWrapButtonIcon} aria-hidden="true" />
|
|
30
|
+
</Button>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import BrowserOnly from '@docusaurus/BrowserOnly';
|
|
4
|
+
import CopyButton from '@theme/CodeBlock/Buttons/CopyButton';
|
|
5
|
+
import WordWrapButton from '@theme/CodeBlock/Buttons/WordWrapButton';
|
|
6
|
+
import styles from './styles.module.css';
|
|
7
|
+
// Code block buttons are not server-rendered on purpose
|
|
8
|
+
// Adding them to the initial HTML is useless and expensive (due to JSX SVG)
|
|
9
|
+
// They are hidden by default and require React to become interactive
|
|
10
|
+
export default function CodeBlockButtons({className}) {
|
|
11
|
+
return (
|
|
12
|
+
<BrowserOnly>
|
|
13
|
+
{() => (
|
|
14
|
+
<div className={clsx(className, styles.buttonGroup)}>
|
|
15
|
+
<WordWrapButton />
|
|
16
|
+
<CopyButton />
|
|
17
|
+
</div>
|
|
18
|
+
)}
|
|
19
|
+
</BrowserOnly>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
.buttonGroup {
|
|
4
|
+
display: flex;
|
|
5
|
+
column-gap: 0.2rem;
|
|
6
|
+
position: absolute;
|
|
7
|
+
/* rtl:ignore */
|
|
8
|
+
right: calc(var(--ifm-pre-padding) / 2);
|
|
9
|
+
top: calc(var(--ifm-pre-padding) / 2);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.buttonGroup button {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
background: var(--prism-background-color);
|
|
16
|
+
color: var(--prism-color);
|
|
17
|
+
border: 1px solid var(--ifm-color-emphasis-300);
|
|
18
|
+
border-radius: var(--ifm-global-radius);
|
|
19
|
+
padding: 0.4rem;
|
|
20
|
+
line-height: 0;
|
|
21
|
+
transition: opacity var(--ifm-transition-fast) ease-in-out;
|
|
22
|
+
opacity: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.buttonGroup button:focus-visible,
|
|
26
|
+
.buttonGroup button:hover {
|
|
27
|
+
opacity: 1 !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:global(.theme-code-block:hover) .buttonGroup button {
|
|
31
|
+
opacity: 0.4;
|
|
32
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import {ThemeClassNames, usePrismTheme} from '@docusaurus/theme-common';
|
|
4
|
+
import {getPrismCssVariables} from '@docusaurus/theme-common/internal';
|
|
5
|
+
import styles from './styles.module.css';
|
|
6
|
+
export default function CodeBlockContainer({as: As, ...props}) {
|
|
7
|
+
const prismTheme = usePrismTheme();
|
|
8
|
+
const prismCssVariables = getPrismCssVariables(prismTheme);
|
|
9
|
+
return (
|
|
10
|
+
<As
|
|
11
|
+
// Polymorphic components are hard to type, without `oneOf` generics
|
|
12
|
+
{...props}
|
|
13
|
+
style={prismCssVariables}
|
|
14
|
+
className={clsx(
|
|
15
|
+
props.className,
|
|
16
|
+
styles.codeBlockContainer,
|
|
17
|
+
ThemeClassNames.common.codeBlock,
|
|
18
|
+
)}
|
|
19
|
+
/>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import Container from '@theme/CodeBlock/Container';
|
|
4
|
+
import styles from './styles.module.css';
|
|
5
|
+
// TODO Docusaurus v4: move this component at the root?
|
|
6
|
+
// This component only handles a rare edge-case: <pre><MyComp/></pre> in MDX
|
|
7
|
+
// <pre> tags in markdown map to CodeBlocks. They may contain JSX children.
|
|
8
|
+
// When children is not a simple string, we just return a styled block without
|
|
9
|
+
// actually highlighting.
|
|
10
|
+
export default function CodeBlockJSX({children, className}) {
|
|
11
|
+
return (
|
|
12
|
+
<Container
|
|
13
|
+
as="pre"
|
|
14
|
+
tabIndex={0}
|
|
15
|
+
className={clsx(styles.codeBlockStandalone, 'thin-scrollbar', className)}>
|
|
16
|
+
<code className={styles.codeBlockLines}>{children}</code>
|
|
17
|
+
</Container>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {useThemeConfig} from '@docusaurus/theme-common';
|
|
3
|
+
import {
|
|
4
|
+
CodeBlockContextProvider,
|
|
5
|
+
createCodeBlockMetadata,
|
|
6
|
+
useCodeWordWrap,
|
|
7
|
+
} from '@docusaurus/theme-common/internal';
|
|
8
|
+
import CodeBlockLayout from '@theme/CodeBlock/Layout';
|
|
9
|
+
function useCodeBlockMetadata(props) {
|
|
10
|
+
const {prism} = useThemeConfig();
|
|
11
|
+
return createCodeBlockMetadata({
|
|
12
|
+
code: props.children,
|
|
13
|
+
className: props.className,
|
|
14
|
+
metastring: props.metastring,
|
|
15
|
+
magicComments: prism.magicComments,
|
|
16
|
+
defaultLanguage: prism.defaultLanguage,
|
|
17
|
+
language: props.language,
|
|
18
|
+
title: props.title,
|
|
19
|
+
showLineNumbers: props.showLineNumbers,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
// TODO Docusaurus v4: move this component at the root?
|
|
23
|
+
export default function CodeBlockString(props) {
|
|
24
|
+
const metadata = useCodeBlockMetadata(props);
|
|
25
|
+
const wordWrap = useCodeWordWrap();
|
|
26
|
+
return (
|
|
27
|
+
<CodeBlockContextProvider metadata={metadata} wordWrap={wordWrap}>
|
|
28
|
+
<CodeBlockLayout />
|
|
29
|
+
</CodeBlockContextProvider>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import {useCodeBlockContext} from '@docusaurus/theme-common/internal';
|
|
4
|
+
import {usePrismTheme} from '@docusaurus/theme-common';
|
|
5
|
+
import {Highlight} from 'prism-react-renderer';
|
|
6
|
+
import Line from '@theme/CodeBlock/Line';
|
|
7
|
+
import styles from './styles.module.css';
|
|
8
|
+
// TODO Docusaurus v4: remove useless forwardRef
|
|
9
|
+
const Pre = React.forwardRef((props, ref) => {
|
|
10
|
+
return (
|
|
11
|
+
<pre
|
|
12
|
+
ref={ref}
|
|
13
|
+
/* eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex */
|
|
14
|
+
tabIndex={0}
|
|
15
|
+
{...props}
|
|
16
|
+
className={clsx(props.className, styles.codeBlock, 'thin-scrollbar')}
|
|
17
|
+
/>
|
|
18
|
+
);
|
|
19
|
+
});
|
|
20
|
+
function Code(props) {
|
|
21
|
+
const {metadata} = useCodeBlockContext();
|
|
22
|
+
return (
|
|
23
|
+
<code
|
|
24
|
+
{...props}
|
|
25
|
+
className={clsx(
|
|
26
|
+
props.className,
|
|
27
|
+
styles.codeBlockLines,
|
|
28
|
+
metadata.lineNumbersStart !== undefined &&
|
|
29
|
+
styles.codeBlockLinesWithNumbering,
|
|
30
|
+
)}
|
|
31
|
+
style={{
|
|
32
|
+
...props.style,
|
|
33
|
+
counterReset:
|
|
34
|
+
metadata.lineNumbersStart === undefined
|
|
35
|
+
? undefined
|
|
36
|
+
: `line-count ${metadata.lineNumbersStart - 1}`,
|
|
37
|
+
}}
|
|
38
|
+
/>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
export default function CodeBlockContent({className: classNameProp}) {
|
|
42
|
+
const {metadata, wordWrap} = useCodeBlockContext();
|
|
43
|
+
const prismTheme = usePrismTheme();
|
|
44
|
+
const {code, language, lineNumbersStart, lineClassNames} = metadata;
|
|
45
|
+
return (
|
|
46
|
+
<Highlight theme={prismTheme} code={code} language={language}>
|
|
47
|
+
{({className, style, tokens: lines, getLineProps, getTokenProps}) => (
|
|
48
|
+
<Pre
|
|
49
|
+
ref={wordWrap.codeBlockRef}
|
|
50
|
+
className={clsx(classNameProp, className)}
|
|
51
|
+
style={style}>
|
|
52
|
+
<Code>
|
|
53
|
+
{lines.map((line, i) => (
|
|
54
|
+
<Line
|
|
55
|
+
key={i}
|
|
56
|
+
line={line}
|
|
57
|
+
getLineProps={getLineProps}
|
|
58
|
+
getTokenProps={getTokenProps}
|
|
59
|
+
classNames={lineClassNames[i]}
|
|
60
|
+
showLineNumbers={lineNumbersStart !== undefined}
|
|
61
|
+
/>
|
|
62
|
+
))}
|
|
63
|
+
</Code>
|
|
64
|
+
</Pre>
|
|
65
|
+
)}
|
|
66
|
+
</Highlight>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
.codeBlock {
|
|
4
|
+
--ifm-pre-background: var(--prism-background-color);
|
|
5
|
+
margin: 0;
|
|
6
|
+
padding: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.codeBlockStandalone {
|
|
10
|
+
padding: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.codeBlockLines {
|
|
14
|
+
font: inherit;
|
|
15
|
+
/* rtl:ignore */
|
|
16
|
+
float: left;
|
|
17
|
+
min-width: 100%;
|
|
18
|
+
padding: var(--ifm-pre-padding);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.codeBlockLinesWithNumbering {
|
|
22
|
+
display: table;
|
|
23
|
+
padding: var(--ifm-pre-padding) 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media print {
|
|
27
|
+
.codeBlockLines {
|
|
28
|
+
white-space: pre-wrap;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import {useCodeBlockContext} from '@docusaurus/theme-common/internal';
|
|
4
|
+
import Container from '@theme/CodeBlock/Container';
|
|
5
|
+
import Title from '@theme/CodeBlock/Title';
|
|
6
|
+
import Content from '@theme/CodeBlock/Content';
|
|
7
|
+
import Buttons from '@theme/CodeBlock/Buttons';
|
|
8
|
+
import styles from './styles.module.css';
|
|
9
|
+
export default function CodeBlockLayout({className}) {
|
|
10
|
+
const {metadata} = useCodeBlockContext();
|
|
11
|
+
return (
|
|
12
|
+
<Container as="div" className={clsx(className, metadata.className)}>
|
|
13
|
+
{metadata.title && (
|
|
14
|
+
<div className={styles.codeBlockTitle}>
|
|
15
|
+
<Title>{metadata.title}</Title>
|
|
16
|
+
</div>
|
|
17
|
+
)}
|
|
18
|
+
<div className={styles.codeBlockContent}>
|
|
19
|
+
<Content />
|
|
20
|
+
<Buttons />
|
|
21
|
+
</div>
|
|
22
|
+
</Container>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
.codeBlockContent {
|
|
4
|
+
position: relative;
|
|
5
|
+
/* rtl:ignore */
|
|
6
|
+
direction: ltr;
|
|
7
|
+
border-radius: inherit;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.codeBlockTitle {
|
|
11
|
+
border-bottom: 1px solid var(--ifm-color-emphasis-300);
|
|
12
|
+
font-size: var(--ifm-code-font-size);
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
padding: 0.75rem var(--ifm-pre-padding);
|
|
15
|
+
border-top-left-radius: inherit;
|
|
16
|
+
border-top-right-radius: inherit;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.codeBlockTitle + .codeBlockContent .codeBlock {
|
|
20
|
+
border-top-left-radius: 0;
|
|
21
|
+
border-top-right-radius: 0;
|
|
22
|
+
}
|