@seqera/docusaurus-theme-seqera 1.0.0 → 1.0.1-next.9
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,34 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--docusaurus-blog-social-icon-size: 1rem;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.authorSocials {
|
|
8
|
+
/*
|
|
9
|
+
This ensures that container takes height even if there's no social link
|
|
10
|
+
This keeps author names aligned even if only some have socials
|
|
11
|
+
*/
|
|
12
|
+
height: var(--docusaurus-blog-social-icon-size);
|
|
13
|
+
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-wrap: wrap;
|
|
16
|
+
align-items: center;
|
|
17
|
+
line-height: 0;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
line-clamp: 1;
|
|
20
|
+
-webkit-line-clamp: 1;
|
|
21
|
+
-webkit-box-orient: vertical;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.authorSocialLink {
|
|
25
|
+
height: var(--docusaurus-blog-social-icon-size);
|
|
26
|
+
width: var(--docusaurus-blog-social-icon-size);
|
|
27
|
+
line-height: 0;
|
|
28
|
+
margin-right: 0.4rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.authorSocialIcon {
|
|
32
|
+
width: var(--docusaurus-blog-social-icon-size);
|
|
33
|
+
height: var(--docusaurus-blog-social-icon-size);
|
|
34
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import Link from '@docusaurus/Link';
|
|
4
|
+
import AuthorSocials from '@theme/Blog/Components/Author/Socials';
|
|
5
|
+
import Heading from '@theme/Heading';
|
|
6
|
+
import styles from './styles.module.css';
|
|
7
|
+
function MaybeLink(props) {
|
|
8
|
+
if (props.href) {
|
|
9
|
+
return <Link {...props} />;
|
|
10
|
+
}
|
|
11
|
+
return <>{props.children}</>;
|
|
12
|
+
}
|
|
13
|
+
function AuthorTitle({title}) {
|
|
14
|
+
return (
|
|
15
|
+
<small className={styles.authorTitle} title={title}>
|
|
16
|
+
{title}
|
|
17
|
+
</small>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
function AuthorName({name, as}) {
|
|
21
|
+
if (!as) {
|
|
22
|
+
return (
|
|
23
|
+
<span className={styles.authorName} translate="no">
|
|
24
|
+
{name}
|
|
25
|
+
</span>
|
|
26
|
+
);
|
|
27
|
+
} else {
|
|
28
|
+
return (
|
|
29
|
+
<Heading as={as} className={styles.authorName} translate="no">
|
|
30
|
+
{name}
|
|
31
|
+
</Heading>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
function AuthorBlogPostCount({count}) {
|
|
36
|
+
return <span className={clsx(styles.authorBlogPostCount)}>{count}</span>;
|
|
37
|
+
}
|
|
38
|
+
// Note: in the future we might want to have multiple "BlogAuthor" components
|
|
39
|
+
// Creating different display modes with the "as" prop may not be the best idea
|
|
40
|
+
// Explainer: https://kyleshevlin.com/prefer-multiple-compositions/
|
|
41
|
+
// For now, we almost use the same design for all cases, so it's good enough
|
|
42
|
+
export default function BlogAuthor({as, author, className, count}) {
|
|
43
|
+
const {name, title, url, imageURL, email, page} = author;
|
|
44
|
+
const link =
|
|
45
|
+
page?.permalink || url || (email && `mailto:${email}`) || undefined;
|
|
46
|
+
return (
|
|
47
|
+
<div
|
|
48
|
+
className={clsx(
|
|
49
|
+
'avatar margin-bottom--sm',
|
|
50
|
+
className,
|
|
51
|
+
styles[`author-as-${as}`],
|
|
52
|
+
)}>
|
|
53
|
+
{imageURL && (
|
|
54
|
+
<MaybeLink href={link} className="avatar__photo-link">
|
|
55
|
+
<img
|
|
56
|
+
className={clsx('avatar__photo', styles.authorImage)}
|
|
57
|
+
src={imageURL}
|
|
58
|
+
alt={name}
|
|
59
|
+
/>
|
|
60
|
+
</MaybeLink>
|
|
61
|
+
)}
|
|
62
|
+
|
|
63
|
+
{(name || title) && (
|
|
64
|
+
<div className={clsx('avatar__intro', styles.authorDetails)}>
|
|
65
|
+
<div className="avatar__name">
|
|
66
|
+
{name && (
|
|
67
|
+
<MaybeLink href={link}>
|
|
68
|
+
<AuthorName name={name} as={as} />
|
|
69
|
+
</MaybeLink>
|
|
70
|
+
)}
|
|
71
|
+
{count !== undefined && <AuthorBlogPostCount count={count} />}
|
|
72
|
+
</div>
|
|
73
|
+
{!!title && <AuthorTitle title={title} />}
|
|
74
|
+
|
|
75
|
+
{/*
|
|
76
|
+
We always render AuthorSocials even if there's none
|
|
77
|
+
This keeps other things aligned with flexbox layout
|
|
78
|
+
*/}
|
|
79
|
+
<AuthorSocials author={author} />
|
|
80
|
+
</div>
|
|
81
|
+
)}
|
|
82
|
+
</div>
|
|
83
|
+
);
|
|
84
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
.authorImage {
|
|
4
|
+
--ifm-avatar-photo-size: 3.6rem;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.author-as-h1 .authorImage {
|
|
8
|
+
--ifm-avatar-photo-size: 7rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.author-as-h2 .authorImage {
|
|
12
|
+
--ifm-avatar-photo-size: 5.4rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.authorDetails {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
align-items: flex-start;
|
|
19
|
+
justify-content: space-around;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.authorName {
|
|
23
|
+
font-size: 1.1rem;
|
|
24
|
+
line-height: 1.1rem;
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: row;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.author-as-h1 .authorName {
|
|
30
|
+
font-size: 2.4rem;
|
|
31
|
+
line-height: 2.4rem;
|
|
32
|
+
display: inline;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.author-as-h2 .authorName {
|
|
36
|
+
font-size: 1.4rem;
|
|
37
|
+
line-height: 1.4rem;
|
|
38
|
+
display: inline;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.authorTitle {
|
|
42
|
+
font-size: 0.8rem;
|
|
43
|
+
line-height: 1rem;
|
|
44
|
+
display: -webkit-box;
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
line-clamp: 1;
|
|
47
|
+
-webkit-line-clamp: 1;
|
|
48
|
+
-webkit-box-orient: vertical;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.author-as-h1 .authorTitle {
|
|
52
|
+
font-size: 1.2rem;
|
|
53
|
+
line-height: 1.6rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.author-as-h2 .authorTitle {
|
|
57
|
+
font-size: 1rem;
|
|
58
|
+
line-height: 1.3rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.authorBlogPostCount {
|
|
62
|
+
background: var(--ifm-color-secondary);
|
|
63
|
+
color: var(--ifm-color-black);
|
|
64
|
+
font-size: 0.8rem;
|
|
65
|
+
line-height: 1.2;
|
|
66
|
+
border-radius: var(--ifm-global-radius);
|
|
67
|
+
padding: 0.1rem 0.4rem;
|
|
68
|
+
margin-left: 0.3rem;
|
|
69
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import {
|
|
4
|
+
PageMetadata,
|
|
5
|
+
HtmlClassNameProvider,
|
|
6
|
+
ThemeClassNames,
|
|
7
|
+
} from '@docusaurus/theme-common';
|
|
8
|
+
import {translateBlogAuthorsListPageTitle} from '@docusaurus/theme-common/internal';
|
|
9
|
+
import BlogLayout from '@theme/BlogLayout';
|
|
10
|
+
import SearchMetadata from '@theme/SearchMetadata';
|
|
11
|
+
import Heading from '@theme/Heading';
|
|
12
|
+
import Author from '@theme/Blog/Components/Author';
|
|
13
|
+
import styles from './styles.module.css';
|
|
14
|
+
function AuthorListItem({author}) {
|
|
15
|
+
return (
|
|
16
|
+
<li className={styles.authorListItem}>
|
|
17
|
+
<Author as="h2" author={author} count={author.count} />
|
|
18
|
+
</li>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
function AuthorsList({authors}) {
|
|
22
|
+
return (
|
|
23
|
+
<section className={clsx('margin-vert--lg', styles.authorsListSection)}>
|
|
24
|
+
<ul>
|
|
25
|
+
{authors.map((author) => (
|
|
26
|
+
<AuthorListItem key={author.key} author={author} />
|
|
27
|
+
))}
|
|
28
|
+
</ul>
|
|
29
|
+
</section>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
export default function BlogAuthorsListPage({authors, sidebar}) {
|
|
33
|
+
const title = translateBlogAuthorsListPageTitle();
|
|
34
|
+
return (
|
|
35
|
+
<HtmlClassNameProvider
|
|
36
|
+
className={clsx(
|
|
37
|
+
ThemeClassNames.wrapper.blogPages,
|
|
38
|
+
ThemeClassNames.page.blogAuthorsListPage,
|
|
39
|
+
)}>
|
|
40
|
+
<PageMetadata title={title} />
|
|
41
|
+
<SearchMetadata tag="blog_authors_list" />
|
|
42
|
+
<BlogLayout sidebar={sidebar}>
|
|
43
|
+
<Heading as="h1">{title}</Heading>
|
|
44
|
+
<AuthorsList authors={authors} />
|
|
45
|
+
</BlogLayout>
|
|
46
|
+
</HtmlClassNameProvider>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import {
|
|
4
|
+
PageMetadata,
|
|
5
|
+
HtmlClassNameProvider,
|
|
6
|
+
ThemeClassNames,
|
|
7
|
+
} from '@docusaurus/theme-common';
|
|
8
|
+
import {
|
|
9
|
+
useBlogAuthorPageTitle,
|
|
10
|
+
BlogAuthorsListViewAllLabel,
|
|
11
|
+
BlogAuthorNoPostsLabel,
|
|
12
|
+
} from '@docusaurus/theme-common/internal';
|
|
13
|
+
import Link from '@docusaurus/Link';
|
|
14
|
+
import {useBlogMetadata} from '@docusaurus/plugin-content-blog/client';
|
|
15
|
+
import BlogLayout from '@theme/BlogLayout';
|
|
16
|
+
import BlogListPaginator from '@theme/BlogListPaginator';
|
|
17
|
+
import SearchMetadata from '@theme/SearchMetadata';
|
|
18
|
+
import BlogPostItems from '@theme/BlogPostItems';
|
|
19
|
+
import Author from '@theme/Blog/Components/Author';
|
|
20
|
+
function Metadata({author}) {
|
|
21
|
+
const title = useBlogAuthorPageTitle(author);
|
|
22
|
+
return (
|
|
23
|
+
<>
|
|
24
|
+
<PageMetadata title={title} />
|
|
25
|
+
<SearchMetadata tag="blog_authors_posts" />
|
|
26
|
+
</>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function ViewAllAuthorsLink() {
|
|
30
|
+
const {authorsListPath} = useBlogMetadata();
|
|
31
|
+
return (
|
|
32
|
+
<Link href={authorsListPath}>
|
|
33
|
+
<BlogAuthorsListViewAllLabel />
|
|
34
|
+
</Link>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
function Content({author, items, sidebar, listMetadata}) {
|
|
38
|
+
return (
|
|
39
|
+
<BlogLayout sidebar={sidebar}>
|
|
40
|
+
<header className="margin-bottom--xl">
|
|
41
|
+
<Author as="h1" author={author} />
|
|
42
|
+
{author.description && <p>{author.description}</p>}
|
|
43
|
+
<ViewAllAuthorsLink />
|
|
44
|
+
</header>
|
|
45
|
+
{items.length === 0 ? (
|
|
46
|
+
<p>
|
|
47
|
+
<BlogAuthorNoPostsLabel />
|
|
48
|
+
</p>
|
|
49
|
+
) : (
|
|
50
|
+
<>
|
|
51
|
+
<hr />
|
|
52
|
+
<BlogPostItems items={items} />
|
|
53
|
+
<BlogListPaginator metadata={listMetadata} />
|
|
54
|
+
</>
|
|
55
|
+
)}
|
|
56
|
+
</BlogLayout>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
export default function BlogAuthorsPostsPage(props) {
|
|
60
|
+
return (
|
|
61
|
+
<HtmlClassNameProvider
|
|
62
|
+
className={clsx(
|
|
63
|
+
ThemeClassNames.wrapper.blogPages,
|
|
64
|
+
ThemeClassNames.page.blogAuthorsPostsPage,
|
|
65
|
+
)}>
|
|
66
|
+
<Metadata {...props} />
|
|
67
|
+
<Content {...props} />
|
|
68
|
+
</HtmlClassNameProvider>
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Link from '@docusaurus/Link';
|
|
3
|
+
import {translate} from '@docusaurus/Translate';
|
|
4
|
+
import {PageMetadata} from '@docusaurus/theme-common';
|
|
5
|
+
import {useDateTimeFormat} from '@docusaurus/theme-common/internal';
|
|
6
|
+
import Layout from '@theme/Layout';
|
|
7
|
+
import Heading from '@theme/Heading';
|
|
8
|
+
function Year({year, posts}) {
|
|
9
|
+
const dateTimeFormat = useDateTimeFormat({
|
|
10
|
+
day: 'numeric',
|
|
11
|
+
month: 'long',
|
|
12
|
+
timeZone: 'UTC',
|
|
13
|
+
});
|
|
14
|
+
const formatDate = (lastUpdated) =>
|
|
15
|
+
dateTimeFormat.format(new Date(lastUpdated));
|
|
16
|
+
return (
|
|
17
|
+
<>
|
|
18
|
+
<Heading as="h3" id={year}>
|
|
19
|
+
{year}
|
|
20
|
+
</Heading>
|
|
21
|
+
<ul>
|
|
22
|
+
{posts.map((post) => (
|
|
23
|
+
<li key={post.metadata.date}>
|
|
24
|
+
<Link to={post.metadata.permalink}>
|
|
25
|
+
{formatDate(post.metadata.date)} - {post.metadata.title}
|
|
26
|
+
</Link>
|
|
27
|
+
</li>
|
|
28
|
+
))}
|
|
29
|
+
</ul>
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
function YearsSection({years}) {
|
|
34
|
+
return (
|
|
35
|
+
<section className="margin-vert--lg">
|
|
36
|
+
<div className="container">
|
|
37
|
+
<div className="row">
|
|
38
|
+
{years.map((_props, idx) => (
|
|
39
|
+
<div key={idx} className="col col--4 margin-vert--lg">
|
|
40
|
+
<Year {..._props} />
|
|
41
|
+
</div>
|
|
42
|
+
))}
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</section>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
function listPostsByYears(blogPosts) {
|
|
49
|
+
const postsByYear = blogPosts.reduce((posts, post) => {
|
|
50
|
+
const year = post.metadata.date.split('-')[0];
|
|
51
|
+
const yearPosts = posts.get(year) ?? [];
|
|
52
|
+
return posts.set(year, [post, ...yearPosts]);
|
|
53
|
+
}, new Map());
|
|
54
|
+
return Array.from(postsByYear, ([year, posts]) => ({
|
|
55
|
+
year,
|
|
56
|
+
posts,
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
export default function BlogArchive({archive}) {
|
|
60
|
+
const title = translate({
|
|
61
|
+
id: 'theme.blog.archive.title',
|
|
62
|
+
message: 'Archive',
|
|
63
|
+
description: 'The page & hero title of the blog archive page',
|
|
64
|
+
});
|
|
65
|
+
const description = translate({
|
|
66
|
+
id: 'theme.blog.archive.description',
|
|
67
|
+
message: 'Archive',
|
|
68
|
+
description: 'The page & hero description of the blog archive page',
|
|
69
|
+
});
|
|
70
|
+
const years = listPostsByYears(archive.blogPosts);
|
|
71
|
+
return (
|
|
72
|
+
<>
|
|
73
|
+
<PageMetadata title={title} description={description} />
|
|
74
|
+
<Layout>
|
|
75
|
+
<header className="hero hero--primary">
|
|
76
|
+
<div className="container">
|
|
77
|
+
<Heading as="h1" className="hero__title">
|
|
78
|
+
{title}
|
|
79
|
+
</Heading>
|
|
80
|
+
<p className="hero__subtitle">{description}</p>
|
|
81
|
+
</div>
|
|
82
|
+
</header>
|
|
83
|
+
<main>{years.length > 0 && <YearsSection years={years} />}</main>
|
|
84
|
+
</Layout>
|
|
85
|
+
</>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import Layout from '@theme/Layout';
|
|
4
|
+
import BlogSidebar from '@theme/BlogSidebar';
|
|
5
|
+
export default function BlogLayout(props) {
|
|
6
|
+
const {sidebar, toc, children, ...layoutProps} = props;
|
|
7
|
+
const hasSidebar = sidebar && sidebar.items.length > 0;
|
|
8
|
+
return (
|
|
9
|
+
<Layout {...layoutProps}>
|
|
10
|
+
<div className="container">
|
|
11
|
+
<div className="row">
|
|
12
|
+
<BlogSidebar sidebar={sidebar} />
|
|
13
|
+
<main
|
|
14
|
+
className={clsx('prose__wrapper col p-6', {
|
|
15
|
+
'col--7': hasSidebar,
|
|
16
|
+
'col--9 col--offset-1': !hasSidebar,
|
|
17
|
+
})}>
|
|
18
|
+
{children}
|
|
19
|
+
</main>
|
|
20
|
+
{toc && <div className="col col--2">{toc}</div>}
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
</Layout>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Head from '@docusaurus/Head';
|
|
3
|
+
import {useBlogListPageStructuredData} from '@docusaurus/plugin-content-blog/client';
|
|
4
|
+
export default function BlogListPageStructuredData(props) {
|
|
5
|
+
const structuredData = useBlogListPageStructuredData(props);
|
|
6
|
+
return (
|
|
7
|
+
<Head>
|
|
8
|
+
<script type="application/ld+json">
|
|
9
|
+
{JSON.stringify(structuredData)}
|
|
10
|
+
</script>
|
|
11
|
+
</Head>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
4
|
+
import {
|
|
5
|
+
PageMetadata,
|
|
6
|
+
HtmlClassNameProvider,
|
|
7
|
+
ThemeClassNames,
|
|
8
|
+
} from '@docusaurus/theme-common';
|
|
9
|
+
import BlogLayout from '@theme/BlogLayout';
|
|
10
|
+
import BlogListPaginator from '@theme/BlogListPaginator';
|
|
11
|
+
import SearchMetadata from '@theme/SearchMetadata';
|
|
12
|
+
import BlogPostItems from '@theme/BlogPostItems';
|
|
13
|
+
import BlogListPageStructuredData from '@theme/BlogListPage/StructuredData';
|
|
14
|
+
function BlogListPageMetadata(props) {
|
|
15
|
+
const {metadata} = props;
|
|
16
|
+
const {
|
|
17
|
+
siteConfig: {title: siteTitle},
|
|
18
|
+
} = useDocusaurusContext();
|
|
19
|
+
const {blogDescription, blogTitle, permalink} = metadata;
|
|
20
|
+
const isBlogOnlyMode = permalink === '/';
|
|
21
|
+
const title = isBlogOnlyMode ? siteTitle : blogTitle;
|
|
22
|
+
return (
|
|
23
|
+
<>
|
|
24
|
+
<PageMetadata title={title} description={blogDescription} />
|
|
25
|
+
<SearchMetadata tag="blog_posts_list" />
|
|
26
|
+
</>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
function BlogListPageContent(props) {
|
|
30
|
+
const {metadata, items, sidebar} = props;
|
|
31
|
+
return (
|
|
32
|
+
<BlogLayout sidebar={sidebar}>
|
|
33
|
+
<BlogPostItems items={items} />
|
|
34
|
+
<BlogListPaginator metadata={metadata} />
|
|
35
|
+
</BlogLayout>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
export default function BlogListPage(props) {
|
|
39
|
+
return (
|
|
40
|
+
<HtmlClassNameProvider
|
|
41
|
+
className={clsx(
|
|
42
|
+
ThemeClassNames.wrapper.blogPages,
|
|
43
|
+
ThemeClassNames.page.blogListPage,
|
|
44
|
+
)}>
|
|
45
|
+
<BlogListPageMetadata {...props} />
|
|
46
|
+
<BlogListPageStructuredData {...props} />
|
|
47
|
+
<BlogListPageContent {...props} />
|
|
48
|
+
</HtmlClassNameProvider>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Translate, {translate} from '@docusaurus/Translate';
|
|
3
|
+
import PaginatorNavLink from '@theme/PaginatorNavLink';
|
|
4
|
+
export default function BlogListPaginator(props) {
|
|
5
|
+
const {metadata} = props;
|
|
6
|
+
const {previousPage, nextPage} = metadata;
|
|
7
|
+
return (
|
|
8
|
+
<nav
|
|
9
|
+
className="pagination-nav"
|
|
10
|
+
aria-label={translate({
|
|
11
|
+
id: 'theme.blog.paginator.navAriaLabel',
|
|
12
|
+
message: 'Blog list page navigation',
|
|
13
|
+
description: 'The ARIA label for the blog pagination',
|
|
14
|
+
})}>
|
|
15
|
+
{previousPage && (
|
|
16
|
+
<PaginatorNavLink
|
|
17
|
+
permalink={previousPage}
|
|
18
|
+
title={
|
|
19
|
+
<Translate
|
|
20
|
+
id="theme.blog.paginator.newerEntries"
|
|
21
|
+
description="The label used to navigate to the newer blog posts page (previous page)">
|
|
22
|
+
Newer entries
|
|
23
|
+
</Translate>
|
|
24
|
+
}
|
|
25
|
+
/>
|
|
26
|
+
)}
|
|
27
|
+
{nextPage && (
|
|
28
|
+
<PaginatorNavLink
|
|
29
|
+
permalink={nextPage}
|
|
30
|
+
title={
|
|
31
|
+
<Translate
|
|
32
|
+
id="theme.blog.paginator.olderEntries"
|
|
33
|
+
description="The label used to navigate to the older blog posts page (next page)">
|
|
34
|
+
Older entries
|
|
35
|
+
</Translate>
|
|
36
|
+
}
|
|
37
|
+
isNext
|
|
38
|
+
/>
|
|
39
|
+
)}
|
|
40
|
+
</nav>
|
|
41
|
+
);
|
|
42
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import {blogPostContainerID} from '@docusaurus/utils-common';
|
|
4
|
+
import {useBlogPost} from '@docusaurus/plugin-content-blog/client';
|
|
5
|
+
import MDXContent from '@theme/MDXContent';
|
|
6
|
+
export default function BlogPostItemContent({children, className}) {
|
|
7
|
+
const {isBlogPostPage} = useBlogPost();
|
|
8
|
+
return (
|
|
9
|
+
<div
|
|
10
|
+
// This ID is used for the feed generation to locate the main content
|
|
11
|
+
id={isBlogPostPage ? blogPostContainerID : undefined}
|
|
12
|
+
className={clsx('markdown', className)}>
|
|
13
|
+
<MDXContent>{children}</MDXContent>
|
|
14
|
+
</div>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Translate, {translate} from '@docusaurus/Translate';
|
|
3
|
+
import Link from '@docusaurus/Link';
|
|
4
|
+
function ReadMoreLabel() {
|
|
5
|
+
return (
|
|
6
|
+
<b>
|
|
7
|
+
<Translate
|
|
8
|
+
id="theme.blog.post.readMore"
|
|
9
|
+
description="The label used in blog post item excerpts to link to full blog posts">
|
|
10
|
+
Read more
|
|
11
|
+
</Translate>
|
|
12
|
+
</b>
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
export default function BlogPostItemFooterReadMoreLink(props) {
|
|
16
|
+
const {blogPostTitle, ...linkProps} = props;
|
|
17
|
+
return (
|
|
18
|
+
<Link
|
|
19
|
+
aria-label={translate(
|
|
20
|
+
{
|
|
21
|
+
message: 'Read more about {title}',
|
|
22
|
+
id: 'theme.blog.post.readMoreLabel',
|
|
23
|
+
description:
|
|
24
|
+
'The ARIA label for the link to full blog posts from excerpts',
|
|
25
|
+
},
|
|
26
|
+
{title: blogPostTitle},
|
|
27
|
+
)}
|
|
28
|
+
{...linkProps}>
|
|
29
|
+
<ReadMoreLabel />
|
|
30
|
+
</Link>
|
|
31
|
+
);
|
|
32
|
+
}
|