@docusaurus/theme-classic 2.0.0-beta.18 → 2.0.0-beta.19

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 (204) hide show
  1. package/lib/admonitions.css +4 -0
  2. package/lib/default.css +3038 -0
  3. package/lib/getSwizzleConfig.js +9 -2
  4. package/lib/index.js +4 -4
  5. package/lib/nprogress.css +41 -0
  6. package/lib/nprogress.js +46 -0
  7. package/lib/theme-classic.d.ts +315 -33
  8. package/lib/validateThemeConfig.js +72 -14
  9. package/lib-next/theme/BackToTopButton/index.js +6 -102
  10. package/lib-next/theme/BlogLayout/index.js +1 -5
  11. package/lib-next/theme/BlogListPaginator/index.js +25 -28
  12. package/lib-next/theme/BlogPostAuthor/index.js +3 -6
  13. package/lib-next/theme/BlogPostItem/styles.module.css +9 -0
  14. package/lib-next/theme/BlogPostPaginator/index.js +25 -28
  15. package/lib-next/theme/BlogSidebar/Desktop/index.js +41 -0
  16. package/lib-next/theme/BlogSidebar/{styles.module.css → Desktop/styles.module.css} +1 -2
  17. package/lib-next/theme/BlogSidebar/Mobile/index.js +36 -0
  18. package/lib-next/theme/BlogSidebar/index.js +11 -31
  19. package/lib-next/theme/BlogTagsListPage/index.js +2 -3
  20. package/lib-next/theme/BlogTagsPostsPage/index.js +4 -6
  21. package/lib-next/theme/CodeBlock/Container/index.js +29 -0
  22. package/lib-next/theme/CodeBlock/Container/styles.module.css +14 -0
  23. package/lib-next/theme/CodeBlock/Content/Element.js +23 -0
  24. package/lib-next/theme/CodeBlock/Content/String.js +104 -0
  25. package/{src/theme/CodeBlock → lib-next/theme/CodeBlock/Content}/styles.module.css +39 -9
  26. package/lib-next/theme/CodeBlock/CopyButton/index.js +3 -2
  27. package/lib-next/theme/CodeBlock/CopyButton/styles.module.css +0 -19
  28. package/lib-next/theme/CodeBlock/Line/index.js +49 -0
  29. package/lib-next/theme/CodeBlock/Line/styles.module.css +51 -0
  30. package/lib-next/theme/CodeBlock/WordWrapButton/index.js +40 -0
  31. package/lib-next/theme/CodeBlock/WordWrapButton/styles.module.css +15 -0
  32. package/lib-next/theme/CodeBlock/index.js +27 -133
  33. package/lib-next/theme/Details/index.js +1 -1
  34. package/lib-next/theme/DocBreadcrumbs/index.js +50 -23
  35. package/lib-next/theme/DocBreadcrumbs/styles.module.css +8 -0
  36. package/lib-next/theme/DocCardList/index.js +6 -4
  37. package/lib-next/theme/DocCategoryGeneratedIndexPage/index.js +3 -3
  38. package/lib-next/theme/DocCategoryGeneratedIndexPage/styles.module.css +8 -0
  39. package/lib-next/theme/DocItem/index.js +1 -1
  40. package/lib-next/theme/DocItem/styles.module.css +6 -0
  41. package/lib-next/theme/DocPage/Layout/Main/index.js +29 -0
  42. package/lib-next/theme/DocPage/Layout/Main/styles.module.css +28 -0
  43. package/lib-next/theme/DocPage/Layout/Sidebar/ExpandButton/index.js +34 -0
  44. package/lib-next/theme/DocPage/Layout/Sidebar/ExpandButton/styles.module.css +33 -0
  45. package/lib-next/theme/DocPage/Layout/Sidebar/index.js +68 -0
  46. package/lib-next/theme/DocPage/Layout/Sidebar/index.module.css +32 -0
  47. package/lib-next/theme/DocPage/Layout/index.js +34 -0
  48. package/lib-next/theme/{BlogPostAuthor/styles.module.css → DocPage/Layout/index.module.css} +6 -3
  49. package/lib-next/theme/DocPage/index.js +28 -146
  50. package/lib-next/theme/DocPaginator/index.js +25 -28
  51. package/lib-next/theme/DocSidebar/Desktop/CollapseButton/styles.module.css +11 -9
  52. package/lib-next/theme/DocSidebar/Desktop/Content/styles.module.css +6 -0
  53. package/lib-next/theme/DocSidebar/Desktop/index.js +4 -2
  54. package/lib-next/theme/DocSidebarItem/Category.js +197 -0
  55. package/lib-next/theme/DocSidebarItem/Html.js +27 -0
  56. package/{src/theme/DocSidebarItem/styles.module.css → lib-next/theme/DocSidebarItem/Html.module.css} +0 -4
  57. package/lib-next/theme/DocSidebarItem/Link.js +53 -0
  58. package/{src/theme/MDXComponents/Ul.module.css → lib-next/theme/DocSidebarItem/Link.module.css} +2 -3
  59. package/lib-next/theme/DocSidebarItem/index.js +4 -246
  60. package/lib-next/theme/DocSidebarItems/index.js +1 -6
  61. package/lib-next/theme/DocTagDocListPage/index.js +3 -3
  62. package/lib-next/theme/DocVersionBanner/index.js +2 -2
  63. package/lib-next/theme/Footer/Links/MultiColumn/index.js +1 -1
  64. package/lib-next/theme/Heading/index.js +4 -20
  65. package/lib-next/theme/IconHome/index.js +17 -0
  66. package/lib-next/theme/LastUpdated/index.js +1 -0
  67. package/lib-next/theme/Layout/index.js +1 -1
  68. package/lib-next/theme/MDXComponents/Ul.js +2 -4
  69. package/lib-next/theme/Navbar/Content/index.js +6 -1
  70. package/lib-next/theme/Navbar/Logo/index.js +1 -1
  71. package/lib-next/theme/Navbar/Search/index.js +11 -0
  72. package/lib-next/theme/Navbar/Search/styles.module.css +20 -0
  73. package/lib-next/theme/NavbarItem/ComponentTypes.js +27 -0
  74. package/lib-next/theme/NavbarItem/DocNavbarItem.js +11 -28
  75. package/lib-next/theme/NavbarItem/DocSidebarNavbarItem.js +10 -42
  76. package/lib-next/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +25 -29
  77. package/lib-next/theme/NavbarItem/DocsVersionNavbarItem.js +2 -9
  78. package/lib-next/theme/NavbarItem/DropdownNavbarItem.js +4 -1
  79. package/lib-next/theme/NavbarItem/HtmlNavbarItem.js +30 -0
  80. package/lib-next/theme/NavbarItem/LocaleDropdownNavbarItem/index.js +5 -10
  81. package/lib-next/theme/NavbarItem/NavbarNavLink.js +49 -31
  82. package/lib-next/theme/NavbarItem/SearchNavbarItem.js +6 -1
  83. package/lib-next/theme/NavbarItem/index.js +4 -23
  84. package/lib-next/theme/NavbarItem/utils.js +2 -1
  85. package/lib-next/theme/PaginatorNavLink/index.js +8 -2
  86. package/lib-next/theme/SiteMetadata/index.js +8 -7
  87. package/lib-next/theme/SkipToContent/index.js +3 -29
  88. package/lib-next/theme/TOCCollapsible/CollapseButton.js +29 -0
  89. package/{src/theme/TOCCollapsible/styles.module.css → lib-next/theme/TOCCollapsible/CollapseButton.module.css} +1 -22
  90. package/lib-next/theme/TOCCollapsible/index.js +3 -13
  91. package/lib-next/theme/TOCCollapsible/index.module.css +31 -0
  92. package/lib-next/theme/TOCItems/Tree.js +40 -0
  93. package/lib-next/theme/TOCItems/index.js +3 -34
  94. package/lib-next/theme/TabItem/index.js +3 -1
  95. package/lib-next/theme/{MDXComponents/Ul.module.css → TabItem/styles.module.css} +2 -3
  96. package/lib-next/theme/Tabs/__tests__/index.test.js +3 -3
  97. package/lib-next/theme/Tabs/index.js +3 -3
  98. package/lib-next/theme/Tabs/styles.module.css +4 -0
  99. package/lib-next/theme/Tag/index.js +2 -3
  100. package/lib-next/theme/TagsListInline/index.js +1 -1
  101. package/package.json +23 -18
  102. package/src/admonitions.css +4 -0
  103. package/src/getSwizzleConfig.ts +10 -2
  104. package/src/index.ts +4 -3
  105. package/src/nprogress.css +41 -0
  106. package/src/nprogress.ts +31 -0
  107. package/src/theme/BackToTopButton/index.tsx +5 -112
  108. package/src/theme/BlogLayout/index.tsx +1 -5
  109. package/src/theme/BlogListPaginator/index.tsx +25 -28
  110. package/src/theme/BlogPostAuthor/index.tsx +3 -7
  111. package/src/theme/BlogPostItem/styles.module.css +9 -0
  112. package/src/theme/BlogPostPaginator/index.tsx +25 -28
  113. package/src/theme/BlogSidebar/Desktop/index.tsx +45 -0
  114. package/src/theme/BlogSidebar/{styles.module.css → Desktop/styles.module.css} +1 -2
  115. package/src/theme/BlogSidebar/Mobile/index.tsx +38 -0
  116. package/src/theme/BlogSidebar/index.tsx +10 -31
  117. package/src/theme/BlogTagsListPage/index.tsx +2 -3
  118. package/src/theme/BlogTagsPostsPage/index.tsx +8 -5
  119. package/src/theme/CodeBlock/Container/index.tsx +35 -0
  120. package/src/theme/CodeBlock/Container/styles.module.css +14 -0
  121. package/src/theme/CodeBlock/Content/Element.tsx +30 -0
  122. package/src/theme/CodeBlock/Content/String.tsx +111 -0
  123. package/{lib-next/theme/CodeBlock → src/theme/CodeBlock/Content}/styles.module.css +39 -9
  124. package/src/theme/CodeBlock/CopyButton/index.tsx +3 -2
  125. package/src/theme/CodeBlock/CopyButton/styles.module.css +0 -19
  126. package/src/theme/CodeBlock/Line/index.tsx +48 -0
  127. package/src/theme/CodeBlock/Line/styles.module.css +51 -0
  128. package/src/theme/CodeBlock/WordWrapButton/index.tsx +49 -0
  129. package/src/theme/CodeBlock/WordWrapButton/styles.module.css +15 -0
  130. package/src/theme/CodeBlock/index.tsx +29 -133
  131. package/src/theme/Details/index.tsx +1 -1
  132. package/src/theme/DocBreadcrumbs/index.tsx +50 -20
  133. package/src/theme/DocBreadcrumbs/styles.module.css +8 -0
  134. package/src/theme/DocCardList/index.tsx +5 -7
  135. package/src/theme/DocCategoryGeneratedIndexPage/index.tsx +3 -3
  136. package/src/theme/DocCategoryGeneratedIndexPage/styles.module.css +8 -0
  137. package/src/theme/DocItem/index.tsx +1 -1
  138. package/src/theme/DocItem/styles.module.css +6 -0
  139. package/src/theme/DocPage/Layout/Main/index.tsx +37 -0
  140. package/src/theme/DocPage/Layout/Main/styles.module.css +28 -0
  141. package/src/theme/DocPage/Layout/Sidebar/ExpandButton/index.tsx +40 -0
  142. package/src/theme/DocPage/Layout/Sidebar/ExpandButton/styles.module.css +33 -0
  143. package/src/theme/DocPage/Layout/Sidebar/index.module.css +32 -0
  144. package/src/theme/DocPage/Layout/Sidebar/index.tsx +74 -0
  145. package/src/theme/{BlogPostAuthor/styles.module.css → DocPage/Layout/index.module.css} +6 -3
  146. package/src/theme/DocPage/Layout/index.tsx +39 -0
  147. package/src/theme/DocPage/index.tsx +28 -157
  148. package/src/theme/DocPaginator/index.tsx +25 -28
  149. package/src/theme/DocSidebar/Desktop/CollapseButton/styles.module.css +11 -9
  150. package/src/theme/DocSidebar/Desktop/Content/styles.module.css +6 -0
  151. package/src/theme/DocSidebar/Desktop/index.tsx +4 -2
  152. package/src/theme/DocSidebarItem/Category.tsx +210 -0
  153. package/{lib-next/theme/DocSidebarItem/styles.module.css → src/theme/DocSidebarItem/Html.module.css} +0 -4
  154. package/src/theme/DocSidebarItem/Html.tsx +34 -0
  155. package/src/theme/DocSidebarItem/Link.module.css +10 -0
  156. package/src/theme/DocSidebarItem/Link.tsx +58 -0
  157. package/src/theme/DocSidebarItem/index.tsx +4 -259
  158. package/src/theme/DocSidebarItems/index.tsx +1 -6
  159. package/src/theme/DocTagDocListPage/index.tsx +3 -4
  160. package/src/theme/DocVersionBanner/index.tsx +2 -2
  161. package/src/theme/Footer/Links/MultiColumn/index.tsx +1 -1
  162. package/src/theme/Heading/index.tsx +4 -18
  163. package/src/theme/IconHome/index.tsx +20 -0
  164. package/src/theme/LastUpdated/index.tsx +1 -0
  165. package/src/theme/Layout/index.tsx +1 -1
  166. package/src/theme/MDXComponents/Details.tsx +2 -3
  167. package/src/theme/MDXComponents/Ul.tsx +2 -6
  168. package/src/theme/Navbar/Content/index.tsx +6 -1
  169. package/src/theme/Navbar/Logo/index.tsx +1 -1
  170. package/src/theme/Navbar/Search/index.tsx +15 -0
  171. package/src/theme/Navbar/Search/styles.module.css +20 -0
  172. package/src/theme/NavbarItem/ComponentTypes.tsx +32 -0
  173. package/src/theme/NavbarItem/DocNavbarItem.tsx +13 -32
  174. package/src/theme/NavbarItem/DocSidebarNavbarItem.tsx +9 -49
  175. package/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.tsx +26 -33
  176. package/src/theme/NavbarItem/DocsVersionNavbarItem.tsx +3 -10
  177. package/src/theme/NavbarItem/DropdownNavbarItem.tsx +4 -1
  178. package/src/theme/NavbarItem/HtmlNavbarItem.tsx +32 -0
  179. package/src/theme/NavbarItem/LocaleDropdownNavbarItem/index.tsx +5 -9
  180. package/src/theme/NavbarItem/NavbarNavLink.tsx +41 -25
  181. package/src/theme/NavbarItem/SearchNavbarItem.tsx +6 -1
  182. package/src/theme/NavbarItem/index.tsx +9 -38
  183. package/src/theme/NavbarItem/utils.ts +5 -2
  184. package/src/theme/PaginatorNavLink/index.tsx +8 -2
  185. package/src/theme/SiteMetadata/index.tsx +8 -8
  186. package/src/theme/SkipToContent/index.tsx +3 -29
  187. package/{lib-next/theme/TOCCollapsible/styles.module.css → src/theme/TOCCollapsible/CollapseButton.module.css} +1 -22
  188. package/src/theme/TOCCollapsible/CollapseButton.tsx +35 -0
  189. package/src/theme/TOCCollapsible/index.module.css +31 -0
  190. package/src/theme/TOCCollapsible/index.tsx +3 -14
  191. package/src/theme/TOCItems/Tree.tsx +46 -0
  192. package/src/theme/TOCItems/index.tsx +2 -41
  193. package/src/theme/TabItem/index.tsx +7 -1
  194. package/src/theme/TabItem/styles.module.css +10 -0
  195. package/src/theme/Tabs/index.tsx +3 -3
  196. package/src/theme/Tabs/styles.module.css +4 -0
  197. package/src/theme/Tag/index.tsx +2 -4
  198. package/src/theme/TagsListInline/index.tsx +1 -1
  199. package/src/theme-classic.d.ts +315 -33
  200. package/src/validateThemeConfig.ts +80 -13
  201. package/lib/types.d.ts +0 -11
  202. package/lib-next/theme/DocPage/styles.module.css +0 -82
  203. package/src/theme/DocPage/styles.module.css +0 -82
  204. package/src/types.d.ts +0 -11
@@ -5,6 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
+ import defaultPrismTheme from 'prism-react-renderer/themes/palenight';
8
9
  import {Joi, URISchema} from '@docusaurus/utils-validation';
9
10
  import type {
10
11
  ThemeConfig,
@@ -13,11 +14,21 @@ import type {
13
14
 
14
15
  const DEFAULT_DOCS_CONFIG = {
15
16
  versionPersistence: 'localStorage',
17
+ sidebar: {
18
+ hideable: false,
19
+ autoCollapseCategories: false,
20
+ },
16
21
  };
17
22
  const DocsSchema = Joi.object({
18
23
  versionPersistence: Joi.string()
19
24
  .equal('localStorage', 'none')
20
25
  .default(DEFAULT_DOCS_CONFIG.versionPersistence),
26
+ sidebar: Joi.object({
27
+ hideable: Joi.bool().default(DEFAULT_DOCS_CONFIG.sidebar.hideable),
28
+ autoCollapseCategories: Joi.bool().default(
29
+ DEFAULT_DOCS_CONFIG.sidebar.autoCollapseCategories,
30
+ ),
31
+ }).default(DEFAULT_DOCS_CONFIG.sidebar),
21
32
  }).default(DEFAULT_DOCS_CONFIG);
22
33
 
23
34
  const DEFAULT_COLOR_MODE_CONFIG = {
@@ -32,13 +43,19 @@ export const DEFAULT_CONFIG = {
32
43
  metadata: [],
33
44
  prism: {
34
45
  additionalLanguages: [],
46
+ theme: defaultPrismTheme,
47
+ magicComments: [
48
+ {
49
+ className: 'theme-code-block-highlighted-line',
50
+ line: 'highlight-next-line',
51
+ block: {start: 'highlight-start', end: 'highlight-end'},
52
+ },
53
+ ],
35
54
  },
36
55
  navbar: {
37
56
  hideOnScroll: false,
38
57
  items: [],
39
58
  },
40
- hideableSidebar: false,
41
- autoCollapseSidebarCategories: false,
42
59
  tableOfContents: {
43
60
  minHeadingLevel: 2,
44
61
  maxHeadingLevel: 3,
@@ -49,8 +66,10 @@ const NavbarItemPosition = Joi.string().equal('left', 'right').default('left');
49
66
 
50
67
  const NavbarItemBaseSchema = Joi.object({
51
68
  label: Joi.string(),
69
+ html: Joi.string(),
52
70
  className: Joi.string(),
53
71
  })
72
+ .nand('html', 'label')
54
73
  // We allow any unknown attributes on the links (users may need additional
55
74
  // attributes like target, aria-role, data-customAttribute...)
56
75
  .unknown();
@@ -89,11 +108,28 @@ const DocSidebarItemSchema = NavbarItemBaseSchema.append({
89
108
  docsPluginId: Joi.string(),
90
109
  });
91
110
 
92
- const itemWithType = (type: string | undefined) => {
93
- // because equal(undefined) is not supported :/
94
- const typeSchema = type
95
- ? Joi.string().required().equal(type)
96
- : Joi.string().forbidden();
111
+ const HtmlNavbarItemSchema = Joi.object({
112
+ className: Joi.string(),
113
+ type: Joi.string().equal('html').required(),
114
+ value: Joi.string().required(),
115
+ });
116
+
117
+ // A temporary workaround to allow users to add custom navbar items
118
+ // See https://github.com/facebook/docusaurus/issues/7227
119
+ const CustomNavbarItemRegexp = /custom-.*/;
120
+ const CustomNavbarItemSchema = Joi.object({
121
+ type: Joi.string().regex(CustomNavbarItemRegexp).required(),
122
+ }).unknown();
123
+
124
+ const itemWithType = (type: string | RegExp | undefined) => {
125
+ // Because equal(undefined) is not supported :/
126
+ const typeSchema =
127
+ // eslint-disable-next-line no-nested-ternary
128
+ type instanceof RegExp
129
+ ? Joi.string().required().regex(type)
130
+ : type
131
+ ? Joi.string().required().equal(type)
132
+ : Joi.string().forbidden();
97
133
  return Joi.object({
98
134
  type: typeSchema,
99
135
  })
@@ -121,6 +157,14 @@ const DropdownSubitemSchema = Joi.object({
121
157
  is: itemWithType(undefined),
122
158
  then: DefaultNavbarItemSchema,
123
159
  },
160
+ {
161
+ is: itemWithType('html'),
162
+ then: HtmlNavbarItemSchema,
163
+ },
164
+ {
165
+ is: itemWithType(CustomNavbarItemRegexp),
166
+ then: CustomNavbarItemSchema,
167
+ },
124
168
  {
125
169
  is: Joi.alternatives().try(
126
170
  itemWithType('dropdown'),
@@ -192,6 +236,14 @@ const NavbarItemSchema = Joi.object({
192
236
  is: itemWithType('search'),
193
237
  then: SearchItemSchema,
194
238
  },
239
+ {
240
+ is: itemWithType('html'),
241
+ then: HtmlNavbarItemSchema,
242
+ },
243
+ {
244
+ is: itemWithType(CustomNavbarItemRegexp),
245
+ then: CustomNavbarItemSchema,
246
+ },
195
247
  {
196
248
  is: itemWithType(undefined),
197
249
  then: Joi.object().when('.', {
@@ -223,7 +275,6 @@ const ColorModeSchema = Joi.object({
223
275
  }),
224
276
  }).default(DEFAULT_COLOR_MODE_CONFIG);
225
277
 
226
- // schema can probably be improved
227
278
  const HtmlMetadataSchema = Joi.object({
228
279
  id: Joi.string(),
229
280
  name: Joi.string(),
@@ -333,7 +384,7 @@ export const ThemeConfigSchema = Joi.object({
333
384
  theme: Joi.object({
334
385
  plain: Joi.alternatives().try(Joi.array(), Joi.object()).required(),
335
386
  styles: Joi.alternatives().try(Joi.array(), Joi.object()).required(),
336
- }),
387
+ }).default(DEFAULT_CONFIG.prism.theme),
337
388
  darkTheme: Joi.object({
338
389
  plain: Joi.alternatives().try(Joi.array(), Joi.object()).required(),
339
390
  styles: Joi.alternatives().try(Joi.array(), Joi.object()).required(),
@@ -342,13 +393,29 @@ export const ThemeConfigSchema = Joi.object({
342
393
  additionalLanguages: Joi.array()
343
394
  .items(Joi.string())
344
395
  .default(DEFAULT_CONFIG.prism.additionalLanguages),
396
+ magicComments: Joi.array()
397
+ .items(
398
+ Joi.object({
399
+ className: Joi.string().required(),
400
+ line: Joi.string(),
401
+ block: Joi.object({
402
+ start: Joi.string().required(),
403
+ end: Joi.string().required(),
404
+ }),
405
+ }).or('line', 'block'),
406
+ )
407
+ .default(DEFAULT_CONFIG.prism.magicComments),
345
408
  })
346
409
  .default(DEFAULT_CONFIG.prism)
347
410
  .unknown(),
348
- hideableSidebar: Joi.bool().default(DEFAULT_CONFIG.hideableSidebar),
349
- autoCollapseSidebarCategories: Joi.bool().default(
350
- DEFAULT_CONFIG.autoCollapseSidebarCategories,
351
- ),
411
+ hideableSidebar: Joi.forbidden().messages({
412
+ 'any.unknown':
413
+ 'themeConfig.hideableSidebar has been moved to themeConfig.docs.sidebar.hideable.',
414
+ }),
415
+ autoCollapseSidebarCategories: Joi.forbidden().messages({
416
+ 'any.unknown':
417
+ 'themeConfig.autoCollapseSidebarCategories has been moved to themeConfig.docs.sidebar.autoCollapseCategories.',
418
+ }),
352
419
  sidebarCollapsible: Joi.forbidden().messages({
353
420
  'any.unknown':
354
421
  'The themeConfig.sidebarCollapsible has been moved to docs plugin options. See: https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-docs',
package/lib/types.d.ts DELETED
@@ -1,11 +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
- /// <reference types="@docusaurus/module-type-aliases" />
9
- /// <reference types="@docusaurus/plugin-content-blog" />
10
- /// <reference types="@docusaurus/plugin-content-docs" />
11
- /// <reference types="@docusaurus/plugin-content-pages" />
@@ -1,82 +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
- :root {
9
- --doc-sidebar-width: 300px;
10
- --doc-sidebar-hidden-width: 30px;
11
- }
12
-
13
- .docPage,
14
- .docMainContainer {
15
- display: flex;
16
- width: 100%;
17
- }
18
-
19
- .docSidebarContainer {
20
- display: none;
21
- }
22
-
23
- @media (min-width: 997px) {
24
- .docMainContainer {
25
- flex-grow: 1;
26
- max-width: calc(100% - var(--doc-sidebar-width));
27
- }
28
-
29
- .docMainContainerEnhanced {
30
- max-width: calc(100% - var(--doc-sidebar-hidden-width));
31
- }
32
-
33
- .docSidebarContainer {
34
- display: block;
35
- width: var(--doc-sidebar-width);
36
- margin-top: calc(-1 * var(--ifm-navbar-height));
37
- border-right: 1px solid var(--ifm-toc-border-color);
38
- will-change: width;
39
- transition: width var(--ifm-transition-fast) ease;
40
- clip-path: inset(0);
41
- }
42
-
43
- .docSidebarContainerHidden {
44
- width: var(--doc-sidebar-hidden-width);
45
- cursor: pointer;
46
- }
47
-
48
- .collapsedDocSidebar {
49
- position: sticky;
50
- top: 0;
51
- height: 100%;
52
- max-height: 100vh;
53
- display: flex;
54
- align-items: center;
55
- justify-content: center;
56
- transition: background-color var(--ifm-transition-fast) ease;
57
- }
58
-
59
- .collapsedDocSidebar:hover,
60
- .collapsedDocSidebar:focus {
61
- background-color: var(--ifm-color-emphasis-200);
62
- }
63
-
64
- .expandSidebarButtonIcon {
65
- transform: rotate(0);
66
- }
67
-
68
- [dir='rtl'] .expandSidebarButtonIcon {
69
- transform: rotate(180deg);
70
- }
71
-
72
- [data-theme='dark'] .collapsedDocSidebar:hover,
73
- [data-theme='dark'] .collapsedDocSidebar:focus {
74
- background-color: var(--collapse-button-bg-color-dark);
75
- }
76
-
77
- .docItemWrapperEnhanced {
78
- max-width: calc(
79
- var(--ifm-container-width) + var(--doc-sidebar-width)
80
- ) !important;
81
- }
82
- }
@@ -1,82 +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
- :root {
9
- --doc-sidebar-width: 300px;
10
- --doc-sidebar-hidden-width: 30px;
11
- }
12
-
13
- .docPage,
14
- .docMainContainer {
15
- display: flex;
16
- width: 100%;
17
- }
18
-
19
- .docSidebarContainer {
20
- display: none;
21
- }
22
-
23
- @media (min-width: 997px) {
24
- .docMainContainer {
25
- flex-grow: 1;
26
- max-width: calc(100% - var(--doc-sidebar-width));
27
- }
28
-
29
- .docMainContainerEnhanced {
30
- max-width: calc(100% - var(--doc-sidebar-hidden-width));
31
- }
32
-
33
- .docSidebarContainer {
34
- display: block;
35
- width: var(--doc-sidebar-width);
36
- margin-top: calc(-1 * var(--ifm-navbar-height));
37
- border-right: 1px solid var(--ifm-toc-border-color);
38
- will-change: width;
39
- transition: width var(--ifm-transition-fast) ease;
40
- clip-path: inset(0);
41
- }
42
-
43
- .docSidebarContainerHidden {
44
- width: var(--doc-sidebar-hidden-width);
45
- cursor: pointer;
46
- }
47
-
48
- .collapsedDocSidebar {
49
- position: sticky;
50
- top: 0;
51
- height: 100%;
52
- max-height: 100vh;
53
- display: flex;
54
- align-items: center;
55
- justify-content: center;
56
- transition: background-color var(--ifm-transition-fast) ease;
57
- }
58
-
59
- .collapsedDocSidebar:hover,
60
- .collapsedDocSidebar:focus {
61
- background-color: var(--ifm-color-emphasis-200);
62
- }
63
-
64
- .expandSidebarButtonIcon {
65
- transform: rotate(0);
66
- }
67
-
68
- [dir='rtl'] .expandSidebarButtonIcon {
69
- transform: rotate(180deg);
70
- }
71
-
72
- [data-theme='dark'] .collapsedDocSidebar:hover,
73
- [data-theme='dark'] .collapsedDocSidebar:focus {
74
- background-color: var(--collapse-button-bg-color-dark);
75
- }
76
-
77
- .docItemWrapperEnhanced {
78
- max-width: calc(
79
- var(--ifm-container-width) + var(--doc-sidebar-width)
80
- ) !important;
81
- }
82
- }
package/src/types.d.ts DELETED
@@ -1,11 +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
- /// <reference types="@docusaurus/module-type-aliases" />
9
- /// <reference types="@docusaurus/plugin-content-blog" />
10
- /// <reference types="@docusaurus/plugin-content-docs" />
11
- /// <reference types="@docusaurus/plugin-content-pages" />