@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
package/lib/options.js
ADDED
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ThemeConfigSchema = exports.DEFAULT_CONFIG = void 0;
|
|
4
|
+
exports.validateThemeConfig = validateThemeConfig;
|
|
5
|
+
exports.validateOptions = validateOptions;
|
|
6
|
+
const prism_react_renderer_1 = require("prism-react-renderer");
|
|
7
|
+
const utils_validation_1 = require("@docusaurus/utils-validation");
|
|
8
|
+
const defaultPrismTheme = prism_react_renderer_1.themes.palenight;
|
|
9
|
+
const DEFAULT_DOCS_CONFIG = {
|
|
10
|
+
versionPersistence: 'localStorage',
|
|
11
|
+
sidebar: {
|
|
12
|
+
hideable: false,
|
|
13
|
+
autoCollapseCategories: false,
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
const DocsSchema = utils_validation_1.Joi.object({
|
|
17
|
+
versionPersistence: utils_validation_1.Joi.string()
|
|
18
|
+
.equal('localStorage', 'none')
|
|
19
|
+
.default(DEFAULT_DOCS_CONFIG.versionPersistence),
|
|
20
|
+
sidebar: utils_validation_1.Joi.object({
|
|
21
|
+
hideable: utils_validation_1.Joi.bool().default(DEFAULT_DOCS_CONFIG.sidebar.hideable),
|
|
22
|
+
autoCollapseCategories: utils_validation_1.Joi.bool().default(DEFAULT_DOCS_CONFIG.sidebar.autoCollapseCategories),
|
|
23
|
+
}).default(DEFAULT_DOCS_CONFIG.sidebar),
|
|
24
|
+
}).default(DEFAULT_DOCS_CONFIG);
|
|
25
|
+
const DEFAULT_BLOG_CONFIG = {
|
|
26
|
+
sidebar: {
|
|
27
|
+
groupByYear: true,
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
const BlogSchema = utils_validation_1.Joi.object({
|
|
31
|
+
sidebar: utils_validation_1.Joi.object({
|
|
32
|
+
groupByYear: utils_validation_1.Joi.bool().default(DEFAULT_BLOG_CONFIG.sidebar.groupByYear),
|
|
33
|
+
}).default(DEFAULT_BLOG_CONFIG.sidebar),
|
|
34
|
+
}).default(DEFAULT_BLOG_CONFIG);
|
|
35
|
+
const DEFAULT_COLOR_MODE_CONFIG = {
|
|
36
|
+
defaultMode: 'light',
|
|
37
|
+
disableSwitch: false,
|
|
38
|
+
respectPrefersColorScheme: false,
|
|
39
|
+
};
|
|
40
|
+
exports.DEFAULT_CONFIG = {
|
|
41
|
+
colorMode: DEFAULT_COLOR_MODE_CONFIG,
|
|
42
|
+
docs: DEFAULT_DOCS_CONFIG,
|
|
43
|
+
blog: DEFAULT_BLOG_CONFIG,
|
|
44
|
+
metadata: [],
|
|
45
|
+
prism: {
|
|
46
|
+
additionalLanguages: [],
|
|
47
|
+
theme: defaultPrismTheme,
|
|
48
|
+
magicComments: [
|
|
49
|
+
{
|
|
50
|
+
className: 'theme-code-block-highlighted-line',
|
|
51
|
+
line: 'highlight-next-line',
|
|
52
|
+
block: { start: 'highlight-start', end: 'highlight-end' },
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
navbar: {
|
|
57
|
+
hideOnScroll: false,
|
|
58
|
+
items: [],
|
|
59
|
+
},
|
|
60
|
+
tableOfContents: {
|
|
61
|
+
minHeadingLevel: 2,
|
|
62
|
+
maxHeadingLevel: 3,
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
const NavbarItemPosition = utils_validation_1.Joi.string().equal('left', 'right').default('left');
|
|
66
|
+
const NavbarItemBaseSchema = utils_validation_1.Joi.object({
|
|
67
|
+
label: utils_validation_1.Joi.string(),
|
|
68
|
+
html: utils_validation_1.Joi.string(),
|
|
69
|
+
className: utils_validation_1.Joi.string(),
|
|
70
|
+
})
|
|
71
|
+
.nand('html', 'label')
|
|
72
|
+
// We allow any unknown attributes on the links (users may need additional
|
|
73
|
+
// attributes like target, aria-role, data-customAttribute...)
|
|
74
|
+
.unknown();
|
|
75
|
+
const DefaultNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
76
|
+
to: utils_validation_1.Joi.string(),
|
|
77
|
+
href: utils_validation_1.URISchema,
|
|
78
|
+
activeBasePath: utils_validation_1.Joi.string(),
|
|
79
|
+
activeBaseRegex: utils_validation_1.Joi.string(),
|
|
80
|
+
prependBaseUrlToHref: utils_validation_1.Joi.bool(),
|
|
81
|
+
// This is only triggered in case of a nested dropdown
|
|
82
|
+
items: utils_validation_1.Joi.forbidden().messages({
|
|
83
|
+
'any.unknown': 'Nested dropdowns are not allowed',
|
|
84
|
+
}),
|
|
85
|
+
})
|
|
86
|
+
.xor('href', 'to')
|
|
87
|
+
.messages({
|
|
88
|
+
'object.xor': 'One and only one between "to" and "href" should be provided',
|
|
89
|
+
});
|
|
90
|
+
const DocsVersionNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
91
|
+
type: utils_validation_1.Joi.string().equal('docsVersion').required(),
|
|
92
|
+
to: utils_validation_1.Joi.string(),
|
|
93
|
+
docsPluginId: utils_validation_1.Joi.string(),
|
|
94
|
+
});
|
|
95
|
+
const DocItemSchema = NavbarItemBaseSchema.append({
|
|
96
|
+
type: utils_validation_1.Joi.string().equal('doc').required(),
|
|
97
|
+
docId: utils_validation_1.Joi.string().required(),
|
|
98
|
+
docsPluginId: utils_validation_1.Joi.string(),
|
|
99
|
+
});
|
|
100
|
+
const DocSidebarItemSchema = NavbarItemBaseSchema.append({
|
|
101
|
+
type: utils_validation_1.Joi.string().equal('docSidebar').required(),
|
|
102
|
+
sidebarId: utils_validation_1.Joi.string().required(),
|
|
103
|
+
docsPluginId: utils_validation_1.Joi.string(),
|
|
104
|
+
});
|
|
105
|
+
const HtmlNavbarItemSchema = utils_validation_1.Joi.object({
|
|
106
|
+
className: utils_validation_1.Joi.string(),
|
|
107
|
+
type: utils_validation_1.Joi.string().equal('html').required(),
|
|
108
|
+
value: utils_validation_1.Joi.string().required(),
|
|
109
|
+
});
|
|
110
|
+
// A temporary workaround to allow users to add custom navbar items
|
|
111
|
+
// See https://github.com/facebook/docusaurus/issues/7227
|
|
112
|
+
const CustomNavbarItemRegexp = /custom-.*/;
|
|
113
|
+
const CustomNavbarItemSchema = utils_validation_1.Joi.object({
|
|
114
|
+
type: utils_validation_1.Joi.string().regex(CustomNavbarItemRegexp).required(),
|
|
115
|
+
}).unknown();
|
|
116
|
+
const itemWithType = (type) => {
|
|
117
|
+
// Because equal(undefined) is not supported :/
|
|
118
|
+
const typeSchema =
|
|
119
|
+
// eslint-disable-next-line no-nested-ternary
|
|
120
|
+
type instanceof RegExp
|
|
121
|
+
? utils_validation_1.Joi.string().required().regex(type)
|
|
122
|
+
: type
|
|
123
|
+
? utils_validation_1.Joi.string().required().equal(type)
|
|
124
|
+
: utils_validation_1.Joi.string().forbidden();
|
|
125
|
+
return utils_validation_1.Joi.object({
|
|
126
|
+
type: typeSchema,
|
|
127
|
+
})
|
|
128
|
+
.unknown()
|
|
129
|
+
.required();
|
|
130
|
+
};
|
|
131
|
+
const DropdownSubitemSchema = utils_validation_1.Joi.object({
|
|
132
|
+
position: utils_validation_1.Joi.forbidden(),
|
|
133
|
+
}).when('.', {
|
|
134
|
+
switch: [
|
|
135
|
+
{
|
|
136
|
+
is: itemWithType('docsVersion'),
|
|
137
|
+
then: DocsVersionNavbarItemSchema,
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
is: itemWithType('doc'),
|
|
141
|
+
then: DocItemSchema,
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
is: itemWithType('docSidebar'),
|
|
145
|
+
then: DocSidebarItemSchema,
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
is: itemWithType(undefined),
|
|
149
|
+
then: DefaultNavbarItemSchema,
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
is: itemWithType('html'),
|
|
153
|
+
then: HtmlNavbarItemSchema,
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
is: itemWithType(CustomNavbarItemRegexp),
|
|
157
|
+
then: CustomNavbarItemSchema,
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
is: utils_validation_1.Joi.alternatives().try(itemWithType('dropdown'), itemWithType('docsVersionDropdown'), itemWithType('localeDropdown'), itemWithType('search')),
|
|
161
|
+
then: utils_validation_1.Joi.forbidden().messages({
|
|
162
|
+
'any.unknown': 'Nested dropdowns are not allowed',
|
|
163
|
+
}),
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
otherwise: utils_validation_1.Joi.forbidden().messages({
|
|
167
|
+
'any.unknown': 'Bad navbar item type {.type}',
|
|
168
|
+
}),
|
|
169
|
+
});
|
|
170
|
+
const DropdownNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
171
|
+
items: utils_validation_1.Joi.array().items(DropdownSubitemSchema).required(),
|
|
172
|
+
});
|
|
173
|
+
const DocsVersionDropdownNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
174
|
+
type: utils_validation_1.Joi.string().equal('docsVersionDropdown').required(),
|
|
175
|
+
docsPluginId: utils_validation_1.Joi.string(),
|
|
176
|
+
dropdownActiveClassDisabled: utils_validation_1.Joi.boolean(),
|
|
177
|
+
dropdownItemsBefore: utils_validation_1.Joi.array().items(DropdownSubitemSchema).default([]),
|
|
178
|
+
dropdownItemsAfter: utils_validation_1.Joi.array().items(DropdownSubitemSchema).default([]),
|
|
179
|
+
versions: utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.array().items(utils_validation_1.Joi.string().min(1)).min(1), utils_validation_1.Joi.object()
|
|
180
|
+
.pattern(utils_validation_1.Joi.string().min(1), utils_validation_1.Joi.object({
|
|
181
|
+
label: utils_validation_1.Joi.string().min(1),
|
|
182
|
+
}))
|
|
183
|
+
.min(1)),
|
|
184
|
+
});
|
|
185
|
+
const LocaleDropdownNavbarItemSchema = NavbarItemBaseSchema.append({
|
|
186
|
+
type: utils_validation_1.Joi.string().equal('localeDropdown').required(),
|
|
187
|
+
dropdownItemsBefore: utils_validation_1.Joi.array().items(DropdownSubitemSchema).default([]),
|
|
188
|
+
dropdownItemsAfter: utils_validation_1.Joi.array().items(DropdownSubitemSchema).default([]),
|
|
189
|
+
queryString: utils_validation_1.Joi.string(),
|
|
190
|
+
});
|
|
191
|
+
const SearchItemSchema = utils_validation_1.Joi.object({
|
|
192
|
+
type: utils_validation_1.Joi.string().equal('search').required(),
|
|
193
|
+
className: utils_validation_1.Joi.string(),
|
|
194
|
+
});
|
|
195
|
+
const NavbarItemSchema = utils_validation_1.Joi.object({
|
|
196
|
+
position: NavbarItemPosition,
|
|
197
|
+
}).when('.', {
|
|
198
|
+
switch: [
|
|
199
|
+
{
|
|
200
|
+
is: itemWithType('docsVersion'),
|
|
201
|
+
then: DocsVersionNavbarItemSchema,
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
is: itemWithType('dropdown'),
|
|
205
|
+
then: DropdownNavbarItemSchema,
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
is: itemWithType('docsVersionDropdown'),
|
|
209
|
+
then: DocsVersionDropdownNavbarItemSchema,
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
is: itemWithType('doc'),
|
|
213
|
+
then: DocItemSchema,
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
is: itemWithType('docSidebar'),
|
|
217
|
+
then: DocSidebarItemSchema,
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
is: itemWithType('localeDropdown'),
|
|
221
|
+
then: LocaleDropdownNavbarItemSchema,
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
is: itemWithType('search'),
|
|
225
|
+
then: SearchItemSchema,
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
is: itemWithType('html'),
|
|
229
|
+
then: HtmlNavbarItemSchema,
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
is: itemWithType(CustomNavbarItemRegexp),
|
|
233
|
+
then: CustomNavbarItemSchema,
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
is: itemWithType(undefined),
|
|
237
|
+
then: utils_validation_1.Joi.object().when('.', {
|
|
238
|
+
// Dropdown item can be specified without type field
|
|
239
|
+
is: utils_validation_1.Joi.object({
|
|
240
|
+
items: utils_validation_1.Joi.array().required(),
|
|
241
|
+
}).unknown(),
|
|
242
|
+
then: DropdownNavbarItemSchema,
|
|
243
|
+
otherwise: DefaultNavbarItemSchema,
|
|
244
|
+
}),
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
otherwise: utils_validation_1.Joi.forbidden().messages({
|
|
248
|
+
'any.unknown': 'Bad navbar item type {.type}',
|
|
249
|
+
}),
|
|
250
|
+
});
|
|
251
|
+
const ColorModeSchema = utils_validation_1.Joi.object({
|
|
252
|
+
defaultMode: utils_validation_1.Joi.string()
|
|
253
|
+
.equal('dark', 'light')
|
|
254
|
+
.default(DEFAULT_COLOR_MODE_CONFIG.defaultMode),
|
|
255
|
+
disableSwitch: utils_validation_1.Joi.bool().default(DEFAULT_COLOR_MODE_CONFIG.disableSwitch),
|
|
256
|
+
respectPrefersColorScheme: utils_validation_1.Joi.bool().default(DEFAULT_COLOR_MODE_CONFIG.respectPrefersColorScheme),
|
|
257
|
+
switchConfig: utils_validation_1.Joi.any().forbidden().messages({
|
|
258
|
+
'any.unknown': 'colorMode.switchConfig is deprecated. If you want to customize the icons for light and dark mode, swizzle IconLightMode, IconDarkMode, or ColorModeToggle instead.',
|
|
259
|
+
}),
|
|
260
|
+
}).default(DEFAULT_COLOR_MODE_CONFIG);
|
|
261
|
+
const HtmlMetadataSchema = utils_validation_1.Joi.object({
|
|
262
|
+
id: utils_validation_1.Joi.string(),
|
|
263
|
+
name: utils_validation_1.Joi.string(),
|
|
264
|
+
property: utils_validation_1.Joi.string(),
|
|
265
|
+
content: utils_validation_1.Joi.string(),
|
|
266
|
+
itemprop: utils_validation_1.Joi.string(),
|
|
267
|
+
}).unknown();
|
|
268
|
+
const FooterLinkItemSchema = utils_validation_1.Joi.object({
|
|
269
|
+
to: utils_validation_1.Joi.string(),
|
|
270
|
+
href: utils_validation_1.URISchema,
|
|
271
|
+
html: utils_validation_1.Joi.string(),
|
|
272
|
+
label: utils_validation_1.Joi.string(),
|
|
273
|
+
className: utils_validation_1.Joi.string(),
|
|
274
|
+
})
|
|
275
|
+
.xor('to', 'href', 'html')
|
|
276
|
+
.with('to', 'label')
|
|
277
|
+
.with('href', 'label')
|
|
278
|
+
.nand('html', 'label')
|
|
279
|
+
// We allow any unknown attributes on the links (users may need additional
|
|
280
|
+
// attributes like target, aria-role, data-customAttribute...)
|
|
281
|
+
.unknown();
|
|
282
|
+
const FooterColumnItemSchema = utils_validation_1.Joi.object({
|
|
283
|
+
title: utils_validation_1.Joi.string().allow(null).default(null),
|
|
284
|
+
className: utils_validation_1.Joi.string(),
|
|
285
|
+
items: utils_validation_1.Joi.array().items(FooterLinkItemSchema).default([]),
|
|
286
|
+
});
|
|
287
|
+
const LogoSchema = utils_validation_1.Joi.object({
|
|
288
|
+
alt: utils_validation_1.Joi.string().allow(''),
|
|
289
|
+
src: utils_validation_1.Joi.string().required(),
|
|
290
|
+
srcDark: utils_validation_1.Joi.string(),
|
|
291
|
+
width: utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.string(), utils_validation_1.Joi.number()),
|
|
292
|
+
height: utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.string(), utils_validation_1.Joi.number()),
|
|
293
|
+
href: utils_validation_1.Joi.string(),
|
|
294
|
+
target: utils_validation_1.Joi.string(),
|
|
295
|
+
style: utils_validation_1.Joi.object(),
|
|
296
|
+
className: utils_validation_1.Joi.string(),
|
|
297
|
+
});
|
|
298
|
+
// Normalize prism language to lowercase
|
|
299
|
+
// See https://github.com/facebook/docusaurus/issues/9012
|
|
300
|
+
const PrismLanguage = utils_validation_1.Joi.string().custom((val) => val.toLowerCase());
|
|
301
|
+
exports.ThemeConfigSchema = utils_validation_1.Joi.object({
|
|
302
|
+
// TODO temporary (@alpha-58)
|
|
303
|
+
// @ts-expect-error: forbidden
|
|
304
|
+
disableDarkMode: utils_validation_1.Joi.any().forbidden().messages({
|
|
305
|
+
'any.unknown': 'disableDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.disableSwitch = true',
|
|
306
|
+
}),
|
|
307
|
+
// TODO temporary (@alpha-58)
|
|
308
|
+
defaultDarkMode: utils_validation_1.Joi.any().forbidden().messages({
|
|
309
|
+
'any.unknown': 'defaultDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.defaultMode = "dark"',
|
|
310
|
+
}),
|
|
311
|
+
colorMode: ColorModeSchema,
|
|
312
|
+
image: utils_validation_1.Joi.string(),
|
|
313
|
+
docs: DocsSchema,
|
|
314
|
+
blog: BlogSchema,
|
|
315
|
+
metadata: utils_validation_1.Joi.array()
|
|
316
|
+
.items(HtmlMetadataSchema)
|
|
317
|
+
.default(exports.DEFAULT_CONFIG.metadata),
|
|
318
|
+
// cSpell:ignore metadatas
|
|
319
|
+
metadatas: utils_validation_1.Joi.any().forbidden().messages({
|
|
320
|
+
'any.unknown':
|
|
321
|
+
// cSpell:ignore metadatas
|
|
322
|
+
'themeConfig.metadatas has been renamed as themeConfig.metadata. See https://github.com/facebook/docusaurus/pull/5871',
|
|
323
|
+
}),
|
|
324
|
+
announcementBar: utils_validation_1.Joi.object({
|
|
325
|
+
id: utils_validation_1.Joi.string().default('announcement-bar'),
|
|
326
|
+
content: utils_validation_1.Joi.string().required(),
|
|
327
|
+
backgroundColor: utils_validation_1.Joi.string(),
|
|
328
|
+
textColor: utils_validation_1.Joi.string(),
|
|
329
|
+
isCloseable: utils_validation_1.Joi.bool().default(true),
|
|
330
|
+
}).optional(),
|
|
331
|
+
navbar: utils_validation_1.Joi.object({
|
|
332
|
+
style: utils_validation_1.Joi.string().equal('dark', 'primary'),
|
|
333
|
+
hideOnScroll: utils_validation_1.Joi.bool().default(exports.DEFAULT_CONFIG.navbar.hideOnScroll),
|
|
334
|
+
// TODO temporary (@alpha-58)
|
|
335
|
+
links: utils_validation_1.Joi.any().forbidden().messages({
|
|
336
|
+
'any.unknown': 'themeConfig.navbar.links has been renamed as themeConfig.navbar.items',
|
|
337
|
+
}),
|
|
338
|
+
items: utils_validation_1.Joi.array()
|
|
339
|
+
.items(NavbarItemSchema)
|
|
340
|
+
.default(exports.DEFAULT_CONFIG.navbar.items),
|
|
341
|
+
title: utils_validation_1.Joi.string().allow('', null),
|
|
342
|
+
logo: LogoSchema,
|
|
343
|
+
}).default(exports.DEFAULT_CONFIG.navbar),
|
|
344
|
+
footer: utils_validation_1.Joi.object({
|
|
345
|
+
style: utils_validation_1.Joi.string().equal('dark', 'light').default('light'),
|
|
346
|
+
logo: LogoSchema,
|
|
347
|
+
copyright: utils_validation_1.Joi.string(),
|
|
348
|
+
links: utils_validation_1.Joi.alternatives(utils_validation_1.Joi.array().items(FooterColumnItemSchema), utils_validation_1.Joi.array().items(FooterLinkItemSchema))
|
|
349
|
+
.messages({
|
|
350
|
+
'alternatives.match': `The footer must be either simple or multi-column, and not a mix of the two. See: https://docusaurus.io/docs/api/themes/configuration#footer-links`,
|
|
351
|
+
})
|
|
352
|
+
.default([]),
|
|
353
|
+
}).optional(),
|
|
354
|
+
prism: utils_validation_1.Joi.object({
|
|
355
|
+
theme: utils_validation_1.Joi.object({
|
|
356
|
+
plain: utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.array(), utils_validation_1.Joi.object()).required(),
|
|
357
|
+
styles: utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.array(), utils_validation_1.Joi.object()).required(),
|
|
358
|
+
}).default(exports.DEFAULT_CONFIG.prism.theme),
|
|
359
|
+
darkTheme: utils_validation_1.Joi.object({
|
|
360
|
+
plain: utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.array(), utils_validation_1.Joi.object()).required(),
|
|
361
|
+
styles: utils_validation_1.Joi.alternatives().try(utils_validation_1.Joi.array(), utils_validation_1.Joi.object()).required(),
|
|
362
|
+
}),
|
|
363
|
+
defaultLanguage: PrismLanguage,
|
|
364
|
+
additionalLanguages: utils_validation_1.Joi.array()
|
|
365
|
+
.items(PrismLanguage)
|
|
366
|
+
.default(exports.DEFAULT_CONFIG.prism.additionalLanguages),
|
|
367
|
+
magicComments: utils_validation_1.Joi.array()
|
|
368
|
+
.items(utils_validation_1.Joi.object({
|
|
369
|
+
className: utils_validation_1.Joi.string().required(),
|
|
370
|
+
line: utils_validation_1.Joi.string(),
|
|
371
|
+
block: utils_validation_1.Joi.object({
|
|
372
|
+
start: utils_validation_1.Joi.string().required(),
|
|
373
|
+
end: utils_validation_1.Joi.string().required(),
|
|
374
|
+
}),
|
|
375
|
+
}).or('line', 'block'))
|
|
376
|
+
.default(exports.DEFAULT_CONFIG.prism.magicComments),
|
|
377
|
+
})
|
|
378
|
+
.default(exports.DEFAULT_CONFIG.prism)
|
|
379
|
+
.unknown(),
|
|
380
|
+
hideableSidebar: utils_validation_1.Joi.forbidden().messages({
|
|
381
|
+
'any.unknown': 'themeConfig.hideableSidebar has been moved to themeConfig.docs.sidebar.hideable.',
|
|
382
|
+
}),
|
|
383
|
+
autoCollapseSidebarCategories: utils_validation_1.Joi.forbidden().messages({
|
|
384
|
+
'any.unknown': 'themeConfig.autoCollapseSidebarCategories has been moved to themeConfig.docs.sidebar.autoCollapseCategories.',
|
|
385
|
+
}),
|
|
386
|
+
sidebarCollapsible: utils_validation_1.Joi.forbidden().messages({
|
|
387
|
+
'any.unknown': 'The themeConfig.sidebarCollapsible has been moved to docs plugin options. See: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs',
|
|
388
|
+
}),
|
|
389
|
+
tableOfContents: utils_validation_1.Joi.object({
|
|
390
|
+
minHeadingLevel: utils_validation_1.Joi.number()
|
|
391
|
+
.default(exports.DEFAULT_CONFIG.tableOfContents.minHeadingLevel)
|
|
392
|
+
.when('maxHeadingLevel', {
|
|
393
|
+
is: utils_validation_1.Joi.exist(),
|
|
394
|
+
then: utils_validation_1.Joi.number()
|
|
395
|
+
.integer()
|
|
396
|
+
.min(2)
|
|
397
|
+
.max(6)
|
|
398
|
+
.max(utils_validation_1.Joi.ref('maxHeadingLevel')),
|
|
399
|
+
otherwise: utils_validation_1.Joi.number().integer().min(2).max(6),
|
|
400
|
+
}),
|
|
401
|
+
maxHeadingLevel: utils_validation_1.Joi.number()
|
|
402
|
+
.integer()
|
|
403
|
+
.min(2)
|
|
404
|
+
.max(6)
|
|
405
|
+
.default(exports.DEFAULT_CONFIG.tableOfContents.maxHeadingLevel),
|
|
406
|
+
}).default(exports.DEFAULT_CONFIG.tableOfContents),
|
|
407
|
+
});
|
|
408
|
+
function validateThemeConfig({ validate, themeConfig, }) {
|
|
409
|
+
return validate(exports.ThemeConfigSchema, themeConfig);
|
|
410
|
+
}
|
|
411
|
+
const DEFAULT_OPTIONS = {
|
|
412
|
+
customCss: [],
|
|
413
|
+
};
|
|
414
|
+
const PluginOptionSchema = utils_validation_1.Joi.object({
|
|
415
|
+
customCss: utils_validation_1.Joi.alternatives()
|
|
416
|
+
.try(utils_validation_1.Joi.array().items(utils_validation_1.Joi.string().required()), utils_validation_1.Joi.alternatives().conditional(utils_validation_1.Joi.string().required(), {
|
|
417
|
+
then: utils_validation_1.Joi.custom((val) => [val]),
|
|
418
|
+
otherwise: utils_validation_1.Joi.forbidden().messages({
|
|
419
|
+
'any.unknown': '"customCss" must be a string or an array of strings',
|
|
420
|
+
}),
|
|
421
|
+
}))
|
|
422
|
+
.default(DEFAULT_OPTIONS.customCss),
|
|
423
|
+
});
|
|
424
|
+
function validateOptions({ validate, options, }) {
|
|
425
|
+
const validatedOptions = validate(PluginOptionSchema, options);
|
|
426
|
+
return validatedOptions;
|
|
427
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/***
|
|
2
|
+
Platform API style overrides
|
|
3
|
+
|
|
4
|
+
- Platform API pages uses separate theme styles via open-api theme plugin in addition to the styles provided to global docs
|
|
5
|
+
- style overrides are needed to fix styles since we are not using Docusaurus's Infima
|
|
6
|
+
***/
|
|
7
|
+
|
|
8
|
+
/* this is the class that wraps the main platform-api docs, so we nest overrides within */
|
|
9
|
+
.plugin-id-platform-api {
|
|
10
|
+
.col {
|
|
11
|
+
padding: 0 1rem;
|
|
12
|
+
}
|
|
13
|
+
.breadcrumbs {
|
|
14
|
+
padding: 1rem;
|
|
15
|
+
}
|
|
16
|
+
.theme-doc-version-badge {
|
|
17
|
+
margin-bottom: 1rem;
|
|
18
|
+
}
|
|
19
|
+
.theme-admonition {
|
|
20
|
+
margin: 1rem 0;
|
|
21
|
+
}
|
|
22
|
+
.theme-doc-version-badge {
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.openapi__method-endpoint-path {
|
|
27
|
+
margin-left: .5rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
pre, summary, code {
|
|
31
|
+
h1,
|
|
32
|
+
h2,
|
|
33
|
+
h3,
|
|
34
|
+
h4,
|
|
35
|
+
h5,
|
|
36
|
+
h6 {
|
|
37
|
+
font-size: 0.875rem;
|
|
38
|
+
margin: 0;
|
|
39
|
+
padding: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|