@docusaurus/theme-classic 2.0.0-beta.15d451942 → 2.0.0-beta.16

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 (407) hide show
  1. package/README.md +2 -2
  2. package/lib/admonitions.css +35 -0
  3. package/lib/deps.d.ts +13 -0
  4. package/lib/getSwizzleConfig.js +102 -0
  5. package/lib/index.js +59 -43
  6. package/lib/prism-include-languages.js +9 -5
  7. package/lib/theme-classic.d.ts +755 -0
  8. package/lib/translations.js +40 -34
  9. package/lib/types.d.ts +0 -589
  10. package/lib/validateThemeConfig.js +247 -246
  11. package/lib-next/theme/Admonition/index.js +101 -0
  12. package/lib-next/theme/AnnouncementBar/index.js +10 -22
  13. package/lib-next/theme/AnnouncementBar/styles.module.css +26 -35
  14. package/lib-next/theme/BackToTopButton/index.js +131 -0
  15. package/lib-next/theme/BackToTopButton/styles.module.css +44 -0
  16. package/lib-next/theme/BlogArchivePage/index.js +80 -0
  17. package/lib-next/theme/BlogLayout/index.js +37 -0
  18. package/lib-next/theme/BlogListPage/index.js +18 -29
  19. package/lib-next/theme/BlogListPaginator/index.js +13 -16
  20. package/lib-next/theme/BlogPostAuthor/index.js +40 -0
  21. package/{lib/theme/IconEdit → lib-next/theme/BlogPostAuthor}/styles.module.css +4 -3
  22. package/lib-next/theme/BlogPostAuthors/index.js +44 -0
  23. package/lib-next/theme/BlogPostAuthors/styles.module.css +21 -0
  24. package/lib-next/theme/BlogPostItem/index.js +110 -95
  25. package/lib-next/theme/BlogPostItem/styles.module.css +5 -1
  26. package/lib-next/theme/BlogPostPage/index.js +75 -43
  27. package/lib-next/theme/BlogPostPaginator/index.js +13 -20
  28. package/lib-next/theme/BlogSidebar/index.js +23 -16
  29. package/lib-next/theme/BlogSidebar/styles.module.css +8 -8
  30. package/lib-next/theme/BlogTagsListPage/index.js +16 -66
  31. package/lib-next/theme/BlogTagsPostsPage/index.js +47 -59
  32. package/lib-next/theme/CodeBlock/index.js +73 -162
  33. package/lib-next/theme/CodeBlock/styles.module.css +18 -13
  34. package/lib-next/theme/Details/index.js +21 -0
  35. package/lib-next/theme/Details/styles.module.css +13 -0
  36. package/lib-next/theme/DocBreadcrumbs/index.js +76 -0
  37. package/lib-next/theme/DocBreadcrumbs/styles.module.css +26 -0
  38. package/lib-next/theme/DocCard/index.js +91 -0
  39. package/lib-next/theme/DocCard/styles.module.css +43 -0
  40. package/lib-next/theme/DocCardList/index.js +19 -0
  41. package/lib-next/theme/DocCategoryGeneratedIndexPage/index.js +54 -0
  42. package/lib-next/theme/DocCategoryGeneratedIndexPage/styles.module.css +18 -0
  43. package/lib-next/theme/DocItem/index.js +64 -69
  44. package/lib-next/theme/DocItem/styles.module.css +7 -13
  45. package/lib-next/theme/DocItemFooter/index.js +79 -0
  46. package/{lib/theme/Layout/styles.css → lib-next/theme/DocItemFooter/styles.module.css} +8 -11
  47. package/lib-next/theme/DocPage/index.js +59 -33
  48. package/lib-next/theme/DocPage/styles.module.css +14 -26
  49. package/lib-next/theme/DocPaginator/index.js +16 -25
  50. package/lib-next/theme/DocSidebar/index.js +72 -285
  51. package/lib-next/theme/DocSidebar/styles.module.css +5 -36
  52. package/lib-next/theme/DocSidebarItem/index.js +264 -0
  53. package/lib-next/theme/DocSidebarItem/styles.module.css +13 -0
  54. package/lib-next/theme/DocSidebarItems/index.js +28 -0
  55. package/lib-next/theme/DocTagDocListPage/index.js +89 -0
  56. package/lib-next/theme/DocTagsListPage/index.js +35 -0
  57. package/lib-next/theme/DocVersionBadge/index.js +34 -0
  58. package/lib-next/theme/{DocVersionSuggestions → DocVersionBanner}/index.js +54 -36
  59. package/lib-next/theme/EditThisPage/index.js +6 -1
  60. package/lib-next/theme/ErrorPageContent.js +35 -0
  61. package/lib-next/theme/Footer/index.js +105 -41
  62. package/lib-next/theme/Footer/styles.module.css +2 -1
  63. package/lib-next/theme/Heading/index.js +40 -33
  64. package/lib-next/theme/Heading/styles.module.css +27 -2
  65. package/lib-next/theme/IconArrow/index.js +3 -6
  66. package/lib-next/theme/IconClose/index.js +23 -0
  67. package/lib-next/theme/IconEdit/index.js +5 -10
  68. package/lib-next/theme/IconExternalLink/index.js +23 -0
  69. package/{lib/theme/BlogPostItem → lib-next/theme/IconExternalLink}/styles.module.css +4 -6
  70. package/lib-next/theme/IconLanguage/index.js +3 -6
  71. package/lib-next/theme/IconMenu/index.js +8 -9
  72. package/lib-next/theme/LastUpdated/index.js +35 -39
  73. package/lib-next/theme/Layout/index.js +5 -7
  74. package/lib-next/theme/Layout/styles.css +6 -0
  75. package/lib-next/theme/LayoutHead/index.js +27 -32
  76. package/lib-next/theme/LayoutProviders/index.js +21 -10
  77. package/lib-next/theme/Logo/index.js +21 -16
  78. package/lib-next/theme/MDXComponents/index.js +45 -30
  79. package/lib-next/theme/{hooks → MDXComponents}/styles.css +7 -2
  80. package/lib-next/theme/MDXPage/index.js +22 -28
  81. package/{lib/theme/LastUpdated → lib-next/theme/MDXPage}/styles.module.css +2 -2
  82. package/lib-next/theme/Navbar/index.js +199 -64
  83. package/lib-next/theme/Navbar/styles.module.css +11 -4
  84. package/lib-next/theme/NavbarItem/DefaultNavbarItem.js +36 -185
  85. package/lib-next/theme/NavbarItem/DocNavbarItem.js +31 -14
  86. package/lib-next/theme/NavbarItem/DocSidebarNavbarItem.js +73 -0
  87. package/lib-next/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +38 -24
  88. package/lib-next/theme/NavbarItem/DocsVersionNavbarItem.js +4 -1
  89. package/lib-next/theme/NavbarItem/DropdownNavbarItem.js +156 -0
  90. package/lib-next/theme/NavbarItem/{LocaleDropdownNavbarItem.js → LocaleDropdownNavbarItem/index.js} +12 -13
  91. package/lib-next/theme/NavbarItem/LocaleDropdownNavbarItem/styles.module.css +11 -0
  92. package/lib-next/theme/NavbarItem/NavbarNavLink.js +70 -0
  93. package/lib-next/theme/NavbarItem/index.js +27 -15
  94. package/lib-next/theme/{UserPreferencesContext.js → NavbarItem/utils.js} +3 -3
  95. package/lib-next/theme/NotFound.js +7 -6
  96. package/lib-next/theme/PaginatorNavLink/index.js +17 -0
  97. package/lib-next/theme/SearchBar.js +1 -1
  98. package/lib-next/theme/SearchMetadata/index.js +25 -0
  99. package/lib-next/theme/Seo/index.js +11 -7
  100. package/lib-next/theme/SkipToContent/index.js +9 -8
  101. package/lib-next/theme/SkipToContent/styles.module.css +8 -3
  102. package/lib-next/theme/TOC/index.js +12 -39
  103. package/lib-next/theme/TOC/styles.module.css +2 -2
  104. package/lib-next/theme/TOCCollapsible/index.js +54 -0
  105. package/lib-next/theme/TOCCollapsible/styles.module.css +50 -0
  106. package/lib-next/theme/TOCInline/index.js +10 -31
  107. package/lib-next/theme/TOCItems/index.js +85 -0
  108. package/lib-next/theme/TabItem/index.js +1 -4
  109. package/lib-next/theme/Tabs/__tests__/index.test.js +146 -0
  110. package/lib-next/theme/Tabs/index.js +108 -50
  111. package/lib-next/theme/Tabs/styles.module.css +0 -13
  112. package/lib-next/theme/Tag/index.js +24 -0
  113. package/lib-next/theme/Tag/styles.module.css +70 -0
  114. package/lib-next/theme/TagsListByLetter/index.js +40 -0
  115. package/lib-next/theme/TagsListByLetter/styles.module.css +11 -0
  116. package/lib-next/theme/TagsListInline/index.js +31 -0
  117. package/lib-next/theme/TagsListInline/styles.module.css +15 -0
  118. package/lib-next/theme/ThemedImage/index.js +9 -13
  119. package/lib-next/theme/ThemedImage/styles.module.css +9 -2
  120. package/lib-next/theme/Toggle/index.js +65 -60
  121. package/lib-next/theme/Toggle/styles.module.css +30 -38
  122. package/lib-next/theme/prism-include-languages.js +17 -15
  123. package/package.json +31 -30
  124. package/src/admonitions.css +35 -0
  125. package/src/deps.d.ts +13 -0
  126. package/src/getSwizzleConfig.ts +101 -0
  127. package/src/index.ts +68 -66
  128. package/{lib-next/prism-include-languages.js → src/prism-include-languages.ts} +0 -0
  129. package/src/theme/Admonition/index.tsx +106 -0
  130. package/src/theme/AnnouncementBar/index.tsx +11 -20
  131. package/src/theme/AnnouncementBar/styles.module.css +26 -35
  132. package/src/theme/BackToTopButton/index.tsx +143 -0
  133. package/src/theme/BackToTopButton/styles.module.css +44 -0
  134. package/src/theme/BlogArchivePage/index.tsx +91 -0
  135. package/src/theme/BlogLayout/index.tsx +42 -0
  136. package/src/theme/BlogListPage/index.tsx +19 -28
  137. package/src/theme/BlogListPaginator/index.tsx +13 -15
  138. package/src/theme/BlogPostAuthor/index.tsx +44 -0
  139. package/src/theme/{LastUpdated → BlogPostAuthor}/styles.module.css +4 -2
  140. package/src/theme/BlogPostAuthors/index.tsx +49 -0
  141. package/src/theme/BlogPostAuthors/styles.module.css +21 -0
  142. package/src/theme/BlogPostItem/index.tsx +101 -91
  143. package/src/theme/BlogPostItem/styles.module.css +5 -1
  144. package/src/theme/BlogPostPage/index.tsx +77 -42
  145. package/src/theme/BlogPostPaginator/index.tsx +13 -19
  146. package/src/theme/BlogSidebar/index.tsx +23 -16
  147. package/src/theme/BlogSidebar/styles.module.css +8 -8
  148. package/src/theme/BlogTagsListPage/index.tsx +16 -66
  149. package/src/theme/BlogTagsPostsPage/index.tsx +43 -61
  150. package/src/theme/CodeBlock/index.tsx +77 -164
  151. package/src/theme/CodeBlock/styles.module.css +18 -13
  152. package/src/theme/Details/index.tsx +25 -0
  153. package/src/theme/Details/styles.module.css +13 -0
  154. package/src/theme/DocBreadcrumbs/index.tsx +91 -0
  155. package/src/theme/DocBreadcrumbs/styles.module.css +26 -0
  156. package/src/theme/DocCard/index.tsx +109 -0
  157. package/src/theme/DocCard/styles.module.css +43 -0
  158. package/src/theme/DocCardList/index.tsx +27 -0
  159. package/src/theme/DocCategoryGeneratedIndexPage/index.tsx +59 -0
  160. package/src/theme/DocCategoryGeneratedIndexPage/styles.module.css +18 -0
  161. package/src/theme/DocItem/index.tsx +66 -68
  162. package/src/theme/DocItem/styles.module.css +7 -13
  163. package/src/theme/DocItemFooter/index.tsx +91 -0
  164. package/src/theme/DocItemFooter/styles.module.css +18 -0
  165. package/src/theme/DocPage/index.tsx +58 -34
  166. package/src/theme/DocPage/styles.module.css +14 -26
  167. package/src/theme/DocPaginator/index.tsx +16 -24
  168. package/src/theme/DocSidebar/index.tsx +83 -297
  169. package/src/theme/DocSidebar/styles.module.css +5 -36
  170. package/src/theme/DocSidebarItem/index.tsx +283 -0
  171. package/src/theme/DocSidebarItem/styles.module.css +13 -0
  172. package/src/theme/DocSidebarItems/index.tsx +32 -0
  173. package/src/theme/DocTagDocListPage/index.tsx +89 -0
  174. package/src/theme/DocTagsListPage/index.tsx +39 -0
  175. package/src/theme/DocVersionBadge/index.tsx +35 -0
  176. package/src/theme/{DocVersionSuggestions → DocVersionBanner}/index.tsx +77 -47
  177. package/src/theme/EditThisPage/index.tsx +6 -1
  178. package/src/theme/ErrorPageContent.tsx +41 -0
  179. package/src/theme/Footer/index.tsx +119 -45
  180. package/src/theme/Footer/styles.module.css +2 -1
  181. package/src/theme/Heading/index.tsx +41 -35
  182. package/src/theme/Heading/styles.module.css +27 -2
  183. package/src/theme/IconArrow/index.tsx +3 -5
  184. package/src/theme/IconClose/index.tsx +26 -0
  185. package/src/theme/IconEdit/index.tsx +8 -9
  186. package/src/theme/IconExternalLink/index.tsx +30 -0
  187. package/{lib/theme/Heading → src/theme/IconExternalLink}/styles.module.css +4 -2
  188. package/src/theme/IconLanguage/index.tsx +4 -6
  189. package/src/theme/IconMenu/index.tsx +4 -9
  190. package/src/theme/LastUpdated/index.tsx +35 -39
  191. package/src/theme/Layout/index.tsx +5 -6
  192. package/src/theme/Layout/styles.css +6 -0
  193. package/src/theme/LayoutHead/index.tsx +26 -25
  194. package/src/theme/LayoutProviders/index.tsx +21 -10
  195. package/src/theme/Logo/index.tsx +21 -15
  196. package/src/theme/MDXComponents/index.tsx +56 -32
  197. package/{lib/theme/hooks → src/theme/MDXComponents}/styles.css +7 -2
  198. package/src/theme/MDXPage/index.tsx +23 -28
  199. package/{lib-next/theme/LastUpdated → src/theme/MDXPage}/styles.module.css +2 -2
  200. package/src/theme/Navbar/index.tsx +208 -68
  201. package/src/theme/Navbar/styles.module.css +11 -4
  202. package/src/theme/NavbarItem/DefaultNavbarItem.tsx +37 -194
  203. package/src/theme/NavbarItem/DocNavbarItem.tsx +33 -15
  204. package/src/theme/NavbarItem/DocSidebarNavbarItem.tsx +84 -0
  205. package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +44 -28
  206. package/src/theme/NavbarItem/DocsVersionNavbarItem.tsx +7 -3
  207. package/src/theme/NavbarItem/DropdownNavbarItem.tsx +181 -0
  208. package/src/theme/NavbarItem/{LocaleDropdownNavbarItem.tsx → LocaleDropdownNavbarItem/index.tsx} +16 -10
  209. package/src/theme/NavbarItem/LocaleDropdownNavbarItem/styles.module.css +11 -0
  210. package/src/theme/NavbarItem/NavbarNavLink.tsx +68 -0
  211. package/src/theme/NavbarItem/index.tsx +42 -19
  212. package/src/theme/NavbarItem/utils.ts +10 -0
  213. package/src/theme/NotFound.tsx +7 -5
  214. package/src/theme/PaginatorNavLink/index.tsx +20 -0
  215. package/src/theme/SearchBar.tsx +2 -1
  216. package/src/theme/SearchMetadata/index.tsx +34 -0
  217. package/src/theme/Seo/index.tsx +7 -4
  218. package/src/theme/SkipToContent/index.tsx +9 -8
  219. package/src/theme/SkipToContent/styles.module.css +8 -3
  220. package/src/theme/TOC/index.tsx +13 -44
  221. package/src/theme/TOC/styles.module.css +2 -2
  222. package/src/theme/TOCCollapsible/index.tsx +58 -0
  223. package/src/theme/TOCCollapsible/styles.module.css +50 -0
  224. package/src/theme/TOCInline/index.tsx +14 -35
  225. package/src/theme/TOCItems/index.tsx +100 -0
  226. package/src/theme/TabItem/index.tsx +5 -3
  227. package/src/theme/Tabs/index.tsx +115 -56
  228. package/src/theme/Tabs/styles.module.css +0 -13
  229. package/src/theme/Tag/index.tsx +29 -0
  230. package/src/theme/Tag/styles.module.css +70 -0
  231. package/src/theme/TagsListByLetter/index.tsx +43 -0
  232. package/src/theme/TagsListByLetter/styles.module.css +11 -0
  233. package/src/theme/TagsListInline/index.tsx +35 -0
  234. package/src/theme/TagsListInline/styles.module.css +15 -0
  235. package/src/theme/ThemedImage/index.tsx +10 -12
  236. package/src/theme/ThemedImage/styles.module.css +9 -2
  237. package/src/theme/Toggle/index.tsx +66 -62
  238. package/src/theme/Toggle/styles.module.css +30 -38
  239. package/src/theme/prism-include-languages.ts +20 -15
  240. package/src/theme-classic.d.ts +755 -0
  241. package/src/translations.ts +74 -54
  242. package/src/types.d.ts +0 -589
  243. package/{lib-next/validateThemeConfig.js → src/validateThemeConfig.ts} +184 -104
  244. package/babel.config.js +0 -35
  245. package/codeTranslations/README.md +0 -20
  246. package/codeTranslations/ar.json +0 -55
  247. package/codeTranslations/base.json +0 -108
  248. package/codeTranslations/da.json +0 -55
  249. package/codeTranslations/de.json +0 -55
  250. package/codeTranslations/es.json +0 -55
  251. package/codeTranslations/fa.json +0 -55
  252. package/codeTranslations/fil.json +0 -55
  253. package/codeTranslations/fr.json +0 -55
  254. package/codeTranslations/he.json +0 -55
  255. package/codeTranslations/hi.json +0 -55
  256. package/codeTranslations/ja.json +0 -55
  257. package/codeTranslations/ko.json +0 -55
  258. package/codeTranslations/pl.json +0 -55
  259. package/codeTranslations/pt-BR.json +0 -55
  260. package/codeTranslations/pt-PT.json +0 -55
  261. package/codeTranslations/ru.json +0 -55
  262. package/codeTranslations/tr.json +0 -55
  263. package/codeTranslations/vi.json +0 -55
  264. package/codeTranslations/zh-Hans.json +0 -55
  265. package/codeTranslations/zh-Hant.json +0 -55
  266. package/lib/__tests__/__snapshots__/translations.test.ts.snap +0 -116
  267. package/lib/__tests__/translations.test.js +0 -112
  268. package/lib/__tests__/validateThemeConfig.test.js +0 -333
  269. package/lib/theme/AnnouncementBar/index.js +0 -74
  270. package/lib/theme/AnnouncementBar/styles.module.css +0 -72
  271. package/lib/theme/BlogListPage/index.js +0 -71
  272. package/lib/theme/BlogListPaginator/index.js +0 -63
  273. package/lib/theme/BlogPostItem/index.js +0 -152
  274. package/lib/theme/BlogPostPage/index.js +0 -75
  275. package/lib/theme/BlogPostPaginator/index.js +0 -64
  276. package/lib/theme/BlogSidebar/index.js +0 -43
  277. package/lib/theme/BlogSidebar/styles.module.css +0 -46
  278. package/lib/theme/BlogTagsListPage/index.js +0 -81
  279. package/lib/theme/BlogTagsPostsPage/index.js +0 -104
  280. package/lib/theme/CodeBlock/index.js +0 -253
  281. package/lib/theme/CodeBlock/styles.module.css +0 -71
  282. package/lib/theme/DocItem/index.js +0 -120
  283. package/lib/theme/DocItem/styles.module.css +0 -28
  284. package/lib/theme/DocPage/index.js +0 -141
  285. package/lib/theme/DocPage/styles.module.css +0 -98
  286. package/lib/theme/DocPaginator/index.js +0 -63
  287. package/lib/theme/DocSidebar/index.js +0 -307
  288. package/lib/theme/DocSidebar/styles.module.css +0 -138
  289. package/lib/theme/DocVersionSuggestions/index.js +0 -111
  290. package/lib/theme/EditThisPage/index.js +0 -31
  291. package/lib/theme/Footer/index.js +0 -108
  292. package/lib/theme/Footer/styles.module.css +0 -15
  293. package/lib/theme/Heading/index.js +0 -60
  294. package/lib/theme/Heading/styles.css +0 -23
  295. package/lib/theme/IconArrow/index.js +0 -28
  296. package/lib/theme/IconEdit/index.js +0 -34
  297. package/lib/theme/IconLanguage/index.js +0 -29
  298. package/lib/theme/IconMenu/index.js +0 -31
  299. package/lib/theme/LastUpdated/index.js +0 -65
  300. package/lib/theme/Layout/index.js +0 -64
  301. package/lib/theme/LayoutHead/index.js +0 -144
  302. package/lib/theme/LayoutProviders/index.js +0 -34
  303. package/lib/theme/Logo/index.js +0 -59
  304. package/lib/theme/MDXComponents/index.js +0 -65
  305. package/lib/theme/MDXPage/index.js +0 -68
  306. package/lib/theme/Navbar/index.js +0 -147
  307. package/lib/theme/Navbar/styles.module.css +0 -20
  308. package/lib/theme/NavbarItem/DefaultNavbarItem.js +0 -195
  309. package/lib/theme/NavbarItem/DocNavbarItem.js +0 -55
  310. package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +0 -75
  311. package/lib/theme/NavbarItem/DocsVersionNavbarItem.js +0 -43
  312. package/lib/theme/NavbarItem/LocaleDropdownNavbarItem.js +0 -72
  313. package/lib/theme/NavbarItem/SearchNavbarItem.js +0 -28
  314. package/lib/theme/NavbarItem/index.js +0 -54
  315. package/lib/theme/NotFound.js +0 -50
  316. package/lib/theme/SearchBar.js +0 -15
  317. package/lib/theme/SearchMetadatas/index.js +0 -33
  318. package/lib/theme/Seo/index.js +0 -49
  319. package/lib/theme/SkipToContent/index.js +0 -61
  320. package/lib/theme/SkipToContent/styles.module.css +0 -16
  321. package/lib/theme/TOC/index.js +0 -59
  322. package/lib/theme/TOC/styles.module.css +0 -23
  323. package/lib/theme/TOCInline/index.js +0 -53
  324. package/lib/theme/TOCInline/styles.module.css +0 -12
  325. package/lib/theme/TabItem/index.js +0 -32
  326. package/lib/theme/Tabs/index.js +0 -150
  327. package/lib/theme/Tabs/styles.module.css +0 -23
  328. package/lib/theme/ThemeContext.js +0 -21
  329. package/lib/theme/ThemeProvider/index.js +0 -38
  330. package/lib/theme/ThemedImage/index.js +0 -48
  331. package/lib/theme/ThemedImage/styles.module.css +0 -11
  332. package/lib/theme/Toggle/index.js +0 -106
  333. package/lib/theme/Toggle/styles.module.css +0 -114
  334. package/lib/theme/UserPreferencesContext.js +0 -18
  335. package/lib/theme/UserPreferencesProvider/index.js +0 -44
  336. package/lib/theme/hooks/useAnnouncementBar.js +0 -63
  337. package/lib/theme/hooks/useContextualSearchFilters.js +0 -47
  338. package/lib/theme/hooks/useDocs.js +0 -18
  339. package/lib/theme/hooks/useHideableNavbar.js +0 -92
  340. package/lib/theme/hooks/useKeyboardNavigation.js +0 -45
  341. package/lib/theme/hooks/useLocationHash.js +0 -28
  342. package/lib/theme/hooks/useLockBodyScroll.js +0 -26
  343. package/lib/theme/hooks/usePrismTheme.js +0 -36
  344. package/lib/theme/hooks/useScrollPosition.js +0 -49
  345. package/lib/theme/hooks/useTOCHighlight.js +0 -87
  346. package/lib/theme/hooks/useTabGroupChoice.js +0 -53
  347. package/lib/theme/hooks/useTheme.js +0 -99
  348. package/lib/theme/hooks/useThemeContext.js +0 -31
  349. package/lib/theme/hooks/useUserPreferencesContext.js +0 -31
  350. package/lib/theme/hooks/useWindowSize.js +0 -55
  351. package/lib/theme/prism-include-languages.js +0 -39
  352. package/lib-next/__tests__/__snapshots__/translations.test.ts.snap +0 -116
  353. package/lib-next/__tests__/translations.test.js +0 -128
  354. package/lib-next/__tests__/validateThemeConfig.test.js +0 -333
  355. package/lib-next/index.js +0 -198
  356. package/lib-next/theme/Heading/styles.css +0 -23
  357. package/lib-next/theme/SearchMetadatas/index.js +0 -20
  358. package/lib-next/theme/ThemeContext.js +0 -9
  359. package/lib-next/theme/ThemeProvider/index.js +0 -25
  360. package/lib-next/theme/UserPreferencesProvider/index.js +0 -28
  361. package/lib-next/theme/hooks/useAnnouncementBar.js +0 -49
  362. package/lib-next/theme/hooks/useContextualSearchFilters.js +0 -41
  363. package/lib-next/theme/hooks/useDocs.js +0 -10
  364. package/lib-next/theme/hooks/useHideableNavbar.js +0 -79
  365. package/lib-next/theme/hooks/useKeyboardNavigation.js +0 -35
  366. package/lib-next/theme/hooks/useLocationHash.js +0 -20
  367. package/lib-next/theme/hooks/useLockBodyScroll.js +0 -18
  368. package/lib-next/theme/hooks/usePrismTheme.js +0 -20
  369. package/lib-next/theme/hooks/useScrollPosition.js +0 -38
  370. package/lib-next/theme/hooks/useTOCHighlight.js +0 -84
  371. package/lib-next/theme/hooks/useTabGroupChoice.js +0 -41
  372. package/lib-next/theme/hooks/useTheme.js +0 -82
  373. package/lib-next/theme/hooks/useThemeContext.js +0 -22
  374. package/lib-next/theme/hooks/useUserPreferencesContext.js +0 -22
  375. package/lib-next/theme/hooks/useWindowSize.js +0 -45
  376. package/lib-next/translations.js +0 -145
  377. package/lib-next/types.d.ts +0 -600
  378. package/src/__tests__/__snapshots__/translations.test.ts.snap +0 -116
  379. package/src/__tests__/translations.test.ts +0 -116
  380. package/src/__tests__/validateThemeConfig.test.js +0 -333
  381. package/src/prism-include-languages.js +0 -11
  382. package/src/theme/Heading/styles.css +0 -23
  383. package/src/theme/SearchMetadatas/index.tsx +0 -28
  384. package/src/theme/ThemeContext.ts +0 -15
  385. package/src/theme/ThemeProvider/index.tsx +0 -24
  386. package/src/theme/UserPreferencesContext.ts +0 -12
  387. package/src/theme/UserPreferencesProvider/index.tsx +0 -32
  388. package/src/theme/hooks/styles.css +0 -10
  389. package/src/theme/hooks/useAnnouncementBar.ts +0 -58
  390. package/src/theme/hooks/useContextualSearchFilters.ts +0 -52
  391. package/src/theme/hooks/useDocs.ts +0 -11
  392. package/src/theme/hooks/useHideableNavbar.ts +0 -85
  393. package/src/theme/hooks/useKeyboardNavigation.ts +0 -39
  394. package/src/theme/hooks/useLocationHash.ts +0 -25
  395. package/src/theme/hooks/useLockBodyScroll.ts +0 -20
  396. package/src/theme/hooks/usePrismTheme.ts +0 -22
  397. package/src/theme/hooks/useScrollPosition.ts +0 -45
  398. package/src/theme/hooks/useTOCHighlight.ts +0 -98
  399. package/src/theme/hooks/useTabGroupChoice.ts +0 -46
  400. package/src/theme/hooks/useTheme.ts +0 -92
  401. package/src/theme/hooks/useThemeContext.ts +0 -23
  402. package/src/theme/hooks/useUserPreferencesContext.ts +0 -25
  403. package/src/theme/hooks/useWindowSize.ts +0 -51
  404. package/src/validateThemeConfig.js +0 -317
  405. package/tsconfig.json +0 -12
  406. package/update-code-translations.js +0 -239
  407. 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',
@@ -28,10 +29,10 @@ const DEFAULT_COLOR_MODE_CONFIG = {
28
29
  },
29
30
  };
30
31
 
31
- const DEFAULT_CONFIG = {
32
+ export 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,84 +41,62 @@ const DEFAULT_CONFIG = {
40
41
  items: [],
41
42
  },
42
43
  hideableSidebar: false,
44
+ autoCollapseSidebarCategories: false,
45
+ tableOfContents: {
46
+ minHeadingLevel: 2,
47
+ maxHeadingLevel: 3,
48
+ },
43
49
  };
44
- exports.DEFAULT_CONFIG = DEFAULT_CONFIG;
45
50
 
46
51
  const NavbarItemPosition = Joi.string().equal('left', 'right').default('left');
47
52
 
48
- const BaseNavbarItemSchema = Joi.object({
49
- to: Joi.string(),
50
- href: URISchema,
53
+ const NavbarItemBaseSchema = Joi.object({
51
54
  label: Joi.string(),
52
55
  className: Joi.string(),
53
- prependBaseUrlToHref: Joi.string(),
54
56
  })
55
- // We allow any unknown attributes on the links
56
- // (users may need additional attributes like target, aria-role, data-customAttribute...)
57
+ // We allow any unknown attributes on the links (users may need additional
58
+ // attributes like target, aria-role, data-customAttribute...)
57
59
  .unknown();
58
60
 
59
- // TODO we should probably create a custom navbar item type "dropdown"
60
- // having this recursive structure is bad because we only support 2 levels
61
- // + parent/child don't have exactly the same props
62
- const DefaultNavbarItemSchema = BaseNavbarItemSchema.append({
63
- items: Joi.array().optional().items(BaseNavbarItemSchema),
64
- position: NavbarItemPosition,
61
+ const DefaultNavbarItemSchema = NavbarItemBaseSchema.append({
62
+ to: Joi.string(),
63
+ href: URISchema,
65
64
  activeBasePath: Joi.string(),
66
65
  activeBaseRegex: Joi.string(),
67
- });
68
- // TODO the dropdown parent item can have no href/to
69
- // should check should not apply to dropdown parent item
70
- // .xor('href', 'to');
66
+ prependBaseUrlToHref: Joi.bool(),
67
+ // This is only triggered in case of a nested dropdown
68
+ items: Joi.forbidden().messages({
69
+ 'any.unknown': 'Nested dropdowns are not allowed',
70
+ }),
71
+ })
72
+ .xor('href', 'to')
73
+ .messages({
74
+ 'object.xor': 'One and only one between "to" and "href" should be provided',
75
+ });
71
76
 
72
- const DocsVersionNavbarItemSchema = Joi.object({
77
+ const DocsVersionNavbarItemSchema = NavbarItemBaseSchema.append({
73
78
  type: Joi.string().equal('docsVersion').required(),
74
- position: NavbarItemPosition,
75
- label: Joi.string(),
76
79
  to: Joi.string(),
77
80
  docsPluginId: Joi.string(),
78
- className: Joi.string(),
79
81
  });
80
82
 
81
- const DocsVersionDropdownNavbarItemSchema = Joi.object({
82
- type: Joi.string().equal('docsVersionDropdown').required(),
83
- position: NavbarItemPosition,
84
- docsPluginId: Joi.string(),
85
- dropdownActiveClassDisabled: Joi.boolean(),
86
- dropdownItemsBefore: Joi.array().items(BaseNavbarItemSchema).default([]),
87
- dropdownItemsAfter: Joi.array().items(BaseNavbarItemSchema).default([]),
88
- className: Joi.string(),
89
- });
90
-
91
- const DocItemSchema = Joi.object({
83
+ const DocItemSchema = NavbarItemBaseSchema.append({
92
84
  type: Joi.string().equal('doc').required(),
93
- position: NavbarItemPosition,
94
85
  docId: Joi.string().required(),
95
- label: Joi.string(),
96
86
  docsPluginId: Joi.string(),
97
- activeSidebarClassName: Joi.string().default('navbar__link--active'),
98
- className: Joi.string(),
99
87
  });
100
88
 
101
- const LocaleDropdownNavbarItemSchema = Joi.object({
102
- type: Joi.string().equal('localeDropdown').required(),
103
- position: NavbarItemPosition,
104
- dropdownItemsBefore: Joi.array().items(BaseNavbarItemSchema).default([]),
105
- dropdownItemsAfter: Joi.array().items(BaseNavbarItemSchema).default([]),
106
- className: Joi.string(),
107
- });
108
-
109
- const SearchItemSchema = Joi.object({
110
- type: Joi.string().equal('search').required(),
111
- position: NavbarItemPosition,
89
+ const DocSidebarItemSchema = NavbarItemBaseSchema.append({
90
+ type: Joi.string().equal('docSidebar').required(),
91
+ sidebarId: Joi.string().required(),
92
+ docsPluginId: Joi.string(),
112
93
  });
113
94
 
114
- // Can this be made easier? :/
115
- const isOfType = (type) => {
116
- let typeSchema = Joi.string().required();
95
+ const itemWithType = (type: string | undefined) => {
117
96
  // because equal(undefined) is not supported :/
118
- if (type) {
119
- typeSchema = typeSchema.equal(type);
120
- }
97
+ const typeSchema = type
98
+ ? Joi.string().required().equal(type)
99
+ : Joi.string().forbidden();
121
100
  return Joi.object({
122
101
  type: typeSchema,
123
102
  })
@@ -125,58 +104,113 @@ const isOfType = (type) => {
125
104
  .required();
126
105
  };
127
106
 
128
- const NavbarItemSchema = Joi.object().when({
107
+ const DropdownSubitemSchema = Joi.object({
108
+ position: Joi.forbidden(),
109
+ }).when('.', {
129
110
  switch: [
130
111
  {
131
- is: isOfType('docsVersion'),
112
+ is: itemWithType('docsVersion'),
132
113
  then: DocsVersionNavbarItemSchema,
133
114
  },
134
115
  {
135
- is: isOfType('docsVersionDropdown'),
136
- then: DocsVersionDropdownNavbarItemSchema,
137
- },
138
- {
139
- is: isOfType('doc'),
116
+ is: itemWithType('doc'),
140
117
  then: DocItemSchema,
141
118
  },
142
119
  {
143
- is: isOfType('localeDropdown'),
144
- then: LocaleDropdownNavbarItemSchema,
120
+ is: itemWithType('docSidebar'),
121
+ then: DocSidebarItemSchema,
145
122
  },
146
123
  {
147
- is: isOfType('search'),
148
- then: SearchItemSchema,
124
+ is: itemWithType(undefined),
125
+ then: DefaultNavbarItemSchema,
149
126
  },
150
127
  {
151
- is: isOfType(undefined),
128
+ is: Joi.alternatives().try(
129
+ itemWithType('dropdown'),
130
+ itemWithType('docsVersionDropdown'),
131
+ itemWithType('localeDropdown'),
132
+ itemWithType('search'),
133
+ ),
152
134
  then: Joi.forbidden().messages({
153
- 'any.unknown': 'Bad navbar item type {.type}',
135
+ 'any.unknown': 'Nested dropdowns are not allowed',
154
136
  }),
155
137
  },
156
138
  ],
157
- otherwise: DefaultNavbarItemSchema,
139
+ otherwise: Joi.forbidden().messages({
140
+ 'any.unknown': 'Bad navbar item type {.type}',
141
+ }),
158
142
  });
159
143
 
160
- /*
161
- const NavbarItemSchema = Joi.object({
162
- type: Joi.string().only(['docsVersion'])
163
- })
164
- .when(Joi.object({ type: 'docsVersion' }).unknown(), {
165
- then: Joi.object({ pepperoni: Joi.boolean() })
166
- })
167
- .when(Joi.object().unknown(), {
168
- then: Joi.object({ croutons: Joi.boolean() })
169
- })
144
+ const DropdownNavbarItemSchema = NavbarItemBaseSchema.append({
145
+ items: Joi.array().items(DropdownSubitemSchema).required(),
146
+ });
170
147
 
171
- */
148
+ const DocsVersionDropdownNavbarItemSchema = NavbarItemBaseSchema.append({
149
+ type: Joi.string().equal('docsVersionDropdown').required(),
150
+ docsPluginId: Joi.string(),
151
+ dropdownActiveClassDisabled: Joi.boolean(),
152
+ dropdownItemsBefore: Joi.array().items(DropdownSubitemSchema).default([]),
153
+ dropdownItemsAfter: Joi.array().items(DropdownSubitemSchema).default([]),
154
+ });
172
155
 
173
- /*
174
- const NavbarItemSchema = Joi.object().when('type', {
175
- is: Joi.valid('docsVersion'),
176
- then: DocsVersionNavbarItemSchema,
177
- otherwise: DefaultNavbarItemSchema,
156
+ const LocaleDropdownNavbarItemSchema = NavbarItemBaseSchema.append({
157
+ type: Joi.string().equal('localeDropdown').required(),
158
+ dropdownItemsBefore: Joi.array().items(DropdownSubitemSchema).default([]),
159
+ dropdownItemsAfter: Joi.array().items(DropdownSubitemSchema).default([]),
160
+ });
161
+
162
+ const SearchItemSchema = Joi.object({
163
+ type: Joi.string().equal('search').required(),
164
+ });
165
+
166
+ const NavbarItemSchema = Joi.object({
167
+ position: NavbarItemPosition,
168
+ }).when('.', {
169
+ switch: [
170
+ {
171
+ is: itemWithType('docsVersion'),
172
+ then: DocsVersionNavbarItemSchema,
173
+ },
174
+ {
175
+ is: itemWithType('dropdown'),
176
+ then: DropdownNavbarItemSchema,
177
+ },
178
+ {
179
+ is: itemWithType('docsVersionDropdown'),
180
+ then: DocsVersionDropdownNavbarItemSchema,
181
+ },
182
+ {
183
+ is: itemWithType('doc'),
184
+ then: DocItemSchema,
185
+ },
186
+ {
187
+ is: itemWithType('docSidebar'),
188
+ then: DocSidebarItemSchema,
189
+ },
190
+ {
191
+ is: itemWithType('localeDropdown'),
192
+ then: LocaleDropdownNavbarItemSchema,
193
+ },
194
+ {
195
+ is: itemWithType('search'),
196
+ then: SearchItemSchema,
197
+ },
198
+ {
199
+ is: itemWithType(undefined),
200
+ then: Joi.object().when('.', {
201
+ // Dropdown item can be specified without type field
202
+ is: Joi.object({
203
+ items: Joi.array().required(),
204
+ }).unknown(),
205
+ then: DropdownNavbarItemSchema,
206
+ otherwise: DefaultNavbarItemSchema,
207
+ }),
208
+ },
209
+ ],
210
+ otherwise: Joi.forbidden().messages({
211
+ 'any.unknown': 'Bad navbar item type {.type}',
212
+ }),
178
213
  });
179
- */
180
214
 
181
215
  const ColorModeSchema = Joi.object({
182
216
  defaultMode: Joi.string()
@@ -221,22 +255,22 @@ const FooterLinkItemSchema = Joi.object({
221
255
  .with('to', 'label')
222
256
  .with('href', 'label')
223
257
  .nand('html', 'label')
224
- // We allow any unknown attributes on the links
225
- // (users may need additional attributes like target, aria-role, data-customAttribute...)
258
+ // We allow any unknown attributes on the links (users may need additional
259
+ // attributes like target, aria-role, data-customAttribute...)
226
260
  .unknown();
227
261
 
228
262
  const CustomCssSchema = Joi.alternatives()
229
263
  .try(Joi.array().items(Joi.string().required()), Joi.string().required())
230
264
  .optional();
231
265
 
232
- const ThemeConfigSchema = Joi.object({
266
+ export const ThemeConfigSchema = Joi.object({
233
267
  // TODO temporary (@alpha-58)
234
- disableDarkMode: Joi.any().forbidden(false).messages({
268
+ disableDarkMode: Joi.any().forbidden().messages({
235
269
  'any.unknown':
236
270
  'disableDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.disableSwitch = true',
237
271
  }),
238
272
  // TODO temporary (@alpha-58)
239
- defaultDarkMode: Joi.any().forbidden(false).messages({
273
+ defaultDarkMode: Joi.any().forbidden().messages({
240
274
  'any.unknown':
241
275
  'defaultDarkMode theme config is deprecated. Please use the new colorMode attribute. You likely want: config.themeConfig.colorMode.defaultMode = "dark"',
242
276
  }),
@@ -244,14 +278,20 @@ const ThemeConfigSchema = Joi.object({
244
278
  colorMode: ColorModeSchema,
245
279
  image: Joi.string(),
246
280
  docs: DocsSchema,
247
- metadatas: Joi.array()
281
+ metadata: Joi.array()
248
282
  .items(HtmlMetadataSchema)
249
- .default(DEFAULT_CONFIG.metadatas),
283
+ .default(DEFAULT_CONFIG.metadata),
284
+ // cSpell:ignore metadatas
285
+ metadatas: Joi.any().forbidden().messages({
286
+ 'any.unknown':
287
+ // cSpell:ignore metadatas
288
+ 'themeConfig.metadatas has been renamed as themeConfig.metadata. See https://github.com/facebook/docusaurus/pull/5871',
289
+ }),
250
290
  announcementBar: Joi.object({
251
291
  id: Joi.string().default('announcement-bar'),
252
- content: Joi.string(),
253
- backgroundColor: Joi.string().default('#fff'),
254
- textColor: Joi.string().default('#000'),
292
+ content: Joi.string().required(),
293
+ backgroundColor: Joi.string(),
294
+ textColor: Joi.string(),
255
295
  isCloseable: Joi.bool().default(true),
256
296
  }).optional(),
257
297
  navbar: Joi.object({
@@ -270,6 +310,8 @@ const ThemeConfigSchema = Joi.object({
270
310
  alt: Joi.string().allow(''),
271
311
  src: Joi.string().required(),
272
312
  srcDark: Joi.string(),
313
+ width: Joi.alternatives().try(Joi.string(), Joi.number()),
314
+ height: Joi.alternatives().try(Joi.string(), Joi.number()),
273
315
  href: Joi.string(),
274
316
  target: Joi.string(),
275
317
  }),
@@ -280,16 +322,24 @@ const ThemeConfigSchema = Joi.object({
280
322
  alt: Joi.string().allow(''),
281
323
  src: Joi.string(),
282
324
  srcDark: Joi.string(),
325
+ // TODO infer this from reading the image
326
+ width: Joi.alternatives().try(Joi.string(), Joi.number()),
327
+ height: Joi.alternatives().try(Joi.string(), Joi.number()),
283
328
  href: Joi.string(),
284
329
  }),
285
330
  copyright: Joi.string(),
286
- links: Joi.array()
287
- .items(
331
+ links: Joi.alternatives(
332
+ Joi.array().items(
288
333
  Joi.object({
289
- title: Joi.string().allow(null),
334
+ title: Joi.string().allow(null).default(null),
290
335
  items: Joi.array().items(FooterLinkItemSchema).default([]),
291
336
  }),
292
- )
337
+ ),
338
+ Joi.array().items(FooterLinkItemSchema),
339
+ )
340
+ .messages({
341
+ '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`,
342
+ })
293
343
  .default([]),
294
344
  }).optional(),
295
345
  prism: Joi.object({
@@ -309,9 +359,39 @@ const ThemeConfigSchema = Joi.object({
309
359
  .default(DEFAULT_CONFIG.prism)
310
360
  .unknown(),
311
361
  hideableSidebar: Joi.bool().default(DEFAULT_CONFIG.hideableSidebar),
362
+ autoCollapseSidebarCategories: Joi.bool().default(
363
+ DEFAULT_CONFIG.autoCollapseSidebarCategories,
364
+ ),
365
+ sidebarCollapsible: Joi.forbidden().messages({
366
+ 'any.unknown':
367
+ 'The themeConfig.sidebarCollapsible has been moved to docs plugin options. See: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs',
368
+ }),
369
+ tableOfContents: Joi.object({
370
+ minHeadingLevel: Joi.number()
371
+ .default(DEFAULT_CONFIG.tableOfContents.minHeadingLevel)
372
+ .when('maxHeadingLevel', {
373
+ is: Joi.exist(),
374
+ then: Joi.number()
375
+ .integer()
376
+ .min(2)
377
+ .max(6)
378
+ .max(Joi.ref('maxHeadingLevel')),
379
+ otherwise: Joi.number().integer().min(2).max(6),
380
+ }),
381
+ maxHeadingLevel: Joi.number()
382
+ .integer()
383
+ .min(2)
384
+ .max(6)
385
+ .default(DEFAULT_CONFIG.tableOfContents.maxHeadingLevel),
386
+ }).default(DEFAULT_CONFIG.tableOfContents),
312
387
  });
313
- exports.ThemeConfigSchema = ThemeConfigSchema;
314
388
 
315
- exports.validateThemeConfig = ({validate, themeConfig}) => {
389
+ export function validateThemeConfig({
390
+ validate,
391
+ themeConfig,
392
+ }: {
393
+ validate: Validate<ThemeConfig>;
394
+ themeConfig: ThemeConfig;
395
+ }): ValidationResult<ThemeConfig> {
316
396
  return validate(ThemeConfigSchema, themeConfig);
317
- };
397
+ }
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,55 +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.blog.paginator.navAriaLabel": "التنقل في صفحة قائمة المدونة",
24
- "theme.blog.paginator.newerEntries": "إدخالات أحدث",
25
- "theme.blog.paginator.olderEntries": "إدخالات أقدم",
26
- "theme.blog.post.paginator.navAriaLabel": "التنقل في صفحة مقالات المدونة",
27
- "theme.blog.post.paginator.newerPost": "مقالات أحدث",
28
- "theme.blog.post.paginator.olderPost": "مقالات أقدم",
29
- "theme.blog.post.plurals": "مقاله واحده|{count} مقالات",
30
- "theme.blog.post.readMore": "اقرأ المزيد",
31
- "theme.blog.post.readingTime.plurals": "{readingTime} دقائق قراءة|{readingTime} دقائق قراءة",
32
- "theme.blog.tagTitle": "{nPosts} موسومة ب \"{tagName}\"",
33
- "theme.common.editThisPage": "تعديل هذه الصفحة",
34
- "theme.common.headingLinkTitle": "ارتباط مباشر بالعنوان",
35
- "theme.common.skipToMainContent": "انتقل إلى المحتوى الرئيسي",
36
- "theme.docs.paginator.navAriaLabel": "التنقل بين صفحات المستندات",
37
- "theme.docs.paginator.next": "التالى",
38
- "theme.docs.paginator.previous": "السابق",
39
- "theme.docs.sidebar.collapseButtonAriaLabel": "طي الشريط الجانبي",
40
- "theme.docs.sidebar.collapseButtonTitle": "طي الشريط الجانبي",
41
- "theme.docs.sidebar.expandButtonAriaLabel": "توسيع الشريط الجانبي",
42
- "theme.docs.sidebar.expandButtonTitle": "توسيع الشريط الجانبي",
43
- "theme.docs.sidebar.responsiveCloseButtonLabel": "إغلاق القائمة",
44
- "theme.docs.sidebar.responsiveOpenButtonLabel": "فتح القائمة",
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.tags.tagsListLabel": "الوسوم:",
53
- "theme.tags.tagsPageLink": "عرض كل الوسوم",
54
- "theme.tags.tagsPageTitle": "الوسوم"
55
- }
@@ -1,108 +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.blog.paginator.navAriaLabel": "Blog list page navigation",
45
- "theme.blog.paginator.navAriaLabel___DESCRIPTION": "The ARIA label for the blog pagination",
46
- "theme.blog.paginator.newerEntries": "Newer Entries",
47
- "theme.blog.paginator.newerEntries___DESCRIPTION": "The label used to navigate to the newer blog posts page (previous page)",
48
- "theme.blog.paginator.olderEntries": "Older Entries",
49
- "theme.blog.paginator.olderEntries___DESCRIPTION": "The label used to navigate to the older blog posts page (next page)",
50
- "theme.blog.post.paginator.navAriaLabel": "Blog post page navigation",
51
- "theme.blog.post.paginator.navAriaLabel___DESCRIPTION": "The ARIA label for the blog posts pagination",
52
- "theme.blog.post.paginator.newerPost": "Newer Post",
53
- "theme.blog.post.paginator.newerPost___DESCRIPTION": "The blog post button label to navigate to the newer/previous post",
54
- "theme.blog.post.paginator.olderPost": "Older Post",
55
- "theme.blog.post.paginator.olderPost___DESCRIPTION": "The blog post button label to navigate to the older/next post",
56
- "theme.blog.post.plurals": "One post|{count} posts",
57
- "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)",
58
- "theme.blog.post.readMore": "Read More",
59
- "theme.blog.post.readMore___DESCRIPTION": "The label used in blog post item excerpts to link to full blog posts",
60
- "theme.blog.post.readingTime.plurals": "One min read|{readingTime} min read",
61
- "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)",
62
- "theme.blog.tagTitle": "{nPosts} tagged with \"{tagName}\"",
63
- "theme.blog.tagTitle___DESCRIPTION": "The title of the page for a blog tag",
64
- "theme.common.editThisPage": "Edit this page",
65
- "theme.common.editThisPage___DESCRIPTION": "The link label to edit the current page",
66
- "theme.common.headingLinkTitle": "Direct link to heading",
67
- "theme.common.headingLinkTitle___DESCRIPTION": "Title for link to heading",
68
- "theme.common.skipToMainContent": "Skip to main content",
69
- "theme.common.skipToMainContent___DESCRIPTION": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",
70
- "theme.docs.paginator.navAriaLabel": "Docs pages navigation",
71
- "theme.docs.paginator.navAriaLabel___DESCRIPTION": "The ARIA label for the docs pagination",
72
- "theme.docs.paginator.next": "Next",
73
- "theme.docs.paginator.next___DESCRIPTION": "The label used to navigate to the next doc",
74
- "theme.docs.paginator.previous": "Previous",
75
- "theme.docs.paginator.previous___DESCRIPTION": "The label used to navigate to the previous doc",
76
- "theme.docs.sidebar.collapseButtonAriaLabel": "Collapse sidebar",
77
- "theme.docs.sidebar.collapseButtonAriaLabel___DESCRIPTION": "The title attribute for collapse button of doc sidebar",
78
- "theme.docs.sidebar.collapseButtonTitle": "Collapse sidebar",
79
- "theme.docs.sidebar.collapseButtonTitle___DESCRIPTION": "The title attribute for collapse button of doc sidebar",
80
- "theme.docs.sidebar.expandButtonAriaLabel": "Expand sidebar",
81
- "theme.docs.sidebar.expandButtonAriaLabel___DESCRIPTION": "The ARIA label and title attribute for expand button of doc sidebar",
82
- "theme.docs.sidebar.expandButtonTitle": "Expand sidebar",
83
- "theme.docs.sidebar.expandButtonTitle___DESCRIPTION": "The ARIA label and title attribute for expand button of doc sidebar",
84
- "theme.docs.sidebar.responsiveCloseButtonLabel": "Close menu",
85
- "theme.docs.sidebar.responsiveCloseButtonLabel___DESCRIPTION": "The ARIA label for close button of mobile doc sidebar",
86
- "theme.docs.sidebar.responsiveOpenButtonLabel": "Open menu",
87
- "theme.docs.sidebar.responsiveOpenButtonLabel___DESCRIPTION": "The ARIA label for open button of mobile 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 userd to tell the user that he's browsing an unmaintained doc 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.tags.tagsListLabel": "Tags:",
103
- "theme.tags.tagsListLabel___DESCRIPTION": "The label alongside a tag list",
104
- "theme.tags.tagsPageLink": "View All Tags",
105
- "theme.tags.tagsPageLink___DESCRIPTION": "The label of the link targeting the tag list page",
106
- "theme.tags.tagsPageTitle": "Tags",
107
- "theme.tags.tagsPageTitle___DESCRIPTION": "The title of the tag list page"
108
- }