@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.
Files changed (574) hide show
  1. package/README.md +3 -3
  2. package/lib/getSwizzleConfig.d.ts +2 -0
  3. package/lib/getSwizzleConfig.js +400 -0
  4. package/lib/index.d.ts +5 -0
  5. package/lib/index.js +113 -0
  6. package/lib/inlineScripts.d.ts +10 -0
  7. package/lib/inlineScripts.js +72 -0
  8. package/lib/inlineSvgSprites.d.ts +1 -0
  9. package/lib/inlineSvgSprites.js +8 -0
  10. package/lib/main-styles.css +322 -0
  11. package/lib/nprogress.css +36 -0
  12. package/lib/nprogress.d.ts +4 -0
  13. package/lib/nprogress.js +19 -0
  14. package/lib/options.d.ts +8 -0
  15. package/lib/options.js +427 -0
  16. package/lib/prism-include-languages.d.ts +1 -0
  17. package/lib/prism-include-languages.js +3 -0
  18. package/lib/styles/api.css +42 -0
  19. package/lib/styles/typography.css +342 -0
  20. package/lib/theme/Admonition/Icon/Danger.d.ts +3 -0
  21. package/lib/theme/Admonition/Icon/Danger.js +11 -0
  22. package/lib/theme/Admonition/Icon/Info.d.ts +3 -0
  23. package/lib/theme/Admonition/Icon/Info.js +11 -0
  24. package/lib/theme/Admonition/Icon/Note.d.ts +3 -0
  25. package/lib/theme/Admonition/Icon/Note.js +11 -0
  26. package/lib/theme/Admonition/Icon/Tip.d.ts +3 -0
  27. package/lib/theme/Admonition/Icon/Tip.js +11 -0
  28. package/lib/theme/Admonition/Icon/Warning.d.ts +3 -0
  29. package/lib/theme/Admonition/Icon/Warning.js +11 -0
  30. package/lib/theme/Admonition/Layout/index.d.ts +3 -0
  31. package/lib/theme/Admonition/Layout/index.js +40 -0
  32. package/lib/theme/Admonition/Layout/styles.module.css +39 -0
  33. package/lib/theme/Admonition/Type/Caution.d.ts +3 -0
  34. package/lib/theme/Admonition/Type/Caution.js +28 -0
  35. package/lib/theme/Admonition/Type/Danger.d.ts +3 -0
  36. package/lib/theme/Admonition/Type/Danger.js +26 -0
  37. package/lib/theme/Admonition/Type/Info.d.ts +3 -0
  38. package/lib/theme/Admonition/Type/Info.js +26 -0
  39. package/lib/theme/Admonition/Type/Note.d.ts +3 -0
  40. package/lib/theme/Admonition/Type/Note.js +26 -0
  41. package/lib/theme/Admonition/Type/Tip.d.ts +3 -0
  42. package/lib/theme/Admonition/Type/Tip.js +26 -0
  43. package/lib/theme/Admonition/Type/Warning.d.ts +3 -0
  44. package/lib/theme/Admonition/Type/Warning.js +26 -0
  45. package/lib/theme/Admonition/Types.d.ts +5 -0
  46. package/lib/theme/Admonition/Types.js +27 -0
  47. package/lib/theme/Admonition/index.d.ts +3 -0
  48. package/lib/theme/Admonition/index.js +18 -0
  49. package/lib/theme/AdmonitionVersioned/AddedInVersion.d.ts +8 -0
  50. package/lib/theme/AdmonitionVersioned/AddedInVersion.js +6 -0
  51. package/lib/theme/AdmonitionVersioned/AdmonitionVersioned.d.ts +18 -0
  52. package/lib/theme/AdmonitionVersioned/AdmonitionVersioned.js +43 -0
  53. package/lib/theme/AdmonitionVersioned/ChangedInVersion.d.ts +8 -0
  54. package/lib/theme/AdmonitionVersioned/ChangedInVersion.js +6 -0
  55. package/lib/theme/AdmonitionVersioned/DeprecatedInVersion.d.ts +8 -0
  56. package/lib/theme/AdmonitionVersioned/DeprecatedInVersion.js +6 -0
  57. package/lib/theme/AdmonitionVersioned/getStableVersion.d.ts +4 -0
  58. package/lib/theme/AdmonitionVersioned/getStableVersion.js +20 -0
  59. package/lib/theme/AdmonitionVersioned/index.d.ts +1 -0
  60. package/lib/theme/AdmonitionVersioned/index.js +5 -0
  61. package/lib/theme/AdmonitionVersioned/stableVersions.d.ts +20 -0
  62. package/lib/theme/AdmonitionVersioned/stableVersions.js +91 -0
  63. package/lib/theme/AnnouncementBar/CloseButton/index.d.ts +3 -0
  64. package/lib/theme/AnnouncementBar/CloseButton/index.js +20 -0
  65. package/lib/theme/AnnouncementBar/CloseButton/styles.module.css +6 -0
  66. package/lib/theme/AnnouncementBar/Content/index.d.ts +3 -0
  67. package/lib/theme/AnnouncementBar/Content/index.js +17 -0
  68. package/lib/theme/AnnouncementBar/Content/styles.module.css +12 -0
  69. package/lib/theme/AnnouncementBar/index.d.ts +2 -0
  70. package/lib/theme/AnnouncementBar/index.js +33 -0
  71. package/lib/theme/AnnouncementBar/styles.module.css +57 -0
  72. package/lib/theme/BackToTopButton/index.d.ts +2 -0
  73. package/lib/theme/BackToTopButton/index.js +26 -0
  74. package/lib/theme/BackToTopButton/styles.module.css +39 -0
  75. package/lib/theme/Blog/Components/Author/Socials/index.d.ts +5 -0
  76. package/lib/theme/Blog/Components/Author/Socials/index.js +57 -0
  77. package/lib/theme/Blog/Components/Author/Socials/styles.module.css +34 -0
  78. package/lib/theme/Blog/Components/Author/index.d.ts +3 -0
  79. package/lib/theme/Blog/Components/Author/index.js +84 -0
  80. package/lib/theme/Blog/Components/Author/styles.module.css +69 -0
  81. package/lib/theme/Blog/Pages/BlogAuthorsListPage/index.d.ts +3 -0
  82. package/lib/theme/Blog/Pages/BlogAuthorsListPage/index.js +48 -0
  83. package/lib/theme/Blog/Pages/BlogAuthorsListPage/styles.module.css +6 -0
  84. package/lib/theme/Blog/Pages/BlogAuthorsPostsPage/index.d.ts +3 -0
  85. package/lib/theme/Blog/Pages/BlogAuthorsPostsPage/index.js +70 -0
  86. package/lib/theme/BlogArchivePage/index.d.ts +3 -0
  87. package/lib/theme/BlogArchivePage/index.js +87 -0
  88. package/lib/theme/BlogLayout/index.d.ts +3 -0
  89. package/lib/theme/BlogLayout/index.js +25 -0
  90. package/lib/theme/BlogListPage/StructuredData/index.d.ts +3 -0
  91. package/lib/theme/BlogListPage/StructuredData/index.js +13 -0
  92. package/lib/theme/BlogListPage/index.d.ts +3 -0
  93. package/lib/theme/BlogListPage/index.js +50 -0
  94. package/lib/theme/BlogListPaginator/index.d.ts +3 -0
  95. package/lib/theme/BlogListPaginator/index.js +42 -0
  96. package/lib/theme/BlogPostItem/Container/index.d.ts +3 -0
  97. package/lib/theme/BlogPostItem/Container/index.js +4 -0
  98. package/lib/theme/BlogPostItem/Content/index.d.ts +3 -0
  99. package/lib/theme/BlogPostItem/Content/index.js +16 -0
  100. package/lib/theme/BlogPostItem/Footer/ReadMoreLink/index.d.ts +3 -0
  101. package/lib/theme/BlogPostItem/Footer/ReadMoreLink/index.js +32 -0
  102. package/lib/theme/BlogPostItem/Footer/index.d.ts +2 -0
  103. package/lib/theme/BlogPostItem/Footer/index.js +76 -0
  104. package/lib/theme/BlogPostItem/Header/Authors/index.d.ts +3 -0
  105. package/lib/theme/BlogPostItem/Header/Authors/index.js +43 -0
  106. package/lib/theme/BlogPostItem/Header/Authors/styles.module.css +15 -0
  107. package/lib/theme/BlogPostItem/Header/Info/index.d.ts +3 -0
  108. package/lib/theme/BlogPostItem/Header/Info/index.js +58 -0
  109. package/lib/theme/BlogPostItem/Header/Info/styles.module.css +5 -0
  110. package/lib/theme/BlogPostItem/Header/Title/index.d.ts +3 -0
  111. package/lib/theme/BlogPostItem/Header/Title/index.js +15 -0
  112. package/lib/theme/BlogPostItem/Header/Title/styles.module.css +14 -0
  113. package/lib/theme/BlogPostItem/Header/index.d.ts +2 -0
  114. package/lib/theme/BlogPostItem/Header/index.js +13 -0
  115. package/lib/theme/BlogPostItem/index.d.ts +3 -0
  116. package/lib/theme/BlogPostItem/index.js +22 -0
  117. package/lib/theme/BlogPostItems/index.d.ts +3 -0
  118. package/lib/theme/BlogPostItems/index.js +21 -0
  119. package/lib/theme/BlogPostPage/Metadata/index.d.ts +2 -0
  120. package/lib/theme/BlogPostPage/Metadata/index.js +35 -0
  121. package/lib/theme/BlogPostPage/StructuredData/index.d.ts +2 -0
  122. package/lib/theme/BlogPostPage/StructuredData/index.js +13 -0
  123. package/lib/theme/BlogPostPage/index.d.ts +3 -0
  124. package/lib/theme/BlogPostPage/index.js +62 -0
  125. package/lib/theme/BlogPostPaginator/index.d.ts +3 -0
  126. package/lib/theme/BlogPostPaginator/index.js +41 -0
  127. package/lib/theme/BlogSidebar/Content/index.d.ts +5 -0
  128. package/lib/theme/BlogSidebar/Content/index.js +35 -0
  129. package/lib/theme/BlogSidebar/Desktop/index.d.ts +5 -0
  130. package/lib/theme/BlogSidebar/Desktop/index.js +45 -0
  131. package/lib/theme/BlogSidebar/Desktop/styles.module.css +46 -0
  132. package/lib/theme/BlogSidebar/Mobile/index.d.ts +5 -0
  133. package/lib/theme/BlogSidebar/Mobile/index.js +38 -0
  134. package/lib/theme/BlogSidebar/Mobile/styles.module.css +5 -0
  135. package/lib/theme/BlogSidebar/index.d.ts +3 -0
  136. package/lib/theme/BlogSidebar/index.js +15 -0
  137. package/lib/theme/BlogTagsListPage/index.d.ts +3 -0
  138. package/lib/theme/BlogTagsListPage/index.js +29 -0
  139. package/lib/theme/BlogTagsPostsPage/index.d.ts +3 -0
  140. package/lib/theme/BlogTagsPostsPage/index.js +58 -0
  141. package/lib/theme/CodeBlock/Buttons/Button/index.d.ts +3 -0
  142. package/lib/theme/CodeBlock/Buttons/Button/index.js +7 -0
  143. package/lib/theme/CodeBlock/Buttons/CopyButton/index.d.ts +3 -0
  144. package/lib/theme/CodeBlock/Buttons/CopyButton/index.js +64 -0
  145. package/lib/theme/CodeBlock/Buttons/CopyButton/styles.module.css +42 -0
  146. package/lib/theme/CodeBlock/Buttons/WordWrapButton/index.d.ts +3 -0
  147. package/lib/theme/CodeBlock/Buttons/WordWrapButton/index.js +32 -0
  148. package/lib/theme/CodeBlock/Buttons/WordWrapButton/styles.module.css +10 -0
  149. package/lib/theme/CodeBlock/Buttons/index.d.ts +3 -0
  150. package/lib/theme/CodeBlock/Buttons/index.js +21 -0
  151. package/lib/theme/CodeBlock/Buttons/styles.module.css +32 -0
  152. package/lib/theme/CodeBlock/Container/index.d.ts +4 -0
  153. package/lib/theme/CodeBlock/Container/index.js +21 -0
  154. package/lib/theme/CodeBlock/Container/styles.module.css +9 -0
  155. package/lib/theme/CodeBlock/Content/Element.d.ts +3 -0
  156. package/lib/theme/CodeBlock/Content/Element.js +19 -0
  157. package/lib/theme/CodeBlock/Content/String.d.ts +3 -0
  158. package/lib/theme/CodeBlock/Content/String.js +31 -0
  159. package/lib/theme/CodeBlock/Content/index.d.ts +3 -0
  160. package/lib/theme/CodeBlock/Content/index.js +68 -0
  161. package/lib/theme/CodeBlock/Content/styles.module.css +30 -0
  162. package/lib/theme/CodeBlock/Layout/index.d.ts +3 -0
  163. package/lib/theme/CodeBlock/Layout/index.js +24 -0
  164. package/lib/theme/CodeBlock/Layout/styles.module.css +22 -0
  165. package/lib/theme/CodeBlock/Line/Token/index.d.ts +3 -0
  166. package/lib/theme/CodeBlock/Line/Token/index.js +5 -0
  167. package/lib/theme/CodeBlock/Line/index.d.ts +3 -0
  168. package/lib/theme/CodeBlock/Line/index.js +48 -0
  169. package/lib/theme/CodeBlock/Line/styles.module.css +47 -0
  170. package/lib/theme/CodeBlock/Title/index.d.ts +3 -0
  171. package/lib/theme/CodeBlock/Title/index.js +4 -0
  172. package/lib/theme/CodeBlock/index.d.ts +3 -0
  173. package/lib/theme/CodeBlock/index.js +32 -0
  174. package/lib/theme/CodeInline/index.d.ts +3 -0
  175. package/lib/theme/CodeInline/index.js +7 -0
  176. package/lib/theme/ColorModeToggle/index.d.ts +5 -0
  177. package/lib/theme/ColorModeToggle/index.js +115 -0
  178. package/lib/theme/ColorModeToggle/styles.module.css +35 -0
  179. package/lib/theme/ContentVisibility/Draft/index.d.ts +3 -0
  180. package/lib/theme/ContentVisibility/Draft/index.js +18 -0
  181. package/lib/theme/ContentVisibility/Unlisted/index.d.ts +3 -0
  182. package/lib/theme/ContentVisibility/Unlisted/index.js +32 -0
  183. package/lib/theme/ContentVisibility/index.d.ts +3 -0
  184. package/lib/theme/ContentVisibility/index.js +15 -0
  185. package/lib/theme/Details/index.d.ts +3 -0
  186. package/lib/theme/Details/index.js +15 -0
  187. package/lib/theme/Details/styles.module.css +8 -0
  188. package/lib/theme/DocBreadcrumbs/Items/Home/index.d.ts +2 -0
  189. package/lib/theme/DocBreadcrumbs/Items/Home/index.js +22 -0
  190. package/lib/theme/DocBreadcrumbs/Items/Home/styles.module.css +9 -0
  191. package/lib/theme/DocBreadcrumbs/StructuredData/index.d.ts +3 -0
  192. package/lib/theme/DocBreadcrumbs/StructuredData/index.js +15 -0
  193. package/lib/theme/DocBreadcrumbs/index.d.ts +2 -0
  194. package/lib/theme/DocBreadcrumbs/index.js +76 -0
  195. package/lib/theme/DocBreadcrumbs/styles.module.css +14 -0
  196. package/lib/theme/DocCard/index.d.ts +3 -0
  197. package/lib/theme/DocCard/index.js +96 -0
  198. package/lib/theme/DocCard/styles.module.css +29 -0
  199. package/lib/theme/DocCardList/index.d.ts +3 -0
  200. package/lib/theme/DocCardList/index.js +33 -0
  201. package/lib/theme/DocCardList/styles.module.css +9 -0
  202. package/lib/theme/DocCategoryGeneratedIndexPage/index.d.ts +3 -0
  203. package/lib/theme/DocCategoryGeneratedIndexPage/index.js +57 -0
  204. package/lib/theme/DocCategoryGeneratedIndexPage/styles.module.css +13 -0
  205. package/lib/theme/DocItem/Content/index.d.ts +3 -0
  206. package/lib/theme/DocItem/Content/index.js +38 -0
  207. package/lib/theme/DocItem/Footer/index.d.ts +2 -0
  208. package/lib/theme/DocItem/Footer/index.js +43 -0
  209. package/lib/theme/DocItem/Layout/index.d.ts +3 -0
  210. package/lib/theme/DocItem/Layout/index.js +60 -0
  211. package/lib/theme/DocItem/Layout/styles.module.css +12 -0
  212. package/lib/theme/DocItem/Metadata/index.d.ts +2 -0
  213. package/lib/theme/DocItem/Metadata/index.js +14 -0
  214. package/lib/theme/DocItem/Paginator/index.d.ts +6 -0
  215. package/lib/theme/DocItem/Paginator/index.js +17 -0
  216. package/lib/theme/DocItem/TOC/Desktop/index.d.ts +2 -0
  217. package/lib/theme/DocItem/TOC/Desktop/index.js +15 -0
  218. package/lib/theme/DocItem/TOC/Mobile/index.d.ts +2 -0
  219. package/lib/theme/DocItem/TOC/Mobile/index.js +17 -0
  220. package/lib/theme/DocItem/TOC/Mobile/styles.module.css +26 -0
  221. package/lib/theme/DocItem/index.d.ts +3 -0
  222. package/lib/theme/DocItem/index.js +19 -0
  223. package/lib/theme/DocPaginator/index.d.ts +3 -0
  224. package/lib/theme/DocPaginator/index.js +42 -0
  225. package/lib/theme/DocRoot/Layout/Main/index.d.ts +3 -0
  226. package/lib/theme/DocRoot/Layout/Main/index.js +23 -0
  227. package/lib/theme/DocRoot/Layout/Main/styles.module.css +23 -0
  228. package/lib/theme/DocRoot/Layout/Sidebar/ExpandButton/index.d.ts +3 -0
  229. package/lib/theme/DocRoot/Layout/Sidebar/ExpandButton/index.js +28 -0
  230. package/lib/theme/DocRoot/Layout/Sidebar/ExpandButton/styles.module.css +29 -0
  231. package/lib/theme/DocRoot/Layout/Sidebar/index.d.ts +3 -0
  232. package/lib/theme/DocRoot/Layout/Sidebar/index.js +70 -0
  233. package/lib/theme/DocRoot/Layout/Sidebar/styles.module.css +34 -0
  234. package/lib/theme/DocRoot/Layout/index.d.ts +3 -0
  235. package/lib/theme/DocRoot/Layout/index.js +27 -0
  236. package/lib/theme/DocRoot/Layout/styles.module.css +11 -0
  237. package/lib/theme/DocRoot/index.d.ts +3 -0
  238. package/lib/theme/DocRoot/index.js +25 -0
  239. package/lib/theme/DocSidebar/Desktop/CollapseButton/index.d.ts +3 -0
  240. package/lib/theme/DocSidebar/Desktop/CollapseButton/index.js +25 -0
  241. package/lib/theme/DocSidebar/Desktop/CollapseButton/styles.module.css +42 -0
  242. package/lib/theme/DocSidebar/Desktop/Content/index.d.ts +3 -0
  243. package/lib/theme/DocSidebar/Desktop/Content/index.js +44 -0
  244. package/lib/theme/DocSidebar/Desktop/Content/styles.module.css +18 -0
  245. package/lib/theme/DocSidebar/Desktop/index.d.ts +5 -0
  246. package/lib/theme/DocSidebar/Desktop/index.js +33 -0
  247. package/lib/theme/DocSidebar/Desktop/styles.module.css +39 -0
  248. package/lib/theme/DocSidebar/Mobile/index.d.ts +5 -0
  249. package/lib/theme/DocSidebar/Mobile/index.js +39 -0
  250. package/lib/theme/DocSidebar/index.d.ts +3 -0
  251. package/lib/theme/DocSidebar/index.js +18 -0
  252. package/lib/theme/DocSidebarItem/Category/index.d.ts +3 -0
  253. package/lib/theme/DocSidebarItem/Category/index.js +273 -0
  254. package/lib/theme/DocSidebarItem/Category/styles.module.css +35 -0
  255. package/lib/theme/DocSidebarItem/Html/index.d.ts +3 -0
  256. package/lib/theme/DocSidebarItem/Html/index.js +23 -0
  257. package/lib/theme/DocSidebarItem/Html/styles.module.css +8 -0
  258. package/lib/theme/DocSidebarItem/Link/index.d.ts +3 -0
  259. package/lib/theme/DocSidebarItem/Link/index.js +60 -0
  260. package/lib/theme/DocSidebarItem/Link/styles.module.css +13 -0
  261. package/lib/theme/DocSidebarItem/index.d.ts +3 -0
  262. package/lib/theme/DocSidebarItem/index.js +27 -0
  263. package/lib/theme/DocSidebarItems/index.d.ts +5 -0
  264. package/lib/theme/DocSidebarItems/index.js +18 -0
  265. package/lib/theme/DocTagDocListPage/index.d.ts +3 -0
  266. package/lib/theme/DocTagDocListPage/index.js +98 -0
  267. package/lib/theme/DocTagsListPage/index.d.ts +3 -0
  268. package/lib/theme/DocTagsListPage/index.js +43 -0
  269. package/lib/theme/DocVersionBadge/index.d.ts +3 -0
  270. package/lib/theme/DocVersionBadge/index.js +25 -0
  271. package/lib/theme/DocVersionBanner/index.d.ts +3 -0
  272. package/lib/theme/DocVersionBanner/index.js +125 -0
  273. package/lib/theme/DocVersionRoot/index.d.ts +3 -0
  274. package/lib/theme/DocVersionRoot/index.js +40 -0
  275. package/lib/theme/DocsRoot/index.d.ts +3 -0
  276. package/lib/theme/DocsRoot/index.js +12 -0
  277. package/lib/theme/EditMetaRow/index.d.ts +3 -0
  278. package/lib/theme/EditMetaRow/index.js +27 -0
  279. package/lib/theme/EditMetaRow/styles.module.css +19 -0
  280. package/lib/theme/EditThisPage/index.d.ts +3 -0
  281. package/lib/theme/EditThisPage/index.js +18 -0
  282. package/lib/theme/ErrorPageContent.d.ts +3 -0
  283. package/lib/theme/ErrorPageContent.js +34 -0
  284. package/lib/theme/Footer/Copyright/index.d.ts +3 -0
  285. package/lib/theme/Footer/Copyright/index.js +11 -0
  286. package/lib/theme/Footer/Layout/index.d.ts +3 -0
  287. package/lib/theme/Footer/Layout/index.js +35 -0
  288. package/lib/theme/Footer/LinkItem/index.d.ts +3 -0
  289. package/lib/theme/Footer/LinkItem/index.js +26 -0
  290. package/lib/theme/Footer/Links/MultiColumn/index.d.ts +3 -0
  291. package/lib/theme/Footer/Links/MultiColumn/index.js +44 -0
  292. package/lib/theme/Footer/Links/Simple/index.d.ts +3 -0
  293. package/lib/theme/Footer/Links/Simple/index.js +32 -0
  294. package/lib/theme/Footer/Links/index.d.ts +3 -0
  295. package/lib/theme/Footer/Links/index.js +11 -0
  296. package/lib/theme/Footer/Logo/index.d.ts +3 -0
  297. package/lib/theme/Footer/Logo/index.js +35 -0
  298. package/lib/theme/Footer/Logo/styles.module.css +11 -0
  299. package/lib/theme/Footer/index.d.ts +4 -0
  300. package/lib/theme/Footer/index.js +22 -0
  301. package/lib/theme/Heading/index.d.ts +4 -0
  302. package/lib/theme/Heading/index.js +42 -0
  303. package/lib/theme/Heading/styles.module.css +17 -0
  304. package/lib/theme/Homepage/index.d.ts +5 -0
  305. package/lib/theme/Homepage/index.js +161 -0
  306. package/lib/theme/Icon/AI/index.d.ts +3 -0
  307. package/lib/theme/Icon/AI/index.js +17 -0
  308. package/lib/theme/Icon/AWS/index.d.ts +3 -0
  309. package/lib/theme/Icon/AWS/index.js +19 -0
  310. package/lib/theme/Icon/Arrow/index.d.ts +3 -0
  311. package/lib/theme/Icon/Arrow/index.js +11 -0
  312. package/lib/theme/Icon/Azure/index.d.ts +3 -0
  313. package/lib/theme/Icon/Azure/index.js +26 -0
  314. package/lib/theme/Icon/Changelog/index.d.ts +3 -0
  315. package/lib/theme/Icon/Changelog/index.js +22 -0
  316. package/lib/theme/Icon/ChatBubble/index.d.ts +3 -0
  317. package/lib/theme/Icon/ChatBubble/index.js +21 -0
  318. package/lib/theme/Icon/ChatBubbles/index.d.ts +3 -0
  319. package/lib/theme/Icon/ChatBubbles/index.js +36 -0
  320. package/lib/theme/Icon/Close/index.d.ts +3 -0
  321. package/lib/theme/Icon/Close/index.js +17 -0
  322. package/lib/theme/Icon/Cog/index.d.ts +3 -0
  323. package/lib/theme/Icon/Cog/index.js +43 -0
  324. package/lib/theme/Icon/Copy/index.d.ts +3 -0
  325. package/lib/theme/Icon/Copy/index.js +11 -0
  326. package/lib/theme/Icon/DarkMode/index.d.ts +3 -0
  327. package/lib/theme/Icon/DarkMode/index.js +11 -0
  328. package/lib/theme/Icon/Edit/index.d.ts +3 -0
  329. package/lib/theme/Icon/Edit/index.js +19 -0
  330. package/lib/theme/Icon/Edit/styles.module.css +6 -0
  331. package/lib/theme/Icon/Envelope/index.d.ts +3 -0
  332. package/lib/theme/Icon/Envelope/index.js +27 -0
  333. package/lib/theme/Icon/ExternalLink/index.d.ts +3 -0
  334. package/lib/theme/Icon/ExternalLink/index.js +21 -0
  335. package/lib/theme/Icon/ExternalLink/styles.module.css +5 -0
  336. package/lib/theme/Icon/Fusion/index.d.ts +3 -0
  337. package/lib/theme/Icon/Fusion/index.js +30 -0
  338. package/lib/theme/Icon/GoogleCloud/index.d.ts +3 -0
  339. package/lib/theme/Icon/GoogleCloud/index.js +58 -0
  340. package/lib/theme/Icon/Home/index.d.ts +3 -0
  341. package/lib/theme/Icon/Home/index.js +11 -0
  342. package/lib/theme/Icon/Language/index.d.ts +3 -0
  343. package/lib/theme/Icon/Language/index.js +16 -0
  344. package/lib/theme/Icon/LightMode/index.d.ts +3 -0
  345. package/lib/theme/Icon/LightMode/index.js +11 -0
  346. package/lib/theme/Icon/MCP/index.d.ts +3 -0
  347. package/lib/theme/Icon/MCP/index.js +72 -0
  348. package/lib/theme/Icon/Menu/index.d.ts +3 -0
  349. package/lib/theme/Icon/Menu/index.js +25 -0
  350. package/lib/theme/Icon/MultiQC/index.d.ts +3 -0
  351. package/lib/theme/Icon/MultiQC/index.js +23 -0
  352. package/lib/theme/Icon/Nextflow/index.d.ts +3 -0
  353. package/lib/theme/Icon/Nextflow/index.js +23 -0
  354. package/lib/theme/Icon/QuestionMark/index.d.ts +3 -0
  355. package/lib/theme/Icon/QuestionMark/index.js +44 -0
  356. package/lib/theme/Icon/SeqeraCloud/index.d.ts +3 -0
  357. package/lib/theme/Icon/SeqeraCloud/index.js +33 -0
  358. package/lib/theme/Icon/SeqeraEnterprise/index.d.ts +3 -0
  359. package/lib/theme/Icon/SeqeraEnterprise/index.js +370 -0
  360. package/lib/theme/Icon/SeqeraLogo/index.d.ts +3 -0
  361. package/lib/theme/Icon/SeqeraLogo/index.js +18 -0
  362. package/lib/theme/Icon/ServiceStatus/index.d.ts +3 -0
  363. package/lib/theme/Icon/ServiceStatus/index.js +99 -0
  364. package/lib/theme/Icon/Sidebar/index.d.ts +3 -0
  365. package/lib/theme/Icon/Sidebar/index.js +21 -0
  366. package/lib/theme/Icon/Socials/Bluesky/index.d.ts +3 -0
  367. package/lib/theme/Icon/Socials/Bluesky/index.js +19 -0
  368. package/lib/theme/Icon/Socials/Bluesky/styles.module.css +9 -0
  369. package/lib/theme/Icon/Socials/Default/index.d.ts +3 -0
  370. package/lib/theme/Icon/Socials/Default/index.js +24 -0
  371. package/lib/theme/Icon/Socials/Email/index.d.ts +3 -0
  372. package/lib/theme/Icon/Socials/Email/index.js +19 -0
  373. package/lib/theme/Icon/Socials/GitHub/index.d.ts +3 -0
  374. package/lib/theme/Icon/Socials/GitHub/index.js +19 -0
  375. package/lib/theme/Icon/Socials/GitHub/styles.module.css +9 -0
  376. package/lib/theme/Icon/Socials/Instagram/index.d.ts +3 -0
  377. package/lib/theme/Icon/Socials/Instagram/index.js +19 -0
  378. package/lib/theme/Icon/Socials/Instagram/styles.module.css +9 -0
  379. package/lib/theme/Icon/Socials/LinkedIn/index.d.ts +3 -0
  380. package/lib/theme/Icon/Socials/LinkedIn/index.js +19 -0
  381. package/lib/theme/Icon/Socials/LinkedIn/styles.module.css +9 -0
  382. package/lib/theme/Icon/Socials/Mastodon/index.d.ts +3 -0
  383. package/lib/theme/Icon/Socials/Mastodon/index.js +36 -0
  384. package/lib/theme/Icon/Socials/StackOverflow/index.d.ts +3 -0
  385. package/lib/theme/Icon/Socials/StackOverflow/index.js +21 -0
  386. package/lib/theme/Icon/Socials/Threads/index.d.ts +3 -0
  387. package/lib/theme/Icon/Socials/Threads/index.js +20 -0
  388. package/lib/theme/Icon/Socials/Threads/styles.module.css +9 -0
  389. package/lib/theme/Icon/Socials/Twitch/index.d.ts +3 -0
  390. package/lib/theme/Icon/Socials/Twitch/index.js +29 -0
  391. package/lib/theme/Icon/Socials/Twitter/index.d.ts +3 -0
  392. package/lib/theme/Icon/Socials/Twitter/index.js +18 -0
  393. package/lib/theme/Icon/Socials/X/index.d.ts +3 -0
  394. package/lib/theme/Icon/Socials/X/index.js +19 -0
  395. package/lib/theme/Icon/Socials/X/styles.module.css +9 -0
  396. package/lib/theme/Icon/Socials/YouTube/index.d.ts +3 -0
  397. package/lib/theme/Icon/Socials/YouTube/index.js +19 -0
  398. package/lib/theme/Icon/Success/index.d.ts +3 -0
  399. package/lib/theme/Icon/Success/index.js +11 -0
  400. package/lib/theme/Icon/SystemColorMode/index.d.ts +3 -0
  401. package/lib/theme/Icon/SystemColorMode/index.js +10 -0
  402. package/lib/theme/Icon/Wave/index.d.ts +3 -0
  403. package/lib/theme/Icon/Wave/index.js +30 -0
  404. package/lib/theme/Icon/WordWrap/index.d.ts +3 -0
  405. package/lib/theme/Icon/WordWrap/index.js +11 -0
  406. package/lib/theme/LastUpdated/index.d.ts +3 -0
  407. package/lib/theme/LastUpdated/index.js +71 -0
  408. package/lib/theme/Layout/Provider/index.d.ts +3 -0
  409. package/lib/theme/Layout/Provider/index.js +21 -0
  410. package/lib/theme/Layout/index.d.ts +3 -0
  411. package/lib/theme/Layout/index.js +53 -0
  412. package/lib/theme/Layout/styles.module.css +23 -0
  413. package/lib/theme/Logo/index.d.ts +3 -0
  414. package/lib/theme/Logo/index.js +60 -0
  415. package/lib/theme/MDXComponents/A/index.d.ts +3 -0
  416. package/lib/theme/MDXComponents/A/index.js +11 -0
  417. package/lib/theme/MDXComponents/Button/index.d.ts +9 -0
  418. package/lib/theme/MDXComponents/Button/index.js +31 -0
  419. package/lib/theme/MDXComponents/Code.d.ts +3 -0
  420. package/lib/theme/MDXComponents/Code.js +20 -0
  421. package/lib/theme/MDXComponents/Details.d.ts +3 -0
  422. package/lib/theme/MDXComponents/Details.js +16 -0
  423. package/lib/theme/MDXComponents/Heading.d.ts +3 -0
  424. package/lib/theme/MDXComponents/Heading.js +5 -0
  425. package/lib/theme/MDXComponents/Img/index.d.ts +3 -0
  426. package/lib/theme/MDXComponents/Img/index.js +17 -0
  427. package/lib/theme/MDXComponents/Img/styles.module.css +5 -0
  428. package/lib/theme/MDXComponents/Li.d.ts +3 -0
  429. package/lib/theme/MDXComponents/Li.js +12 -0
  430. package/lib/theme/MDXComponents/Pre.d.ts +3 -0
  431. package/lib/theme/MDXComponents/Pre.js +6 -0
  432. package/lib/theme/MDXComponents/Ul/index.d.ts +3 -0
  433. package/lib/theme/MDXComponents/Ul/index.js +19 -0
  434. package/lib/theme/MDXComponents/Ul/styles.module.css +9 -0
  435. package/lib/theme/MDXComponents/index.d.ts +3 -0
  436. package/lib/theme/MDXComponents/index.js +40 -0
  437. package/lib/theme/MDXContent/index.d.ts +3 -0
  438. package/lib/theme/MDXContent/index.js +6 -0
  439. package/lib/theme/MDXPage/index.d.ts +3 -0
  440. package/lib/theme/MDXPage/index.js +80 -0
  441. package/lib/theme/MDXPage/styles.module.css +5 -0
  442. package/lib/theme/Mermaid.d.ts +1 -0
  443. package/lib/theme/Mermaid.js +7 -0
  444. package/lib/theme/Navbar/ColorModeToggle/index.d.ts +3 -0
  445. package/lib/theme/Navbar/ColorModeToggle/index.js +23 -0
  446. package/lib/theme/Navbar/ColorModeToggle/styles.module.css +5 -0
  447. package/lib/theme/Navbar/Content/index.d.ts +2 -0
  448. package/lib/theme/Navbar/Content/index.js +136 -0
  449. package/lib/theme/Navbar/Content/styles.module.css +19 -0
  450. package/lib/theme/Navbar/Layout/index.d.ts +3 -0
  451. package/lib/theme/Navbar/Layout/index.js +53 -0
  452. package/lib/theme/Navbar/Layout/styles.module.css +9 -0
  453. package/lib/theme/Navbar/Logo/index.d.ts +2 -0
  454. package/lib/theme/Navbar/Logo/index.js +11 -0
  455. package/lib/theme/Navbar/MobileSidebar/Header/index.d.ts +2 -0
  456. package/lib/theme/Navbar/MobileSidebar/Header/index.js +32 -0
  457. package/lib/theme/Navbar/MobileSidebar/Layout/index.d.ts +3 -0
  458. package/lib/theme/Navbar/MobileSidebar/Layout/index.js +55 -0
  459. package/lib/theme/Navbar/MobileSidebar/Layout/styles.module.css +11 -0
  460. package/lib/theme/Navbar/MobileSidebar/PrimaryMenu/index.d.ts +2 -0
  461. package/lib/theme/Navbar/MobileSidebar/PrimaryMenu/index.js +86 -0
  462. package/lib/theme/Navbar/MobileSidebar/SecondaryMenu/index.d.ts +2 -0
  463. package/lib/theme/Navbar/MobileSidebar/SecondaryMenu/index.js +33 -0
  464. package/lib/theme/Navbar/MobileSidebar/Toggle/index.d.ts +2 -0
  465. package/lib/theme/Navbar/MobileSidebar/Toggle/index.js +22 -0
  466. package/lib/theme/Navbar/MobileSidebar/index.d.ts +2 -0
  467. package/lib/theme/Navbar/MobileSidebar/index.js +23 -0
  468. package/lib/theme/Navbar/Search/index.d.ts +3 -0
  469. package/lib/theme/Navbar/Search/index.js +10 -0
  470. package/lib/theme/Navbar/Search/styles.module.css +22 -0
  471. package/lib/theme/Navbar/Submenu/SubmenuLinks.d.ts +2 -0
  472. package/lib/theme/Navbar/Submenu/SubmenuLinks.js +110 -0
  473. package/lib/theme/Navbar/Submenu/index.d.ts +2 -0
  474. package/lib/theme/Navbar/Submenu/index.js +77 -0
  475. package/lib/theme/Navbar/Submenu/styles.module.css +82 -0
  476. package/lib/theme/Navbar/index.d.ts +2 -0
  477. package/lib/theme/Navbar/index.js +10 -0
  478. package/lib/theme/NavbarItem/ComponentTypes.d.ts +3 -0
  479. package/lib/theme/NavbarItem/ComponentTypes.js +21 -0
  480. package/lib/theme/NavbarItem/DefaultNavbarItem/Desktop/index.d.ts +3 -0
  481. package/lib/theme/NavbarItem/DefaultNavbarItem/Desktop/index.js +23 -0
  482. package/lib/theme/NavbarItem/DefaultNavbarItem/Mobile/index.d.ts +3 -0
  483. package/lib/theme/NavbarItem/DefaultNavbarItem/Mobile/index.js +14 -0
  484. package/lib/theme/NavbarItem/DefaultNavbarItem/index.d.ts +4 -0
  485. package/lib/theme/NavbarItem/DefaultNavbarItem/index.js +19 -0
  486. package/lib/theme/NavbarItem/DocNavbarItem.d.ts +3 -0
  487. package/lib/theme/NavbarItem/DocNavbarItem.js +32 -0
  488. package/lib/theme/NavbarItem/DocSidebarNavbarItem.d.ts +3 -0
  489. package/lib/theme/NavbarItem/DocSidebarNavbarItem.js +29 -0
  490. package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.d.ts +3 -0
  491. package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +133 -0
  492. package/lib/theme/NavbarItem/DocsVersionNavbarItem.d.ts +3 -0
  493. package/lib/theme/NavbarItem/DocsVersionNavbarItem.js +16 -0
  494. package/lib/theme/NavbarItem/DropdownNavbarItem/Desktop/index.d.ts +3 -0
  495. package/lib/theme/NavbarItem/DropdownNavbarItem/Desktop/index.js +68 -0
  496. package/lib/theme/NavbarItem/DropdownNavbarItem/Mobile/index.d.ts +4 -0
  497. package/lib/theme/NavbarItem/DropdownNavbarItem/Mobile/index.js +136 -0
  498. package/lib/theme/NavbarItem/DropdownNavbarItem/Mobile/styles.module.css +5 -0
  499. package/lib/theme/NavbarItem/DropdownNavbarItem/index.d.ts +3 -0
  500. package/lib/theme/NavbarItem/DropdownNavbarItem/index.js +7 -0
  501. package/lib/theme/NavbarItem/HtmlNavbarItem.d.ts +3 -0
  502. package/lib/theme/NavbarItem/HtmlNavbarItem.js +22 -0
  503. package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/index.d.ts +3 -0
  504. package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/index.js +114 -0
  505. package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/styles.module.css +6 -0
  506. package/lib/theme/NavbarItem/NavbarNavLink.d.ts +3 -0
  507. package/lib/theme/NavbarItem/NavbarNavLink.js +62 -0
  508. package/lib/theme/NavbarItem/SearchNavbarItem.d.ts +3 -0
  509. package/lib/theme/NavbarItem/SearchNavbarItem.js +13 -0
  510. package/lib/theme/NavbarItem/index.d.ts +3 -0
  511. package/lib/theme/NavbarItem/index.js +18 -0
  512. package/lib/theme/NotFound/Content/index.d.ts +3 -0
  513. package/lib/theme/NotFound/Content/index.js +38 -0
  514. package/lib/theme/NotFound/index.d.ts +2 -0
  515. package/lib/theme/NotFound/index.js +19 -0
  516. package/lib/theme/PaginatorNavLink/index.d.ts +3 -0
  517. package/lib/theme/PaginatorNavLink/index.js +19 -0
  518. package/lib/theme/SearchBar.d.ts +1 -0
  519. package/lib/theme/SearchBar.js +5 -0
  520. package/lib/theme/SearchMetadata/index.d.ts +3 -0
  521. package/lib/theme/SearchMetadata/index.js +28 -0
  522. package/lib/theme/SiteMetadata/index.d.ts +2 -0
  523. package/lib/theme/SiteMetadata/index.js +137 -0
  524. package/lib/theme/SkipToContent/index.d.ts +2 -0
  525. package/lib/theme/SkipToContent/index.js +6 -0
  526. package/lib/theme/SkipToContent/styles.module.css +16 -0
  527. package/lib/theme/TOC/index.d.ts +3 -0
  528. package/lib/theme/TOC/index.js +22 -0
  529. package/lib/theme/TOC/styles.module.css +23 -0
  530. package/lib/theme/TOCCollapsible/CollapseButton/index.d.ts +3 -0
  531. package/lib/theme/TOCCollapsible/CollapseButton/index.js +22 -0
  532. package/lib/theme/TOCCollapsible/CollapseButton/styles.module.css +27 -0
  533. package/lib/theme/TOCCollapsible/index.d.ts +3 -0
  534. package/lib/theme/TOCCollapsible/index.js +37 -0
  535. package/lib/theme/TOCCollapsible/styles.module.css +26 -0
  536. package/lib/theme/TOCInline/index.d.ts +3 -0
  537. package/lib/theme/TOCInline/index.js +16 -0
  538. package/lib/theme/TOCInline/styles.module.css +7 -0
  539. package/lib/theme/TOCItems/Tree.d.ts +5 -0
  540. package/lib/theme/TOCItems/Tree.js +30 -0
  541. package/lib/theme/TOCItems/index.d.ts +3 -0
  542. package/lib/theme/TOCItems/index.js +47 -0
  543. package/lib/theme/TabItem/index.d.ts +3 -0
  544. package/lib/theme/TabItem/index.js +13 -0
  545. package/lib/theme/TabItem/styles.module.css +5 -0
  546. package/lib/theme/Tabs/index.d.ts +3 -0
  547. package/lib/theme/Tabs/index.js +133 -0
  548. package/lib/theme/Tabs/styles.module.css +9 -0
  549. package/lib/theme/Tag/index.d.ts +3 -0
  550. package/lib/theme/Tag/index.js +20 -0
  551. package/lib/theme/Tag/styles.module.css +65 -0
  552. package/lib/theme/TagsListByLetter/index.d.ts +3 -0
  553. package/lib/theme/TagsListByLetter/index.js +35 -0
  554. package/lib/theme/TagsListByLetter/styles.module.css +6 -0
  555. package/lib/theme/TagsListInline/index.d.ts +3 -0
  556. package/lib/theme/TagsListInline/index.js +25 -0
  557. package/lib/theme/TagsListInline/styles.module.css +10 -0
  558. package/lib/theme/ThemeProvider/TitleFormatter/index.d.ts +3 -0
  559. package/lib/theme/ThemeProvider/TitleFormatter/index.js +13 -0
  560. package/lib/theme/ThemeProvider/index.d.ts +3 -0
  561. package/lib/theme/ThemeProvider/index.js +5 -0
  562. package/lib/theme/ThemedImage/index.d.ts +3 -0
  563. package/lib/theme/ThemedImage/index.js +17 -0
  564. package/lib/theme/ThemedImage/styles.module.css +13 -0
  565. package/lib/theme/pages/Home/index.d.ts +2 -0
  566. package/lib/theme/pages/Home/index.js +14 -0
  567. package/lib/theme/prism-include-languages.d.ts +2 -0
  568. package/lib/theme/prism-include-languages.js +28 -0
  569. package/lib/translations.d.ts +9 -0
  570. package/lib/translations.js +172 -0
  571. package/package.json +4 -3
  572. package/src/index.ts +3 -3
  573. package/src/options.ts +1 -1
  574. package/src/theme-seqera.d.ts +2 -2
@@ -0,0 +1,114 @@
1
+ import React from 'react';
2
+ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
3
+ import {useAlternatePageUtils} from '@docusaurus/theme-common/internal';
4
+ import {translate} from '@docusaurus/Translate';
5
+ import {mergeSearchStrings, useHistorySelector} from '@docusaurus/theme-common';
6
+ import DropdownNavbarItem from '@theme/NavbarItem/DropdownNavbarItem';
7
+ import IconLanguage from '@theme/Icon/Language';
8
+ import styles from './styles.module.css';
9
+ function useLocaleDropdownUtils() {
10
+ const {
11
+ siteConfig,
12
+ i18n: {localeConfigs},
13
+ } = useDocusaurusContext();
14
+ const alternatePageUtils = useAlternatePageUtils();
15
+ const search = useHistorySelector((history) => history.location.search);
16
+ const hash = useHistorySelector((history) => history.location.hash);
17
+ const getLocaleConfig = (locale) => {
18
+ const localeConfig = localeConfigs[locale];
19
+ if (!localeConfig) {
20
+ throw new Error(
21
+ `Docusaurus bug, no locale config found for locale=${locale}`,
22
+ );
23
+ }
24
+ return localeConfig;
25
+ };
26
+ const getBaseURLForLocale = (locale) => {
27
+ const localeConfig = getLocaleConfig(locale);
28
+ const isSameDomain = localeConfig.url === siteConfig.url;
29
+ if (isSameDomain) {
30
+ // Shorter paths if localized sites are hosted on the same domain
31
+ // This reduces HTML size a bit
32
+ return `pathname://${alternatePageUtils.createUrl({
33
+ locale,
34
+ fullyQualified: false,
35
+ })}`;
36
+ }
37
+ return alternatePageUtils.createUrl({
38
+ locale,
39
+ fullyQualified: true,
40
+ });
41
+ };
42
+ return {
43
+ getURL: (locale, options) => {
44
+ // We have 2 query strings because
45
+ // - there's the current one
46
+ // - there's one user can provide through navbar config
47
+ // see https://github.com/facebook/docusaurus/pull/8915
48
+ const finalSearch = mergeSearchStrings(
49
+ [search, options.queryString],
50
+ 'append',
51
+ );
52
+ return `${getBaseURLForLocale(locale)}${finalSearch}${hash}`;
53
+ },
54
+ getLabel: (locale) => {
55
+ return getLocaleConfig(locale).label;
56
+ },
57
+ getLang: (locale) => {
58
+ return getLocaleConfig(locale).htmlLang;
59
+ },
60
+ };
61
+ }
62
+ export default function LocaleDropdownNavbarItem({
63
+ mobile,
64
+ dropdownItemsBefore,
65
+ dropdownItemsAfter,
66
+ queryString,
67
+ ...props
68
+ }) {
69
+ const utils = useLocaleDropdownUtils();
70
+ const {
71
+ i18n: {currentLocale, locales},
72
+ } = useDocusaurusContext();
73
+ const localeItems = locales.map((locale) => {
74
+ return {
75
+ label: utils.getLabel(locale),
76
+ lang: utils.getLang(locale),
77
+ to: utils.getURL(locale, {queryString}),
78
+ target: '_self',
79
+ autoAddBaseUrl: false,
80
+ className:
81
+ // eslint-disable-next-line no-nested-ternary
82
+ locale === currentLocale
83
+ ? // Similar idea as DefaultNavbarItem: select the right Infima active
84
+ // class name. This cannot be substituted with isActive, because the
85
+ // target URLs contain `pathname://` and therefore are not NavLinks!
86
+ mobile
87
+ ? 'menu__link--active'
88
+ : 'dropdown__link--active'
89
+ : '',
90
+ };
91
+ });
92
+ const items = [...dropdownItemsBefore, ...localeItems, ...dropdownItemsAfter];
93
+ // Mobile is handled a bit differently
94
+ const dropdownLabel = mobile
95
+ ? translate({
96
+ message: 'Languages',
97
+ id: 'theme.navbar.mobileLanguageDropdown.label',
98
+ description: 'The label for the mobile language switcher dropdown',
99
+ })
100
+ : utils.getLabel(currentLocale);
101
+ return (
102
+ <DropdownNavbarItem
103
+ {...props}
104
+ mobile={mobile}
105
+ label={
106
+ <>
107
+ <IconLanguage className={styles.iconLanguage} />
108
+ {dropdownLabel}
109
+ </>
110
+ }
111
+ items={items}
112
+ />
113
+ );
114
+ }
@@ -0,0 +1,6 @@
1
+
2
+
3
+ .iconLanguage {
4
+ vertical-align: text-bottom;
5
+ margin-right: 5px;
6
+ }
@@ -0,0 +1,3 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { Props } from '@theme/NavbarItem/NavbarNavLink';
3
+ export default function NavbarNavLink({ activeBasePath, activeBaseRegex, to, href, label, html, isDropdownLink, prependBaseUrlToHref, ...props }: Props): ReactNode;
@@ -0,0 +1,62 @@
1
+ import React from 'react';
2
+ import Link from '@docusaurus/Link';
3
+ import useBaseUrl from '@docusaurus/useBaseUrl';
4
+ import isInternalUrl from '@docusaurus/isInternalUrl';
5
+ import {isRegexpStringMatch} from '@docusaurus/theme-common';
6
+ import IconExternalLink from '@theme/Icon/ExternalLink';
7
+ export default function NavbarNavLink({
8
+ activeBasePath,
9
+ activeBaseRegex,
10
+ to,
11
+ href,
12
+ label,
13
+ html,
14
+ isDropdownLink,
15
+ prependBaseUrlToHref,
16
+ ...props
17
+ }) {
18
+ // TODO all this seems hacky
19
+ // {to: 'version'} should probably be forbidden, in favor of {to: '/version'}
20
+ const toUrl = useBaseUrl(to);
21
+ const activeBaseUrl = useBaseUrl(activeBasePath);
22
+ const normalizedHref = useBaseUrl(href, {forcePrependBaseUrl: true});
23
+ const isExternalLink = label && href && !isInternalUrl(href);
24
+ // Link content is set through html XOR label
25
+ const linkContentProps = html
26
+ ? {dangerouslySetInnerHTML: {__html: html}}
27
+ : {
28
+ children: (
29
+ <>
30
+ {label}
31
+ {isExternalLink && (
32
+ <IconExternalLink
33
+ {...(isDropdownLink && {width: 12, height: 12})}
34
+ />
35
+ )}
36
+ </>
37
+ ),
38
+ };
39
+ if (href) {
40
+ return (
41
+ <Link
42
+ href={prependBaseUrlToHref ? normalizedHref : href}
43
+ {...props}
44
+ {...linkContentProps}
45
+ />
46
+ );
47
+ }
48
+ return (
49
+ <Link
50
+ to={toUrl}
51
+ isNavLink
52
+ {...((activeBasePath || activeBaseRegex) && {
53
+ isActive: (_match, location) =>
54
+ activeBaseRegex
55
+ ? isRegexpStringMatch(activeBaseRegex, location.pathname)
56
+ : location.pathname.startsWith(activeBaseUrl),
57
+ })}
58
+ {...props}
59
+ {...linkContentProps}
60
+ />
61
+ );
62
+ }
@@ -0,0 +1,3 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { Props } from '@theme/NavbarItem/SearchNavbarItem';
3
+ export default function SearchNavbarItem({ mobile, className, }: Props): ReactNode;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import SearchBar from '@theme/SearchBar';
3
+ import NavbarSearch from '@theme/Navbar/Search';
4
+ export default function SearchNavbarItem({mobile, className}) {
5
+ if (mobile) {
6
+ return null;
7
+ }
8
+ return (
9
+ <NavbarSearch className={className}>
10
+ <SearchBar />
11
+ </NavbarSearch>
12
+ );
13
+ }
@@ -0,0 +1,3 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { Props } from '@theme/NavbarItem';
3
+ export default function NavbarItem({ type, ...props }: Props): ReactNode;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import ComponentTypes from '@theme/NavbarItem/ComponentTypes';
3
+ function normalizeComponentType(type, props) {
4
+ // Backward compatibility: navbar item with no type set
5
+ // but containing dropdown items should use the type "dropdown"
6
+ if (!type || type === 'default') {
7
+ return 'items' in props ? 'dropdown' : 'default';
8
+ }
9
+ return type;
10
+ }
11
+ export default function NavbarItem({type, ...props}) {
12
+ const componentType = normalizeComponentType(type, props);
13
+ const NavbarItemComponent = ComponentTypes[componentType];
14
+ if (!NavbarItemComponent) {
15
+ throw new Error(`No NavbarItem component found for type "${type}".`);
16
+ }
17
+ return <NavbarItemComponent {...props} />;
18
+ }
@@ -0,0 +1,3 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { Props } from '@theme/NotFound/Content';
3
+ export default function NotFoundContent({ className }: Props): ReactNode;
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ import clsx from 'clsx';
3
+ import Translate from '@docusaurus/Translate';
4
+ import Heading from '@theme/Heading';
5
+ export default function NotFoundContent({className}) {
6
+ return (
7
+ <main
8
+ className={clsx(
9
+ 'prose__wrapper container-md py-18 flex justify-center items-center',
10
+ className,
11
+ )}>
12
+ <div className="">
13
+ <div className="">
14
+ <Heading as="h1" className="font-display font-semibold">
15
+ <Translate
16
+ id="theme.NotFound.title"
17
+ description="The title of the 404 page">
18
+ Page Not Found
19
+ </Translate>
20
+ </Heading>
21
+ <p className="max-w-md">
22
+ <Translate
23
+ id="theme.NotFound.p1"
24
+ description="The first paragraph of the 404 page">
25
+ 404: Something has gone wrong with our dataflow. The page you are
26
+ looking for does not exist.
27
+ </Translate>
28
+ </p>
29
+ <a
30
+ className="btn btn-secondary shadow-none border text-black"
31
+ href="/">
32
+ Back to docs homepage
33
+ </a>
34
+ </div>
35
+ </div>
36
+ </main>
37
+ );
38
+ }
@@ -0,0 +1,2 @@
1
+ import { type ReactNode } from 'react';
2
+ export default function Index(): ReactNode;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import {translate} from '@docusaurus/Translate';
3
+ import {PageMetadata} from '@docusaurus/theme-common';
4
+ import Layout from '@theme/Layout';
5
+ import NotFoundContent from '@theme/NotFound/Content';
6
+ export default function Index() {
7
+ const title = translate({
8
+ id: 'theme.NotFound.title',
9
+ message: 'Page Not Found',
10
+ });
11
+ return (
12
+ <>
13
+ <PageMetadata title={title} />
14
+ <Layout>
15
+ <NotFoundContent />
16
+ </Layout>
17
+ </>
18
+ );
19
+ }
@@ -0,0 +1,3 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { Props } from '@theme/PaginatorNavLink';
3
+ export default function PaginatorNavLink(props: Props): ReactNode;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import clsx from 'clsx';
3
+ import Link from '@docusaurus/Link';
4
+ export default function PaginatorNavLink(props) {
5
+ const {permalink, title, subLabel, isNext} = props;
6
+ return (
7
+ <Link
8
+ className={clsx(
9
+ 'pagination-nav__link',
10
+ isNext ? 'pagination-nav__link--next' : 'pagination-nav__link--prev',
11
+ )}
12
+ to={permalink}>
13
+ {subLabel && (
14
+ <div className="pagination-nav__sublabel mb-1">{subLabel}</div>
15
+ )}
16
+ <div className="pagination-nav__label font-medium">{title}</div>
17
+ </Link>
18
+ );
19
+ }
@@ -0,0 +1 @@
1
+ export { default } from '@docusaurus/Noop';
@@ -0,0 +1,5 @@
1
+ // By default, the classic theme does not provide any SearchBar implementation
2
+ // If you swizzled this, it is your responsibility to provide an implementation
3
+ // Tip: swizzle the SearchBar from the Algolia theme for inspiration:
4
+ // npm run swizzle @docusaurus/theme-search-algolia SearchBar
5
+ export {default} from '@docusaurus/Noop';
@@ -0,0 +1,3 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { Props } from '@theme/SearchMetadata';
3
+ export default function SearchMetadata({ locale, version, tag, }: Props): ReactNode;
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import Head from '@docusaurus/Head';
3
+ // Note: we bias toward using Algolia metadata on purpose
4
+ // Not doing so leads to confusion in the community,
5
+ // as it requires to first crawl the site with the Algolia plugin enabled first
6
+ // - https://github.com/facebook/docusaurus/issues/6693
7
+ // - https://github.com/facebook/docusaurus/issues/4555
8
+ export default function SearchMetadata({locale, version, tag}) {
9
+ // Seems safe to consider here the locale is the language, as the existing
10
+ // docsearch:language filter is afaik a regular string-based filter
11
+ const language = locale;
12
+ return (
13
+ <Head>
14
+ {/*
15
+ Docusaurus metadata, used by third-party search plugin
16
+ See https://github.com/cmfcmf/docusaurus-search-local/issues/99
17
+ */}
18
+ {locale && <meta name="docusaurus_locale" content={locale} />}
19
+ {version && <meta name="docusaurus_version" content={version} />}
20
+ {tag && <meta name="docusaurus_tag" content={tag} />}
21
+
22
+ {/* Algolia DocSearch metadata */}
23
+ {language && <meta name="docsearch:language" content={language} />}
24
+ {version && <meta name="docsearch:version" content={version} />}
25
+ {tag && <meta name="docsearch:docusaurus_tag" content={tag} />}
26
+ </Head>
27
+ );
28
+ }
@@ -0,0 +1,2 @@
1
+ import { type ReactNode } from 'react';
2
+ export default function SiteMetadata(): ReactNode;
@@ -0,0 +1,137 @@
1
+ import React from 'react';
2
+ import Head from '@docusaurus/Head';
3
+ import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
4
+ import useBaseUrl from '@docusaurus/useBaseUrl';
5
+ import {PageMetadata, useThemeConfig} from '@docusaurus/theme-common';
6
+ import {
7
+ DEFAULT_SEARCH_TAG,
8
+ useAlternatePageUtils,
9
+ keyboardFocusedClassName,
10
+ } from '@docusaurus/theme-common/internal';
11
+ import {useLocation} from '@docusaurus/router';
12
+ import {applyTrailingSlash} from '@docusaurus/utils-common';
13
+ import SearchMetadata from '@theme/SearchMetadata';
14
+ // TODO move to SiteMetadataDefaults or theme-common ?
15
+ // Useful for i18n/SEO
16
+ // See https://developers.google.com/search/docs/advanced/crawling/localized-versions
17
+ // See https://github.com/facebook/docusaurus/issues/3317
18
+ function AlternateLangHeaders() {
19
+ const {
20
+ i18n: {currentLocale, defaultLocale, localeConfigs},
21
+ } = useDocusaurusContext();
22
+ const alternatePageUtils = useAlternatePageUtils();
23
+ const currentHtmlLang = localeConfigs[currentLocale].htmlLang;
24
+ // HTML lang is a BCP 47 tag, but the Open Graph protocol requires
25
+ // using underscores instead of dashes.
26
+ // See https://ogp.me/#optional
27
+ // See https://en.wikipedia.org/wiki/IETF_language_tag)
28
+ const bcp47ToOpenGraphLocale = (code) => code.replace('-', '_');
29
+ // Note: it is fine to use both "x-default" and "en" to target the same url
30
+ // See https://www.searchviu.com/en/multiple-hreflang-tags-one-url/
31
+ return (
32
+ <Head>
33
+ {Object.entries(localeConfigs).map(([locale, {htmlLang}]) => (
34
+ <link
35
+ key={locale}
36
+ rel="alternate"
37
+ href={alternatePageUtils.createUrl({
38
+ locale,
39
+ fullyQualified: true,
40
+ })}
41
+ hrefLang={htmlLang}
42
+ />
43
+ ))}
44
+ <link
45
+ rel="alternate"
46
+ href={alternatePageUtils.createUrl({
47
+ locale: defaultLocale,
48
+ fullyQualified: true,
49
+ })}
50
+ hrefLang="x-default"
51
+ />
52
+
53
+ <meta
54
+ property="og:locale"
55
+ content={bcp47ToOpenGraphLocale(currentHtmlLang)}
56
+ />
57
+ {Object.values(localeConfigs)
58
+ .filter((config) => currentHtmlLang !== config.htmlLang)
59
+ .map((config) => (
60
+ <meta
61
+ key={`meta-og-${config.htmlLang}`}
62
+ property="og:locale:alternate"
63
+ content={bcp47ToOpenGraphLocale(config.htmlLang)}
64
+ />
65
+ ))}
66
+ </Head>
67
+ );
68
+ }
69
+ // Default canonical url inferred from current page location pathname
70
+ function useDefaultCanonicalUrl() {
71
+ const {
72
+ siteConfig: {url: siteUrl, baseUrl, trailingSlash},
73
+ } = useDocusaurusContext();
74
+ // TODO using useLocation().pathname is not a super idea
75
+ // See https://github.com/facebook/docusaurus/issues/9170
76
+ const {pathname} = useLocation();
77
+ const canonicalPathname = applyTrailingSlash(useBaseUrl(pathname), {
78
+ trailingSlash,
79
+ baseUrl,
80
+ });
81
+ return siteUrl + canonicalPathname;
82
+ }
83
+ // TODO move to SiteMetadataDefaults or theme-common ?
84
+ function CanonicalUrlHeaders({permalink}) {
85
+ const {
86
+ siteConfig: {url: siteUrl},
87
+ } = useDocusaurusContext();
88
+ const defaultCanonicalUrl = useDefaultCanonicalUrl();
89
+ const canonicalUrl = permalink
90
+ ? `${siteUrl}${permalink}`
91
+ : defaultCanonicalUrl;
92
+ return (
93
+ <Head>
94
+ <meta property="og:url" content={canonicalUrl} />
95
+ <link rel="canonical" href={canonicalUrl} />
96
+ </Head>
97
+ );
98
+ }
99
+ export default function SiteMetadata() {
100
+ const {
101
+ i18n: {currentLocale},
102
+ } = useDocusaurusContext();
103
+ // TODO maybe move these 2 themeConfig to siteConfig?
104
+ // These seems useful for other themes as well
105
+ const {metadata, image: defaultImage} = useThemeConfig();
106
+ return (
107
+ <>
108
+ <Head>
109
+ <meta name="twitter:card" content="summary_large_image" />
110
+ {/* The keyboard focus class name need to be applied when SSR so links
111
+ are outlined when JS is disabled */}
112
+ <body className={keyboardFocusedClassName} />
113
+ </Head>
114
+
115
+ {defaultImage && <PageMetadata image={defaultImage} />}
116
+
117
+ <CanonicalUrlHeaders />
118
+
119
+ <AlternateLangHeaders />
120
+
121
+ <SearchMetadata tag={DEFAULT_SEARCH_TAG} locale={currentLocale} />
122
+
123
+ {/*
124
+ It's important to have an additional <Head> element here, as it allows
125
+ react-helmet to override default metadata values set in previous <Head>
126
+ like "twitter:card". In same Head, the same meta would appear twice
127
+ instead of overriding.
128
+ */}
129
+ <Head>
130
+ {/* Yes, "metadatum" is the grammatically correct term */}
131
+ {metadata.map((metadatum, i) => (
132
+ <meta key={i} {...metadatum} />
133
+ ))}
134
+ </Head>
135
+ </>
136
+ );
137
+ }
@@ -0,0 +1,2 @@
1
+ import { type ReactNode } from 'react';
2
+ export default function SkipToContent(): ReactNode;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import {SkipToContentLink} from '@docusaurus/theme-common';
3
+ import styles from './styles.module.css';
4
+ export default function SkipToContent() {
5
+ return <SkipToContentLink className={styles.skipToContent} />;
6
+ }
@@ -0,0 +1,16 @@
1
+
2
+
3
+ .skipToContent {
4
+ position: fixed;
5
+ top: 1rem;
6
+ left: 100%;
7
+ z-index: calc(var(--ifm-z-index-fixed) + 1);
8
+ padding: calc(var(--ifm-global-spacing) / 2) var(--ifm-global-spacing);
9
+ color: var(--ifm-color-emphasis-900);
10
+ background-color: var(--ifm-background-surface-color);
11
+ }
12
+
13
+ .skipToContent:focus {
14
+ left: 1rem;
15
+ box-shadow: var(--ifm-global-shadow-md);
16
+ }
@@ -0,0 +1,3 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { Props } from '@theme/TOC';
3
+ export default function TOC({ className, ...props }: Props): ReactNode;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import clsx from 'clsx';
3
+ import TOCItems from '@theme/TOCItems';
4
+ import styles from './styles.module.css';
5
+ // Using a custom className
6
+ // This prevents TOCInline/TOCCollapsible getting highlighted by mistake
7
+ const LINK_CLASS_NAME = 'table-of-contents__link toc-highlight';
8
+ const LINK_ACTIVE_CLASS_NAME = 'table-of-contents__link--active';
9
+ export default function TOC({className, ...props}) {
10
+ return (
11
+ <div className={clsx(styles.tableOfContents, 'thin-scrollbar', className)}>
12
+ <div className="text-[.7rem] mb-1 uppercase text-primary font-semibold">
13
+ On this Page
14
+ </div>
15
+ <TOCItems
16
+ {...props}
17
+ linkClassName={LINK_CLASS_NAME}
18
+ linkActiveClassName={LINK_ACTIVE_CLASS_NAME}
19
+ />
20
+ </div>
21
+ );
22
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ .tableOfContents {
9
+ max-height: calc(100vh - (var(--ifm-navbar-height) + 4rem));
10
+ overflow-y: auto;
11
+ position: sticky;
12
+ top: calc(var(--ifm-navbar-height) + 3rem);
13
+ }
14
+
15
+ @media (max-width: 996px) {
16
+ .tableOfContents {
17
+ display: none;
18
+ }
19
+
20
+ .docItemContainer {
21
+ padding: 0 0.3rem;
22
+ }
23
+ }
@@ -0,0 +1,3 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { Props } from '@theme/TOCCollapsible/CollapseButton';
3
+ export default function TOCCollapsibleCollapseButton({ collapsed, ...props }: Props): ReactNode;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import clsx from 'clsx';
3
+ import Translate from '@docusaurus/Translate';
4
+ import styles from './styles.module.css';
5
+ export default function TOCCollapsibleCollapseButton({collapsed, ...props}) {
6
+ return (
7
+ <button
8
+ type="button"
9
+ {...props}
10
+ className={clsx(
11
+ styles.tocCollapsibleButton,
12
+ !collapsed && styles.tocCollapsibleButtonExpanded,
13
+ props.className,
14
+ )}>
15
+ <Translate
16
+ id="theme.TOCCollapsible.toggleButtonLabel"
17
+ description="The label used by the button on the collapsible TOC component">
18
+ On this page
19
+ </Translate>
20
+ </button>
21
+ );
22
+ }
@@ -0,0 +1,27 @@
1
+ .tocCollapsible {
2
+ border-radius: none;
3
+ }
4
+ .tocCollapsibleButton {
5
+ font-size: inherit;
6
+ display: flex;
7
+ justify-content: space-between;
8
+ align-items: center;
9
+ padding: 0.4rem 0.8rem;
10
+ width: 100%;
11
+ }
12
+
13
+ .tocCollapsibleButton::after {
14
+ content: '';
15
+ /* background: var(--ifm-menu-link-sublist-icon) 50% 50% / 2rem 2rem no-repeat; */
16
+ background-image: url("data:image/svg+xml,%3Csvg width='25' height='24' viewBox='0 0 25 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.4943 10.4038L7.7174 15.1615L7.16162 14.6057L12.4943 9.29225L17.8078 14.6057L17.252 15.1615L12.4943 10.4038Z' fill='%23160F26'/%3E%3C/svg%3E%0A");
17
+ background-repeat: no-repeat;
18
+ background-size: 100%;
19
+ transform: rotateX(180deg);
20
+ filter: var(--ifm-menu-link-sublist-icon-filter);
21
+ height: 1.75rem;
22
+ width: 1.75rem;
23
+ }
24
+
25
+ .tocCollapsibleButtonExpanded::after {
26
+ /* transform: none; */
27
+ }
@@ -0,0 +1,3 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { Props } from '@theme/TOCCollapsible';
3
+ export default function TOCCollapsible({ toc, className, minHeadingLevel, maxHeadingLevel, }: Props): ReactNode;