@docusaurus/theme-classic 2.0.0-beta.12faed89d → 2.0.0-beta.14

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 (349) hide show
  1. package/README.md +1 -1
  2. package/lib/admonitions.css +35 -0
  3. package/lib/deps.d.ts +13 -0
  4. package/lib/index.js +16 -15
  5. package/lib/prism-include-languages.js +9 -5
  6. package/{lib-next/types.d.ts → lib/theme-classic.d.ts} +338 -156
  7. package/lib/translations.js +16 -7
  8. package/lib/types.d.ts +0 -629
  9. package/lib/validateThemeConfig.js +232 -248
  10. package/lib-next/theme/Admonition/index.js +101 -0
  11. package/lib-next/theme/AnnouncementBar/index.js +7 -12
  12. package/lib-next/theme/AnnouncementBar/styles.module.css +23 -32
  13. package/lib-next/theme/BackToTopButton/index.js +131 -0
  14. package/lib-next/theme/BackToTopButton/styles.module.css +42 -0
  15. package/lib-next/theme/BlogArchivePage/index.js +80 -0
  16. package/lib-next/theme/BlogLayout/index.js +40 -0
  17. package/lib-next/theme/BlogListPage/index.js +17 -25
  18. package/lib-next/theme/BlogPostAuthor/index.js +46 -0
  19. package/{lib/theme/MDXPage → lib-next/theme/BlogPostAuthor}/styles.module.css +4 -2
  20. package/lib-next/theme/BlogPostAuthors/index.js +34 -0
  21. package/{lib/theme/IconExternalLink → lib-next/theme/BlogPostAuthors}/styles.module.css +3 -4
  22. package/lib-next/theme/BlogPostItem/index.js +79 -86
  23. package/lib-next/theme/BlogPostPage/index.js +70 -35
  24. package/lib-next/theme/BlogSidebar/index.js +11 -13
  25. package/lib-next/theme/BlogSidebar/styles.module.css +2 -2
  26. package/lib-next/theme/BlogTagsListPage/index.js +14 -55
  27. package/lib-next/theme/BlogTagsPostsPage/index.js +29 -39
  28. package/lib-next/theme/CodeBlock/index.js +23 -149
  29. package/lib-next/theme/CodeBlock/styles.module.css +12 -9
  30. package/lib-next/theme/Details/index.js +20 -0
  31. package/lib-next/theme/Details/styles.module.css +13 -0
  32. package/lib-next/theme/DocCard/index.js +80 -0
  33. package/lib-next/theme/DocCard/styles.module.css +43 -0
  34. package/lib-next/theme/DocCardList/index.js +19 -0
  35. package/lib-next/theme/DocCategoryGeneratedIndexPage/index.js +49 -0
  36. package/lib-next/theme/DocCategoryGeneratedIndexPage/styles.module.css +18 -0
  37. package/lib-next/theme/DocItem/index.js +30 -59
  38. package/lib-next/theme/DocItem/styles.module.css +2 -11
  39. package/lib-next/theme/DocItemFooter/index.js +79 -0
  40. package/{lib/theme/DocSidebarItem → lib-next/theme/DocItemFooter}/styles.module.css +8 -5
  41. package/lib-next/theme/DocPage/index.js +46 -23
  42. package/lib-next/theme/DocPaginator/index.js +5 -33
  43. package/lib-next/theme/DocPaginatorNavLink/index.js +36 -0
  44. package/lib-next/theme/DocSidebar/index.js +37 -43
  45. package/lib-next/theme/DocSidebarItem/index.js +115 -65
  46. package/lib-next/theme/DocSidebarItem/styles.module.css +4 -0
  47. package/lib-next/theme/DocTagDocListPage/index.js +89 -0
  48. package/lib-next/theme/DocTagsListPage/index.js +38 -0
  49. package/lib-next/theme/DocVersionBadge/index.js +27 -0
  50. package/lib-next/theme/DocVersionBanner/index.js +28 -14
  51. package/lib-next/theme/EditThisPage/index.js +6 -1
  52. package/lib-next/theme/ErrorPageContent.js +35 -0
  53. package/lib-next/theme/Footer/index.js +90 -39
  54. package/lib-next/theme/Heading/index.js +24 -29
  55. package/lib-next/theme/Heading/styles.css +5 -6
  56. package/lib-next/theme/Heading/styles.module.css +9 -5
  57. package/lib-next/theme/IconArrow/index.js +2 -2
  58. package/lib-next/theme/IconClose/index.js +23 -0
  59. package/lib-next/theme/IconEdit/index.js +2 -2
  60. package/lib-next/theme/IconExternalLink/index.js +2 -2
  61. package/lib-next/theme/IconLanguage/index.js +2 -2
  62. package/lib-next/theme/IconMenu/index.js +2 -2
  63. package/lib-next/theme/LastUpdated/index.js +3 -2
  64. package/lib-next/theme/Layout/index.js +3 -1
  65. package/lib-next/theme/LayoutHead/index.js +18 -23
  66. package/lib-next/theme/LayoutProviders/index.js +8 -5
  67. package/lib-next/theme/Logo/index.js +25 -21
  68. package/lib-next/theme/MDXComponents/index.js +34 -7
  69. package/{lib/theme/hooks → lib-next/theme/MDXComponents}/styles.css +3 -2
  70. package/lib-next/theme/MDXPage/index.js +10 -2
  71. package/lib-next/theme/Navbar/index.js +62 -34
  72. package/lib-next/theme/Navbar/styles.module.css +3 -39
  73. package/lib-next/theme/NavbarItem/DefaultNavbarItem.js +45 -143
  74. package/lib-next/theme/NavbarItem/DocNavbarItem.js +7 -7
  75. package/lib-next/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +31 -19
  76. package/lib-next/theme/NavbarItem/DropdownNavbarItem.js +158 -0
  77. package/lib-next/theme/NavbarItem/{LocaleDropdownNavbarItem.js → LocaleDropdownNavbarItem/index.js} +4 -12
  78. package/lib-next/theme/NavbarItem/LocaleDropdownNavbarItem/styles.module.css +11 -0
  79. package/lib-next/theme/NavbarItem/index.js +25 -12
  80. package/lib-next/theme/{SearchMetadatas → SearchMetadata}/index.js +1 -1
  81. package/lib-next/theme/Seo/index.js +11 -7
  82. package/lib-next/theme/TOC/index.js +12 -36
  83. package/lib-next/theme/TOC/styles.module.css +1 -1
  84. package/lib-next/theme/TOCCollapsible/index.js +13 -4
  85. package/lib-next/theme/TOCCollapsible/styles.module.css +1 -0
  86. package/lib-next/theme/TOCInline/index.js +10 -28
  87. package/lib-next/theme/TOCItems/index.js +85 -0
  88. package/lib-next/theme/Tabs/__tests__/index.test.js +142 -0
  89. package/lib-next/theme/Tabs/index.js +103 -48
  90. package/lib-next/theme/Tabs/styles.module.css +0 -13
  91. package/lib-next/theme/Tag/index.js +27 -0
  92. package/lib-next/theme/Tag/styles.module.css +70 -0
  93. package/lib-next/theme/TagsListByLetter/index.js +42 -0
  94. package/lib-next/theme/TagsListByLetter/styles.module.css +11 -0
  95. package/lib-next/theme/TagsListInline/index.js +31 -0
  96. package/lib-next/theme/TagsListInline/styles.module.css +15 -0
  97. package/lib-next/theme/ThemeProvider/index.js +10 -7
  98. package/lib-next/theme/ThemedImage/index.js +5 -5
  99. package/lib-next/theme/Toggle/index.js +34 -37
  100. package/lib-next/theme/Toggle/styles.module.css +91 -3
  101. package/lib-next/theme/UserPreferencesProvider/index.js +9 -6
  102. package/lib-next/theme/hooks/useHideableNavbar.js +31 -44
  103. package/lib-next/theme/hooks/useTheme.js +4 -5
  104. package/lib-next/theme/hooks/useWindowSize.js +2 -6
  105. package/lib-next/theme/prism-include-languages.js +2 -1
  106. package/package.json +26 -24
  107. package/src/admonitions.css +35 -0
  108. package/src/deps.d.ts +13 -0
  109. package/src/index.ts +23 -20
  110. package/{lib-next/prism-include-languages.js → src/prism-include-languages.ts} +0 -0
  111. package/src/theme/Admonition/index.tsx +106 -0
  112. package/src/theme/AnnouncementBar/index.tsx +8 -12
  113. package/src/theme/AnnouncementBar/styles.module.css +23 -32
  114. package/src/theme/BackToTopButton/index.tsx +142 -0
  115. package/src/theme/BackToTopButton/styles.module.css +42 -0
  116. package/src/theme/BlogArchivePage/index.tsx +91 -0
  117. package/src/theme/BlogLayout/index.tsx +44 -0
  118. package/src/theme/BlogListPage/index.tsx +18 -25
  119. package/src/theme/BlogPostAuthor/index.tsx +49 -0
  120. package/{lib/theme/IconEdit → src/theme/BlogPostAuthor}/styles.module.css +4 -3
  121. package/src/theme/BlogPostAuthors/index.tsx +39 -0
  122. package/src/theme/BlogPostAuthors/styles.module.css +11 -0
  123. package/src/theme/BlogPostItem/index.tsx +70 -80
  124. package/src/theme/BlogPostPage/index.tsx +72 -35
  125. package/src/theme/BlogSidebar/index.tsx +11 -13
  126. package/src/theme/BlogSidebar/styles.module.css +2 -2
  127. package/src/theme/BlogTagsListPage/index.tsx +14 -57
  128. package/src/theme/BlogTagsPostsPage/index.tsx +29 -39
  129. package/src/theme/CodeBlock/index.tsx +27 -151
  130. package/src/theme/CodeBlock/styles.module.css +12 -9
  131. package/src/theme/Details/index.tsx +24 -0
  132. package/src/theme/Details/styles.module.css +13 -0
  133. package/src/theme/DocCard/index.tsx +100 -0
  134. package/src/theme/DocCard/styles.module.css +43 -0
  135. package/src/theme/DocCardList/index.tsx +27 -0
  136. package/src/theme/DocCategoryGeneratedIndexPage/index.tsx +53 -0
  137. package/src/theme/DocCategoryGeneratedIndexPage/styles.module.css +18 -0
  138. package/src/theme/DocItem/index.tsx +30 -60
  139. package/src/theme/DocItem/styles.module.css +2 -11
  140. package/src/theme/DocItemFooter/index.tsx +91 -0
  141. package/{lib/theme/BlogPostItem → src/theme/DocItemFooter}/styles.module.css +8 -8
  142. package/src/theme/DocPage/index.tsx +44 -22
  143. package/src/theme/DocPaginator/index.tsx +5 -33
  144. package/src/theme/DocPaginatorNavLink/index.tsx +38 -0
  145. package/src/theme/DocSidebar/index.tsx +38 -39
  146. package/src/theme/DocSidebarItem/index.tsx +108 -49
  147. package/src/theme/DocSidebarItem/styles.module.css +4 -0
  148. package/src/theme/DocTagDocListPage/index.tsx +89 -0
  149. package/src/theme/DocTagsListPage/index.tsx +41 -0
  150. package/src/theme/DocVersionBadge/index.tsx +30 -0
  151. package/src/theme/DocVersionBanner/index.tsx +48 -21
  152. package/src/theme/EditThisPage/index.tsx +6 -1
  153. package/src/theme/ErrorPageContent.tsx +41 -0
  154. package/src/theme/Footer/index.tsx +103 -42
  155. package/src/theme/Heading/index.tsx +24 -31
  156. package/src/theme/Heading/styles.css +5 -6
  157. package/src/theme/Heading/styles.module.css +9 -5
  158. package/src/theme/IconArrow/index.tsx +2 -2
  159. package/src/theme/IconClose/index.tsx +26 -0
  160. package/src/theme/IconEdit/index.tsx +2 -2
  161. package/src/theme/IconExternalLink/index.tsx +2 -5
  162. package/src/theme/IconLanguage/index.tsx +2 -6
  163. package/src/theme/IconMenu/index.tsx +3 -3
  164. package/src/theme/LastUpdated/index.tsx +3 -2
  165. package/src/theme/Layout/index.tsx +3 -1
  166. package/src/theme/LayoutHead/index.tsx +18 -17
  167. package/src/theme/LayoutProviders/index.tsx +8 -5
  168. package/src/theme/Logo/index.tsx +21 -17
  169. package/src/theme/MDXComponents/index.tsx +39 -5
  170. package/src/theme/MDXComponents/styles.css +11 -0
  171. package/src/theme/MDXPage/index.tsx +10 -2
  172. package/src/theme/Navbar/index.tsx +62 -35
  173. package/src/theme/Navbar/styles.module.css +3 -39
  174. package/src/theme/NavbarItem/DefaultNavbarItem.tsx +42 -149
  175. package/src/theme/NavbarItem/DocNavbarItem.tsx +12 -16
  176. package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +33 -21
  177. package/src/theme/NavbarItem/DocsVersionNavbarItem.tsx +7 -3
  178. package/src/theme/NavbarItem/DropdownNavbarItem.tsx +180 -0
  179. package/src/theme/NavbarItem/{LocaleDropdownNavbarItem.tsx → LocaleDropdownNavbarItem/index.tsx} +8 -9
  180. package/src/theme/NavbarItem/LocaleDropdownNavbarItem/styles.module.css +11 -0
  181. package/src/theme/NavbarItem/index.tsx +41 -16
  182. package/src/theme/{SearchMetadatas → SearchMetadata}/index.tsx +2 -2
  183. package/src/theme/Seo/index.tsx +7 -4
  184. package/src/theme/TOC/index.tsx +13 -35
  185. package/src/theme/TOC/styles.module.css +1 -1
  186. package/src/theme/TOCCollapsible/index.tsx +13 -4
  187. package/src/theme/TOCCollapsible/styles.module.css +1 -0
  188. package/src/theme/TOCInline/index.tsx +13 -32
  189. package/src/theme/TOCItems/index.tsx +96 -0
  190. package/src/theme/Tabs/index.tsx +110 -54
  191. package/src/theme/Tabs/styles.module.css +0 -13
  192. package/src/theme/Tag/index.tsx +31 -0
  193. package/src/theme/Tag/styles.module.css +70 -0
  194. package/src/theme/TagsListByLetter/index.tsx +45 -0
  195. package/src/theme/TagsListByLetter/styles.module.css +11 -0
  196. package/src/theme/TagsListInline/index.tsx +35 -0
  197. package/src/theme/TagsListInline/styles.module.css +15 -0
  198. package/src/theme/ThemeProvider/index.tsx +6 -2
  199. package/src/theme/ThemedImage/index.tsx +5 -5
  200. package/src/theme/Toggle/index.tsx +36 -43
  201. package/src/theme/Toggle/styles.module.css +91 -3
  202. package/src/theme/UserPreferencesProvider/index.tsx +9 -6
  203. package/src/theme/hooks/useHideableNavbar.ts +32 -45
  204. package/src/theme/hooks/useTabGroupChoice.ts +2 -2
  205. package/src/theme/hooks/useTheme.ts +4 -5
  206. package/src/theme/hooks/useWindowSize.ts +2 -7
  207. package/src/theme/prism-include-languages.ts +3 -2
  208. package/src/theme-classic.d.ts +822 -0
  209. package/src/translations.ts +41 -23
  210. package/src/types.d.ts +0 -629
  211. package/src/{validateThemeConfig.js → validateThemeConfig.ts} +160 -100
  212. package/babel.config.js +0 -35
  213. package/codeTranslations/README.md +0 -20
  214. package/codeTranslations/ar.json +0 -56
  215. package/codeTranslations/base.json +0 -110
  216. package/codeTranslations/bn.json +0 -56
  217. package/codeTranslations/da.json +0 -56
  218. package/codeTranslations/de.json +0 -56
  219. package/codeTranslations/es.json +0 -56
  220. package/codeTranslations/fa.json +0 -56
  221. package/codeTranslations/fil.json +0 -56
  222. package/codeTranslations/fr.json +0 -56
  223. package/codeTranslations/he.json +0 -56
  224. package/codeTranslations/hi.json +0 -56
  225. package/codeTranslations/ja.json +0 -56
  226. package/codeTranslations/ko.json +0 -56
  227. package/codeTranslations/pl.json +0 -56
  228. package/codeTranslations/pt-BR.json +0 -56
  229. package/codeTranslations/pt-PT.json +0 -56
  230. package/codeTranslations/ru.json +0 -56
  231. package/codeTranslations/tr.json +0 -56
  232. package/codeTranslations/vi.json +0 -56
  233. package/codeTranslations/zh-Hans.json +0 -56
  234. package/codeTranslations/zh-Hant.json +0 -56
  235. package/lib/__tests__/__snapshots__/translations.test.ts.snap +0 -116
  236. package/lib/__tests__/translations.test.js +0 -112
  237. package/lib/__tests__/validateThemeConfig.test.js +0 -333
  238. package/lib/theme/AnnouncementBar/index.js +0 -72
  239. package/lib/theme/AnnouncementBar/styles.module.css +0 -72
  240. package/lib/theme/BlogListPage/index.js +0 -71
  241. package/lib/theme/BlogListPaginator/index.js +0 -63
  242. package/lib/theme/BlogPostItem/index.js +0 -161
  243. package/lib/theme/BlogPostPage/index.js +0 -69
  244. package/lib/theme/BlogPostPaginator/index.js +0 -64
  245. package/lib/theme/BlogSidebar/index.js +0 -51
  246. package/lib/theme/BlogSidebar/styles.module.css +0 -44
  247. package/lib/theme/BlogTagsListPage/index.js +0 -76
  248. package/lib/theme/BlogTagsPostsPage/index.js +0 -100
  249. package/lib/theme/CodeBlock/index.js +0 -253
  250. package/lib/theme/CodeBlock/styles.module.css +0 -68
  251. package/lib/theme/DocItem/index.js +0 -138
  252. package/lib/theme/DocItem/styles.module.css +0 -31
  253. package/lib/theme/DocPage/index.js +0 -139
  254. package/lib/theme/DocPage/styles.module.css +0 -85
  255. package/lib/theme/DocPaginator/index.js +0 -63
  256. package/lib/theme/DocSidebar/index.js +0 -133
  257. package/lib/theme/DocSidebar/styles.module.css +0 -106
  258. package/lib/theme/DocSidebarItem/index.js +0 -175
  259. package/lib/theme/DocVersionBanner/index.js +0 -128
  260. package/lib/theme/EditThisPage/index.js +0 -31
  261. package/lib/theme/Footer/index.js +0 -115
  262. package/lib/theme/Footer/styles.module.css +0 -15
  263. package/lib/theme/Heading/index.js +0 -76
  264. package/lib/theme/Heading/styles.css +0 -23
  265. package/lib/theme/Heading/styles.module.css +0 -15
  266. package/lib/theme/IconArrow/index.js +0 -28
  267. package/lib/theme/IconEdit/index.js +0 -34
  268. package/lib/theme/IconExternalLink/index.js +0 -30
  269. package/lib/theme/IconLanguage/index.js +0 -29
  270. package/lib/theme/IconMenu/index.js +0 -30
  271. package/lib/theme/LastUpdated/index.js +0 -61
  272. package/lib/theme/Layout/index.js +0 -64
  273. package/lib/theme/Layout/styles.css +0 -27
  274. package/lib/theme/LayoutHead/index.js +0 -144
  275. package/lib/theme/LayoutProviders/index.js +0 -38
  276. package/lib/theme/Logo/index.js +0 -60
  277. package/lib/theme/MDXComponents/index.js +0 -65
  278. package/lib/theme/MDXPage/index.js +0 -66
  279. package/lib/theme/Navbar/index.js +0 -248
  280. package/lib/theme/Navbar/styles.module.css +0 -63
  281. package/lib/theme/NavbarItem/DefaultNavbarItem.js +0 -210
  282. package/lib/theme/NavbarItem/DocNavbarItem.js +0 -63
  283. package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +0 -76
  284. package/lib/theme/NavbarItem/DocsVersionNavbarItem.js +0 -43
  285. package/lib/theme/NavbarItem/LocaleDropdownNavbarItem.js +0 -72
  286. package/lib/theme/NavbarItem/SearchNavbarItem.js +0 -28
  287. package/lib/theme/NavbarItem/index.js +0 -54
  288. package/lib/theme/NotFound.js +0 -57
  289. package/lib/theme/SearchBar.js +0 -15
  290. package/lib/theme/SearchMetadatas/index.js +0 -33
  291. package/lib/theme/Seo/index.js +0 -49
  292. package/lib/theme/SkipToContent/index.js +0 -71
  293. package/lib/theme/SkipToContent/styles.module.css +0 -14
  294. package/lib/theme/TOC/index.js +0 -60
  295. package/lib/theme/TOC/styles.module.css +0 -23
  296. package/lib/theme/TOCCollapsible/index.js +0 -51
  297. package/lib/theme/TOCCollapsible/styles.module.css +0 -49
  298. package/lib/theme/TOCInline/index.js +0 -53
  299. package/lib/theme/TOCInline/styles.module.css +0 -12
  300. package/lib/theme/TabItem/index.js +0 -32
  301. package/lib/theme/Tabs/index.js +0 -150
  302. package/lib/theme/Tabs/styles.module.css +0 -23
  303. package/lib/theme/ThemeContext.js +0 -21
  304. package/lib/theme/ThemeProvider/index.js +0 -38
  305. package/lib/theme/ThemedImage/index.js +0 -49
  306. package/lib/theme/ThemedImage/styles.module.css +0 -18
  307. package/lib/theme/Toggle/index.js +0 -94
  308. package/lib/theme/Toggle/styles.css +0 -103
  309. package/lib/theme/Toggle/styles.module.css +0 -17
  310. package/lib/theme/UserPreferencesContext.js +0 -18
  311. package/lib/theme/UserPreferencesProvider/index.js +0 -36
  312. package/lib/theme/hooks/useContextualSearchFilters.js +0 -47
  313. package/lib/theme/hooks/useDocs.js +0 -18
  314. package/lib/theme/hooks/useHideableNavbar.js +0 -92
  315. package/lib/theme/hooks/useKeyboardNavigation.js +0 -45
  316. package/lib/theme/hooks/useLocationHash.js +0 -28
  317. package/lib/theme/hooks/useLockBodyScroll.js +0 -26
  318. package/lib/theme/hooks/usePrismTheme.js +0 -36
  319. package/lib/theme/hooks/useScrollPosition.js +0 -49
  320. package/lib/theme/hooks/useTOCHighlight.js +0 -87
  321. package/lib/theme/hooks/useTabGroupChoice.js +0 -51
  322. package/lib/theme/hooks/useTheme.js +0 -99
  323. package/lib/theme/hooks/useThemeContext.js +0 -31
  324. package/lib/theme/hooks/useUserPreferencesContext.js +0 -31
  325. package/lib/theme/hooks/useWindowSize.js +0 -73
  326. package/lib/theme/prism-include-languages.js +0 -39
  327. package/lib-next/__tests__/__snapshots__/translations.test.ts.snap +0 -116
  328. package/lib-next/__tests__/translations.test.js +0 -128
  329. package/lib-next/__tests__/validateThemeConfig.test.js +0 -333
  330. package/lib-next/index.js +0 -221
  331. package/lib-next/theme/Toggle/styles.css +0 -103
  332. package/lib-next/theme/hooks/useContextualSearchFilters.js +0 -41
  333. package/lib-next/theme/hooks/useLocationHash.js +0 -20
  334. package/lib-next/theme/hooks/useScrollPosition.js +0 -38
  335. package/lib-next/theme/hooks/useTOCHighlight.js +0 -84
  336. package/lib-next/translations.js +0 -145
  337. package/lib-next/validateThemeConfig.js +0 -319
  338. package/src/__tests__/__snapshots__/translations.test.ts.snap +0 -116
  339. package/src/__tests__/translations.test.ts +0 -116
  340. package/src/__tests__/validateThemeConfig.test.js +0 -333
  341. package/src/prism-include-languages.js +0 -11
  342. package/src/theme/Toggle/styles.css +0 -103
  343. package/src/theme/hooks/useContextualSearchFilters.ts +0 -52
  344. package/src/theme/hooks/useLocationHash.ts +0 -25
  345. package/src/theme/hooks/useScrollPosition.ts +0 -45
  346. package/src/theme/hooks/useTOCHighlight.ts +0 -98
  347. package/tsconfig.json +0 -12
  348. package/update-code-translations.js +0 -242
  349. package/update-code-translations.test.js +0 -33
@@ -5,7 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- const {Joi, URISchema} = require('@docusaurus/utils-validation');
8
+ import {Joi, URISchema} from '@docusaurus/utils-validation';
9
+ import type {ThemeConfig, Validate, ValidationResult} from '@docusaurus/types';
9
10
 
10
11
  const DEFAULT_DOCS_CONFIG = {
11
12
  versionPersistence: 'localStorage',
@@ -31,7 +32,7 @@ const DEFAULT_COLOR_MODE_CONFIG = {
31
32
  const DEFAULT_CONFIG = {
32
33
  colorMode: DEFAULT_COLOR_MODE_CONFIG,
33
34
  docs: DEFAULT_DOCS_CONFIG,
34
- metadatas: [],
35
+ metadata: [],
35
36
  prism: {
36
37
  additionalLanguages: [],
37
38
  },
@@ -40,85 +41,55 @@ const DEFAULT_CONFIG = {
40
41
  items: [],
41
42
  },
42
43
  hideableSidebar: false,
43
- sidebarCollapsible: true,
44
+ tableOfContents: {
45
+ minHeadingLevel: 2,
46
+ maxHeadingLevel: 3,
47
+ },
44
48
  };
45
- exports.DEFAULT_CONFIG = DEFAULT_CONFIG;
46
49
 
47
50
  const NavbarItemPosition = Joi.string().equal('left', 'right').default('left');
48
51
 
49
- const BaseNavbarItemSchema = Joi.object({
50
- to: Joi.string(),
51
- href: URISchema,
52
+ const NavbarItemBaseSchema = Joi.object({
52
53
  label: Joi.string(),
53
54
  className: Joi.string(),
54
- prependBaseUrlToHref: Joi.bool(),
55
55
  })
56
56
  // We allow any unknown attributes on the links
57
57
  // (users may need additional attributes like target, aria-role, data-customAttribute...)
58
58
  .unknown();
59
59
 
60
- // TODO we should probably create a custom navbar item type "dropdown"
61
- // having this recursive structure is bad because we only support 2 levels
62
- // + parent/child don't have exactly the same props
63
- const DefaultNavbarItemSchema = BaseNavbarItemSchema.append({
64
- items: Joi.array().optional().items(BaseNavbarItemSchema),
65
- position: NavbarItemPosition,
60
+ const DefaultNavbarItemSchema = NavbarItemBaseSchema.append({
61
+ to: Joi.string(),
62
+ href: URISchema,
66
63
  activeBasePath: Joi.string(),
67
64
  activeBaseRegex: Joi.string(),
68
- });
69
- // TODO the dropdown parent item can have no href/to
70
- // should check should not apply to dropdown parent item
71
- // .xor('href', 'to');
65
+ prependBaseUrlToHref: Joi.bool(),
66
+ // This is only triggered in case of a nested dropdown
67
+ items: Joi.forbidden().messages({
68
+ 'any.unknown': 'Nested dropdowns are not allowed',
69
+ }),
70
+ })
71
+ .xor('href', 'to')
72
+ .messages({
73
+ 'object.xor': 'One and only one between "to" and "href" should be provided',
74
+ });
72
75
 
73
- const DocsVersionNavbarItemSchema = Joi.object({
76
+ const DocsVersionNavbarItemSchema = NavbarItemBaseSchema.append({
74
77
  type: Joi.string().equal('docsVersion').required(),
75
- position: NavbarItemPosition,
76
- label: Joi.string(),
77
78
  to: Joi.string(),
78
79
  docsPluginId: Joi.string(),
79
- className: Joi.string(),
80
80
  });
81
81
 
82
- const DocsVersionDropdownNavbarItemSchema = Joi.object({
83
- type: Joi.string().equal('docsVersionDropdown').required(),
84
- position: NavbarItemPosition,
85
- docsPluginId: Joi.string(),
86
- dropdownActiveClassDisabled: Joi.boolean(),
87
- dropdownItemsBefore: Joi.array().items(BaseNavbarItemSchema).default([]),
88
- dropdownItemsAfter: Joi.array().items(BaseNavbarItemSchema).default([]),
89
- className: Joi.string(),
90
- });
91
-
92
- const DocItemSchema = Joi.object({
82
+ const DocItemSchema = NavbarItemBaseSchema.append({
93
83
  type: Joi.string().equal('doc').required(),
94
- position: NavbarItemPosition,
95
84
  docId: Joi.string().required(),
96
- label: Joi.string(),
97
85
  docsPluginId: Joi.string(),
98
- activeSidebarClassName: Joi.string().default('navbar__link--active'),
99
- className: Joi.string(),
100
- });
101
-
102
- const LocaleDropdownNavbarItemSchema = Joi.object({
103
- type: Joi.string().equal('localeDropdown').required(),
104
- position: NavbarItemPosition,
105
- dropdownItemsBefore: Joi.array().items(BaseNavbarItemSchema).default([]),
106
- dropdownItemsAfter: Joi.array().items(BaseNavbarItemSchema).default([]),
107
- className: Joi.string(),
108
- });
109
-
110
- const SearchItemSchema = Joi.object({
111
- type: Joi.string().equal('search').required(),
112
- position: NavbarItemPosition,
113
86
  });
114
87
 
115
- // Can this be made easier? :/
116
- const isOfType = (type) => {
117
- let typeSchema = Joi.string().required();
88
+ const itemWithType = (type: string | undefined) => {
118
89
  // because equal(undefined) is not supported :/
119
- if (type) {
120
- typeSchema = typeSchema.equal(type);
121
- }
90
+ const typeSchema = type
91
+ ? Joi.string().required().equal(type)
92
+ : Joi.string().forbidden();
122
93
  return Joi.object({
123
94
  type: typeSchema,
124
95
  })
@@ -126,58 +97,105 @@ const isOfType = (type) => {
126
97
  .required();
127
98
  };
128
99
 
129
- const NavbarItemSchema = Joi.object().when({
100
+ const DropdownSubitemSchema = Joi.object({
101
+ position: Joi.forbidden(),
102
+ }).when('.', {
103
+ switch: [
104
+ {
105
+ is: itemWithType('docsVersion'),
106
+ then: DocsVersionNavbarItemSchema,
107
+ },
108
+ {
109
+ is: itemWithType('doc'),
110
+ then: DocItemSchema,
111
+ },
112
+ {
113
+ is: itemWithType(undefined),
114
+ then: DefaultNavbarItemSchema,
115
+ },
116
+ {
117
+ is: Joi.alternatives().try(
118
+ itemWithType('dropdown'),
119
+ itemWithType('docsVersionDropdown'),
120
+ itemWithType('localeDropdown'),
121
+ itemWithType('search'),
122
+ ),
123
+ then: Joi.forbidden().messages({
124
+ 'any.unknown': 'Nested dropdowns are not allowed',
125
+ }),
126
+ },
127
+ ],
128
+ otherwise: Joi.forbidden().messages({
129
+ 'any.unknown': 'Bad navbar item type {.type}',
130
+ }),
131
+ });
132
+
133
+ const DropdownNavbarItemSchema = NavbarItemBaseSchema.append({
134
+ items: Joi.array().items(DropdownSubitemSchema).required(),
135
+ });
136
+
137
+ const DocsVersionDropdownNavbarItemSchema = NavbarItemBaseSchema.append({
138
+ type: Joi.string().equal('docsVersionDropdown').required(),
139
+ docsPluginId: Joi.string(),
140
+ dropdownActiveClassDisabled: Joi.boolean(),
141
+ dropdownItemsBefore: Joi.array().items(DropdownSubitemSchema).default([]),
142
+ dropdownItemsAfter: Joi.array().items(DropdownSubitemSchema).default([]),
143
+ });
144
+
145
+ const LocaleDropdownNavbarItemSchema = NavbarItemBaseSchema.append({
146
+ type: Joi.string().equal('localeDropdown').required(),
147
+ dropdownItemsBefore: Joi.array().items(DropdownSubitemSchema).default([]),
148
+ dropdownItemsAfter: Joi.array().items(DropdownSubitemSchema).default([]),
149
+ });
150
+
151
+ const SearchItemSchema = Joi.object({
152
+ type: Joi.string().equal('search').required(),
153
+ });
154
+
155
+ const NavbarItemSchema = Joi.object({
156
+ position: NavbarItemPosition,
157
+ }).when('.', {
130
158
  switch: [
131
159
  {
132
- is: isOfType('docsVersion'),
160
+ is: itemWithType('docsVersion'),
133
161
  then: DocsVersionNavbarItemSchema,
134
162
  },
135
163
  {
136
- is: isOfType('docsVersionDropdown'),
164
+ is: itemWithType('dropdown'),
165
+ then: DropdownNavbarItemSchema,
166
+ },
167
+ {
168
+ is: itemWithType('docsVersionDropdown'),
137
169
  then: DocsVersionDropdownNavbarItemSchema,
138
170
  },
139
171
  {
140
- is: isOfType('doc'),
172
+ is: itemWithType('doc'),
141
173
  then: DocItemSchema,
142
174
  },
143
175
  {
144
- is: isOfType('localeDropdown'),
176
+ is: itemWithType('localeDropdown'),
145
177
  then: LocaleDropdownNavbarItemSchema,
146
178
  },
147
179
  {
148
- is: isOfType('search'),
180
+ is: itemWithType('search'),
149
181
  then: SearchItemSchema,
150
182
  },
151
183
  {
152
- is: isOfType(undefined),
153
- then: Joi.forbidden().messages({
154
- 'any.unknown': 'Bad navbar item type {.type}',
184
+ is: itemWithType(undefined),
185
+ then: Joi.object().when('.', {
186
+ // Dropdown item can be specified without type field
187
+ is: Joi.object({
188
+ items: Joi.array().required(),
189
+ }).unknown(),
190
+ then: DropdownNavbarItemSchema,
191
+ otherwise: DefaultNavbarItemSchema,
155
192
  }),
156
193
  },
157
194
  ],
158
- otherwise: DefaultNavbarItemSchema,
159
- });
160
-
161
- /*
162
- const NavbarItemSchema = Joi.object({
163
- type: Joi.string().only(['docsVersion'])
164
- })
165
- .when(Joi.object({ type: 'docsVersion' }).unknown(), {
166
- then: Joi.object({ pepperoni: Joi.boolean() })
167
- })
168
- .when(Joi.object().unknown(), {
169
- then: Joi.object({ croutons: Joi.boolean() })
170
- })
171
-
172
- */
173
-
174
- /*
175
- const NavbarItemSchema = Joi.object().when('type', {
176
- is: Joi.valid('docsVersion'),
177
- then: DocsVersionNavbarItemSchema,
178
- otherwise: DefaultNavbarItemSchema,
195
+ otherwise: Joi.forbidden().messages({
196
+ 'any.unknown': 'Bad navbar item type {.type}',
197
+ }),
179
198
  });
180
- */
181
199
 
182
200
  const ColorModeSchema = Joi.object({
183
201
  defaultMode: Joi.string()
@@ -232,12 +250,12 @@ const CustomCssSchema = Joi.alternatives()
232
250
 
233
251
  const ThemeConfigSchema = Joi.object({
234
252
  // TODO temporary (@alpha-58)
235
- disableDarkMode: Joi.any().forbidden(false).messages({
253
+ disableDarkMode: Joi.any().forbidden().messages({
236
254
  'any.unknown':
237
255
  'disableDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.disableSwitch = true',
238
256
  }),
239
257
  // TODO temporary (@alpha-58)
240
- defaultDarkMode: Joi.any().forbidden(false).messages({
258
+ defaultDarkMode: Joi.any().forbidden().messages({
241
259
  'any.unknown':
242
260
  'defaultDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.defaultMode = "dark"',
243
261
  }),
@@ -245,12 +263,16 @@ const ThemeConfigSchema = Joi.object({
245
263
  colorMode: ColorModeSchema,
246
264
  image: Joi.string(),
247
265
  docs: DocsSchema,
248
- metadatas: Joi.array()
266
+ metadata: Joi.array()
249
267
  .items(HtmlMetadataSchema)
250
- .default(DEFAULT_CONFIG.metadatas),
268
+ .default(DEFAULT_CONFIG.metadata),
269
+ metadatas: Joi.any().forbidden().messages({
270
+ 'any.unknown':
271
+ 'themeConfig.metadatas has been renamed as themeConfig.metadata. See https://github.com/facebook/docusaurus/pull/5871',
272
+ }),
251
273
  announcementBar: Joi.object({
252
274
  id: Joi.string().default('announcement-bar'),
253
- content: Joi.string(),
275
+ content: Joi.string().required(),
254
276
  backgroundColor: Joi.string(),
255
277
  textColor: Joi.string(),
256
278
  isCloseable: Joi.bool().default(true),
@@ -271,6 +293,8 @@ const ThemeConfigSchema = Joi.object({
271
293
  alt: Joi.string().allow(''),
272
294
  src: Joi.string().required(),
273
295
  srcDark: Joi.string(),
296
+ width: Joi.alternatives().try(Joi.string(), Joi.number()),
297
+ height: Joi.alternatives().try(Joi.string(), Joi.number()),
274
298
  href: Joi.string(),
275
299
  target: Joi.string(),
276
300
  }),
@@ -281,16 +305,24 @@ const ThemeConfigSchema = Joi.object({
281
305
  alt: Joi.string().allow(''),
282
306
  src: Joi.string(),
283
307
  srcDark: Joi.string(),
308
+ // TODO infer this from reading the image
309
+ width: Joi.alternatives().try(Joi.string(), Joi.number()),
310
+ height: Joi.alternatives().try(Joi.string(), Joi.number()),
284
311
  href: Joi.string(),
285
312
  }),
286
313
  copyright: Joi.string(),
287
- links: Joi.array()
288
- .items(
314
+ links: Joi.alternatives(
315
+ Joi.array().items(
289
316
  Joi.object({
290
- title: Joi.string().allow(null),
317
+ title: Joi.string().allow(null).default(null),
291
318
  items: Joi.array().items(FooterLinkItemSchema).default([]),
292
319
  }),
293
- )
320
+ ),
321
+ Joi.array().items(FooterLinkItemSchema),
322
+ )
323
+ .messages({
324
+ '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`,
325
+ })
294
326
  .default([]),
295
327
  }).optional(),
296
328
  prism: Joi.object({
@@ -310,10 +342,38 @@ const ThemeConfigSchema = Joi.object({
310
342
  .default(DEFAULT_CONFIG.prism)
311
343
  .unknown(),
312
344
  hideableSidebar: Joi.bool().default(DEFAULT_CONFIG.hideableSidebar),
313
- sidebarCollapsible: Joi.bool().default(DEFAULT_CONFIG.sidebarCollapsible),
345
+ sidebarCollapsible: Joi.forbidden().messages({
346
+ 'any.unknown':
347
+ 'The themeConfig.sidebarCollapsible has been moved to docs plugin options. See: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs',
348
+ }),
349
+ tableOfContents: Joi.object({
350
+ minHeadingLevel: Joi.number()
351
+ .default(DEFAULT_CONFIG.tableOfContents.minHeadingLevel)
352
+ .when('maxHeadingLevel', {
353
+ is: Joi.exist(),
354
+ then: Joi.number()
355
+ .integer()
356
+ .min(2)
357
+ .max(6)
358
+ .max(Joi.ref('maxHeadingLevel')),
359
+ otherwise: Joi.number().integer().min(2).max(6),
360
+ }),
361
+ maxHeadingLevel: Joi.number()
362
+ .integer()
363
+ .min(2)
364
+ .max(6)
365
+ .default(DEFAULT_CONFIG.tableOfContents.maxHeadingLevel),
366
+ }).default(DEFAULT_CONFIG.tableOfContents),
314
367
  });
315
- exports.ThemeConfigSchema = ThemeConfigSchema;
316
368
 
317
- exports.validateThemeConfig = ({validate, themeConfig}) => {
369
+ export {DEFAULT_CONFIG, ThemeConfigSchema};
370
+
371
+ export function validateThemeConfig({
372
+ validate,
373
+ themeConfig,
374
+ }: {
375
+ validate: Validate<ThemeConfig>;
376
+ themeConfig: ThemeConfig;
377
+ }): ValidationResult<ThemeConfig> {
318
378
  return validate(ThemeConfigSchema, themeConfig);
319
- };
379
+ }
package/babel.config.js DELETED
@@ -1,35 +0,0 @@
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
- module.exports = {
9
- env: {
10
- // USED FOR NODE/RUNTIME
11
- // maybe we should differenciate both cases because
12
- // we mostly need to transpile some features so that node does not crash...
13
- lib: {
14
- presets: [
15
- ['@babel/preset-typescript', {isTSX: true, allExtensions: true}],
16
- ],
17
- // Useful to transpile for older node versions
18
- plugins: [
19
- '@babel/plugin-transform-modules-commonjs',
20
- '@babel/plugin-proposal-nullish-coalescing-operator',
21
- '@babel/plugin-proposal-optional-chaining',
22
- ],
23
- },
24
-
25
- // USED FOR JS SWIZZLE
26
- // /lib-next folder is used as source to swizzle JS source code
27
- // This JS code is created from TS source code
28
- // This source code should look clean/human readable to be usable
29
- 'lib-next': {
30
- presets: [
31
- ['@babel/preset-typescript', {isTSX: true, allExtensions: true}],
32
- ],
33
- },
34
- },
35
- };
@@ -1,20 +0,0 @@
1
- # Default theme translations
2
-
3
- The Docusaurus theme includes default translations for labels used by the theme itself (like the pagination "Next" / "Previous").
4
-
5
- ## For Docusaurus users:
6
-
7
- Please help us provide exhaustive translations:
8
-
9
- - add your `language.json` file if it is missing (copy `base.json` and remove the attributes `___DESCRIPTION`)
10
- - double-check your `language.json` file for bad or missing translations
11
-
12
- ## For maintainers:
13
-
14
- After updating the theme code, you can "synchronize" the translations by running:
15
-
16
- ```
17
- yarn workspace @docusaurus/theme-classic update-code-translations
18
- ```
19
-
20
- Then, ask contributors to translate the newly added labels on this [issue](https://github.com/facebook/docusaurus/issues/3526)
@@ -1,56 +0,0 @@
1
- {
2
- "theme.AnnouncementBar.closeButtonAriaLabel": "إغلاق",
3
- "theme.CodeBlock.copied": "تم النسخ",
4
- "theme.CodeBlock.copy": "نسخ",
5
- "theme.CodeBlock.copyButtonAriaLabel": "نسخ الرمز إلى الحافظة",
6
- "theme.NotFound.p1": "لم نتمكن من العثور على ما كنت تبحث عنه.",
7
- "theme.NotFound.p2": "يرجى الاتصال بمالك الموقع الذي ربطك بعنوان URL الأصلي وإخباره بأن الارتباط الخاص به معطل.",
8
- "theme.NotFound.title": "الصفحة غير موجودة",
9
- "theme.Playground.liveEditor": "محرر مباشر",
10
- "theme.Playground.result": "النتيجة",
11
- "theme.PwaReloadPopup.closeButtonAriaLabel": "إغلاق",
12
- "theme.PwaReloadPopup.info": "نسخة جديدة متاحة",
13
- "theme.PwaReloadPopup.refreshButtonText": "تحديث",
14
- "theme.SearchBar.label": "بحث",
15
- "theme.SearchPage.algoliaLabel": "البحث بواسطه Algolia",
16
- "theme.SearchPage.documentsFound.plurals": "One document found|{count} documents found",
17
- "theme.SearchPage.emptyResultsTitle": "ابحث في الوثائق",
18
- "theme.SearchPage.existingResultsTitle": "نتائج البحث عن \"{query}\"",
19
- "theme.SearchPage.fetchingNewResults": "جلب نتائج جديدة ...",
20
- "theme.SearchPage.inputLabel": "بحث",
21
- "theme.SearchPage.inputPlaceholder": "اكتب ما تبحث عنه هنا",
22
- "theme.SearchPage.noResultsText": "لم يتم العثور على نتائج",
23
- "theme.TOCCollapsible.toggleButtonLabel": "On this page",
24
- "theme.blog.paginator.navAriaLabel": "التنقل في صفحة قائمة المدونة",
25
- "theme.blog.paginator.newerEntries": "إدخالات أحدث",
26
- "theme.blog.paginator.olderEntries": "إدخالات أقدم",
27
- "theme.blog.post.paginator.navAriaLabel": "التنقل في صفحة مقالات المدونة",
28
- "theme.blog.post.paginator.newerPost": "مقالات أحدث",
29
- "theme.blog.post.paginator.olderPost": "مقالات أقدم",
30
- "theme.blog.post.plurals": "مقاله واحده|{count} مقالات",
31
- "theme.blog.post.readMore": "اقرأ المزيد",
32
- "theme.blog.post.readingTime.plurals": "{readingTime} دقائق قراءة|{readingTime} دقائق قراءة",
33
- "theme.blog.sidebar.navAriaLabel": "Blog recent posts navigation",
34
- "theme.blog.tagTitle": "{nPosts} موسومة ب \"{tagName}\"",
35
- "theme.common.editThisPage": "تعديل هذه الصفحة",
36
- "theme.common.headingLinkTitle": "ارتباط مباشر بالعنوان",
37
- "theme.common.skipToMainContent": "انتقل إلى المحتوى الرئيسي",
38
- "theme.docs.paginator.navAriaLabel": "التنقل بين صفحات المستندات",
39
- "theme.docs.paginator.next": "التالى",
40
- "theme.docs.paginator.previous": "السابق",
41
- "theme.docs.sidebar.collapseButtonAriaLabel": "طي الشريط الجانبي",
42
- "theme.docs.sidebar.collapseButtonTitle": "طي الشريط الجانبي",
43
- "theme.docs.sidebar.expandButtonAriaLabel": "توسيع الشريط الجانبي",
44
- "theme.docs.sidebar.expandButtonTitle": "توسيع الشريط الجانبي",
45
- "theme.docs.versions.latestVersionLinkLabel": "احدث اصدار",
46
- "theme.docs.versions.latestVersionSuggestionLabel": "للحصول على أحدث الوثائق، راجع {latestVersionLink} ({versionLabel}).",
47
- "theme.docs.versions.unmaintainedVersionLabel": "هذه هي وثائق {siteTitle} {versionLabel}، التي لم تعد تتم صيانتها بشكل نشط.",
48
- "theme.docs.versions.unreleasedVersionLabel": "هذه وثائق لم يتم طرحها لإصدار {siteTitle} {versionLabel}.",
49
- "theme.lastUpdated.atDate": " في {date}",
50
- "theme.lastUpdated.byUser": " بواسطة {user}",
51
- "theme.lastUpdated.lastUpdatedAtBy": "آخر تحديث{atDate}{byUser}",
52
- "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": "← Back to main menu",
53
- "theme.tags.tagsListLabel": "الوسوم:",
54
- "theme.tags.tagsPageLink": "عرض كل الوسوم",
55
- "theme.tags.tagsPageTitle": "الوسوم"
56
- }
@@ -1,110 +0,0 @@
1
- {
2
- "theme.AnnouncementBar.closeButtonAriaLabel": "Close",
3
- "theme.AnnouncementBar.closeButtonAriaLabel___DESCRIPTION": "The ARIA label for close button of announcement bar",
4
- "theme.CodeBlock.copied": "Copied",
5
- "theme.CodeBlock.copied___DESCRIPTION": "The copied button label on code blocks",
6
- "theme.CodeBlock.copy": "Copy",
7
- "theme.CodeBlock.copy___DESCRIPTION": "The copy button label on code blocks",
8
- "theme.CodeBlock.copyButtonAriaLabel": "Copy code to clipboard",
9
- "theme.CodeBlock.copyButtonAriaLabel___DESCRIPTION": "The ARIA label for copy code blocks button",
10
- "theme.NotFound.p1": "We could not find what you were looking for.",
11
- "theme.NotFound.p1___DESCRIPTION": "The first paragraph of the 404 page",
12
- "theme.NotFound.p2": "Please contact the owner of the site that linked you to the original URL and let them know their link is broken.",
13
- "theme.NotFound.p2___DESCRIPTION": "The 2nd paragraph of the 404 page",
14
- "theme.NotFound.title": "Page Not Found",
15
- "theme.NotFound.title___DESCRIPTION": "The title of the 404 page",
16
- "theme.Playground.liveEditor": "Live Editor",
17
- "theme.Playground.liveEditor___DESCRIPTION": "The live editor label of the live codeblocks",
18
- "theme.Playground.result": "Result",
19
- "theme.Playground.result___DESCRIPTION": "The result label of the live codeblocks",
20
- "theme.PwaReloadPopup.closeButtonAriaLabel": "Close",
21
- "theme.PwaReloadPopup.closeButtonAriaLabel___DESCRIPTION": "The ARIA label for close button of PWA reload popup",
22
- "theme.PwaReloadPopup.info": "New version available",
23
- "theme.PwaReloadPopup.info___DESCRIPTION": "The text for PWA reload popup",
24
- "theme.PwaReloadPopup.refreshButtonText": "Refresh",
25
- "theme.PwaReloadPopup.refreshButtonText___DESCRIPTION": "The text for PWA reload button",
26
- "theme.SearchBar.label": "Search",
27
- "theme.SearchBar.label___DESCRIPTION": "The ARIA label and placeholder for search button",
28
- "theme.SearchPage.algoliaLabel": "Search by Algolia",
29
- "theme.SearchPage.algoliaLabel___DESCRIPTION": "The ARIA label for Algolia mention",
30
- "theme.SearchPage.documentsFound.plurals": "One document found|{count} documents found",
31
- "theme.SearchPage.documentsFound.plurals___DESCRIPTION": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)",
32
- "theme.SearchPage.emptyResultsTitle": "Search the documentation",
33
- "theme.SearchPage.emptyResultsTitle___DESCRIPTION": "The search page title for empty query",
34
- "theme.SearchPage.existingResultsTitle": "Search results for \"{query}\"",
35
- "theme.SearchPage.existingResultsTitle___DESCRIPTION": "The search page title for non-empty query",
36
- "theme.SearchPage.fetchingNewResults": "Fetching new results...",
37
- "theme.SearchPage.fetchingNewResults___DESCRIPTION": "The paragraph for fetching new search results",
38
- "theme.SearchPage.inputLabel": "Search",
39
- "theme.SearchPage.inputLabel___DESCRIPTION": "The ARIA label for search page input",
40
- "theme.SearchPage.inputPlaceholder": "Type your search here",
41
- "theme.SearchPage.inputPlaceholder___DESCRIPTION": "The placeholder for search page input",
42
- "theme.SearchPage.noResultsText": "No results were found",
43
- "theme.SearchPage.noResultsText___DESCRIPTION": "The paragraph for empty search result",
44
- "theme.TOCCollapsible.toggleButtonLabel": "On this page",
45
- "theme.TOCCollapsible.toggleButtonLabel___DESCRIPTION": "The label used by the button on the collapsible TOC component",
46
- "theme.blog.paginator.navAriaLabel": "Blog list page navigation",
47
- "theme.blog.paginator.navAriaLabel___DESCRIPTION": "The ARIA label for the blog pagination",
48
- "theme.blog.paginator.newerEntries": "Newer Entries",
49
- "theme.blog.paginator.newerEntries___DESCRIPTION": "The label used to navigate to the newer blog posts page (previous page)",
50
- "theme.blog.paginator.olderEntries": "Older Entries",
51
- "theme.blog.paginator.olderEntries___DESCRIPTION": "The label used to navigate to the older blog posts page (next page)",
52
- "theme.blog.post.paginator.navAriaLabel": "Blog post page navigation",
53
- "theme.blog.post.paginator.navAriaLabel___DESCRIPTION": "The ARIA label for the blog posts pagination",
54
- "theme.blog.post.paginator.newerPost": "Newer Post",
55
- "theme.blog.post.paginator.newerPost___DESCRIPTION": "The blog post button label to navigate to the newer/previous post",
56
- "theme.blog.post.paginator.olderPost": "Older Post",
57
- "theme.blog.post.paginator.olderPost___DESCRIPTION": "The blog post button label to navigate to the older/next post",
58
- "theme.blog.post.plurals": "One post|{count} posts",
59
- "theme.blog.post.plurals___DESCRIPTION": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)",
60
- "theme.blog.post.readMore": "Read More",
61
- "theme.blog.post.readMore___DESCRIPTION": "The label used in blog post item excerpts to link to full blog posts",
62
- "theme.blog.post.readingTime.plurals": "One min read|{readingTime} min read",
63
- "theme.blog.post.readingTime.plurals___DESCRIPTION": "Pluralized label for \"{readingTime} min read\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)",
64
- "theme.blog.sidebar.navAriaLabel": "Blog recent posts navigation",
65
- "theme.blog.sidebar.navAriaLabel___DESCRIPTION": "The ARIA label for recent posts in the blog sidebar",
66
- "theme.blog.tagTitle": "{nPosts} tagged with \"{tagName}\"",
67
- "theme.blog.tagTitle___DESCRIPTION": "The title of the page for a blog tag",
68
- "theme.common.editThisPage": "Edit this page",
69
- "theme.common.editThisPage___DESCRIPTION": "The link label to edit the current page",
70
- "theme.common.headingLinkTitle": "Direct link to heading",
71
- "theme.common.headingLinkTitle___DESCRIPTION": "Title for link to heading",
72
- "theme.common.skipToMainContent": "Skip to main content",
73
- "theme.common.skipToMainContent___DESCRIPTION": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",
74
- "theme.docs.paginator.navAriaLabel": "Docs pages navigation",
75
- "theme.docs.paginator.navAriaLabel___DESCRIPTION": "The ARIA label for the docs pagination",
76
- "theme.docs.paginator.next": "Next",
77
- "theme.docs.paginator.next___DESCRIPTION": "The label used to navigate to the next doc",
78
- "theme.docs.paginator.previous": "Previous",
79
- "theme.docs.paginator.previous___DESCRIPTION": "The label used to navigate to the previous doc",
80
- "theme.docs.sidebar.collapseButtonAriaLabel": "Collapse sidebar",
81
- "theme.docs.sidebar.collapseButtonAriaLabel___DESCRIPTION": "The title attribute for collapse button of doc sidebar",
82
- "theme.docs.sidebar.collapseButtonTitle": "Collapse sidebar",
83
- "theme.docs.sidebar.collapseButtonTitle___DESCRIPTION": "The title attribute for collapse button of doc sidebar",
84
- "theme.docs.sidebar.expandButtonAriaLabel": "Expand sidebar",
85
- "theme.docs.sidebar.expandButtonAriaLabel___DESCRIPTION": "The ARIA label and title attribute for expand button of doc sidebar",
86
- "theme.docs.sidebar.expandButtonTitle": "Expand sidebar",
87
- "theme.docs.sidebar.expandButtonTitle___DESCRIPTION": "The ARIA label and title attribute for expand button of doc sidebar",
88
- "theme.docs.versions.latestVersionLinkLabel": "latest version",
89
- "theme.docs.versions.latestVersionLinkLabel___DESCRIPTION": "The label used for the latest version suggestion link label",
90
- "theme.docs.versions.latestVersionSuggestionLabel": "For up-to-date documentation, see the {latestVersionLink} ({versionLabel}).",
91
- "theme.docs.versions.latestVersionSuggestionLabel___DESCRIPTION": "The label used to tell the user to check the latest version",
92
- "theme.docs.versions.unmaintainedVersionLabel": "This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained.",
93
- "theme.docs.versions.unmaintainedVersionLabel___DESCRIPTION": "The label used to tell the user that he's browsing an unmaintained doc version",
94
- "theme.docs.versions.unreleasedVersionLabel": "This is unreleased documentation for {siteTitle} {versionLabel} version.",
95
- "theme.docs.versions.unreleasedVersionLabel___DESCRIPTION": "The label used to tell the user that he's browsing an unreleased doc version",
96
- "theme.lastUpdated.atDate": " on {date}",
97
- "theme.lastUpdated.atDate___DESCRIPTION": "The words used to describe on which date a page has been last updated",
98
- "theme.lastUpdated.byUser": " by {user}",
99
- "theme.lastUpdated.byUser___DESCRIPTION": "The words used to describe by who the page has been last updated",
100
- "theme.lastUpdated.lastUpdatedAtBy": "Last updated{atDate}{byUser}",
101
- "theme.lastUpdated.lastUpdatedAtBy___DESCRIPTION": "The sentence used to display when a page has been last updated, and by who",
102
- "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": "← Back to main menu",
103
- "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel___DESCRIPTION": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)",
104
- "theme.tags.tagsListLabel": "Tags:",
105
- "theme.tags.tagsListLabel___DESCRIPTION": "The label alongside a tag list",
106
- "theme.tags.tagsPageLink": "View All Tags",
107
- "theme.tags.tagsPageLink___DESCRIPTION": "The label of the link targeting the tag list page",
108
- "theme.tags.tagsPageTitle": "Tags",
109
- "theme.tags.tagsPageTitle___DESCRIPTION": "The title of the tag list page"
110
- }