@docusaurus/theme-classic 0.0.0-4281 → 0.0.0-4282

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 (147) hide show
  1. package/lib/theme-classic.d.ts +3 -1
  2. package/package.json +12 -12
  3. package/src/index.ts +2 -5
  4. package/src/theme-classic.d.ts +3 -1
  5. package/babel.config.js +0 -35
  6. package/lib/__tests__/__snapshots__/translations.test.ts.snap +0 -116
  7. package/lib/__tests__/translations.test.js +0 -112
  8. package/lib/__tests__/validateThemeConfig.test.js +0 -607
  9. package/lib/theme/AnnouncementBar/index.js +0 -68
  10. package/lib/theme/AnnouncementBar/styles.module.css +0 -63
  11. package/lib/theme/BackToTopButton/index.js +0 -140
  12. package/lib/theme/BackToTopButton/styles.module.css +0 -42
  13. package/lib/theme/BlogArchivePage/index.js +0 -89
  14. package/lib/theme/BlogLayout/index.js +0 -51
  15. package/lib/theme/BlogListPage/index.js +0 -60
  16. package/lib/theme/BlogListPaginator/index.js +0 -63
  17. package/lib/theme/BlogPostAuthor/index.js +0 -51
  18. package/lib/theme/BlogPostAuthor/styles.module.css +0 -12
  19. package/lib/theme/BlogPostAuthors/index.js +0 -47
  20. package/lib/theme/BlogPostAuthors/styles.module.css +0 -11
  21. package/lib/theme/BlogPostItem/index.js +0 -152
  22. package/lib/theme/BlogPostItem/styles.module.css +0 -18
  23. package/lib/theme/BlogPostPage/index.js +0 -82
  24. package/lib/theme/BlogPostPaginator/index.js +0 -64
  25. package/lib/theme/BlogSidebar/index.js +0 -49
  26. package/lib/theme/BlogSidebar/styles.module.css +0 -44
  27. package/lib/theme/BlogTagsListPage/index.js +0 -40
  28. package/lib/theme/BlogTagsPostsPage/index.js +0 -86
  29. package/lib/theme/CodeBlock/index.js +0 -133
  30. package/lib/theme/CodeBlock/styles.module.css +0 -65
  31. package/lib/theme/Details/index.js +0 -30
  32. package/lib/theme/Details/styles.module.css +0 -13
  33. package/lib/theme/DocCard/index.js +0 -84
  34. package/lib/theme/DocCard/styles.module.css +0 -43
  35. package/lib/theme/DocCardList/index.js +0 -28
  36. package/lib/theme/DocCategoryGeneratedIndexPage/index.js +0 -57
  37. package/lib/theme/DocCategoryGeneratedIndexPage/styles.module.css +0 -18
  38. package/lib/theme/DocItem/index.js +0 -112
  39. package/lib/theme/DocItem/styles.module.css +0 -22
  40. package/lib/theme/DocItemFooter/index.js +0 -79
  41. package/lib/theme/DocItemFooter/styles.module.css +0 -18
  42. package/lib/theme/DocPage/index.js +0 -154
  43. package/lib/theme/DocPage/styles.module.css +0 -85
  44. package/lib/theme/DocPaginator/index.js +0 -62
  45. package/lib/theme/DocSidebar/index.js +0 -134
  46. package/lib/theme/DocSidebar/styles.module.css +0 -106
  47. package/lib/theme/DocSidebarItem/index.js +0 -209
  48. package/lib/theme/DocSidebarItem/styles.module.css +0 -19
  49. package/lib/theme/DocTagDocListPage/index.js +0 -89
  50. package/lib/theme/DocTagsListPage/index.js +0 -44
  51. package/lib/theme/DocVersionBadge/index.js +0 -34
  52. package/lib/theme/DocVersionBanner/index.js +0 -130
  53. package/lib/theme/EditThisPage/index.js +0 -33
  54. package/lib/theme/ErrorPageContent.js +0 -43
  55. package/lib/theme/Footer/index.js +0 -119
  56. package/lib/theme/Footer/styles.module.css +0 -15
  57. package/lib/theme/Heading/index.js +0 -71
  58. package/lib/theme/Heading/styles.css +0 -22
  59. package/lib/theme/Heading/styles.module.css +0 -19
  60. package/lib/theme/IconArrow/index.js +0 -28
  61. package/lib/theme/IconClose/index.js +0 -31
  62. package/lib/theme/IconEdit/index.js +0 -34
  63. package/lib/theme/IconEdit/styles.module.css +0 -11
  64. package/lib/theme/IconExternalLink/index.js +0 -30
  65. package/lib/theme/IconExternalLink/styles.module.css +0 -12
  66. package/lib/theme/IconLanguage/index.js +0 -29
  67. package/lib/theme/IconMenu/index.js +0 -30
  68. package/lib/theme/LastUpdated/index.js +0 -63
  69. package/lib/theme/Layout/index.js +0 -68
  70. package/lib/theme/Layout/styles.css +0 -27
  71. package/lib/theme/LayoutHead/index.js +0 -149
  72. package/lib/theme/LayoutProviders/index.js +0 -40
  73. package/lib/theme/Logo/index.js +0 -62
  74. package/lib/theme/MDXComponents/index.js +0 -106
  75. package/lib/theme/MDXComponents/styles.css +0 -11
  76. package/lib/theme/MDXPage/index.js +0 -67
  77. package/lib/theme/MDXPage/styles.module.css +0 -10
  78. package/lib/theme/Navbar/index.js +0 -267
  79. package/lib/theme/Navbar/styles.module.css +0 -27
  80. package/lib/theme/NavbarItem/DefaultNavbarItem.js +0 -113
  81. package/lib/theme/NavbarItem/DocNavbarItem.js +0 -62
  82. package/lib/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +0 -83
  83. package/lib/theme/NavbarItem/DocsVersionNavbarItem.js +0 -43
  84. package/lib/theme/NavbarItem/DropdownNavbarItem.js +0 -154
  85. package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/index.js +0 -68
  86. package/lib/theme/NavbarItem/LocaleDropdownNavbarItem/styles.module.css +0 -11
  87. package/lib/theme/NavbarItem/SearchNavbarItem.js +0 -28
  88. package/lib/theme/NavbarItem/index.js +0 -74
  89. package/lib/theme/NotFound.js +0 -57
  90. package/lib/theme/SearchBar.js +0 -15
  91. package/lib/theme/SearchMetadata/index.js +0 -33
  92. package/lib/theme/Seo/index.js +0 -52
  93. package/lib/theme/SkipToContent/index.js +0 -71
  94. package/lib/theme/SkipToContent/styles.module.css +0 -14
  95. package/lib/theme/TOC/index.js +0 -39
  96. package/lib/theme/TOC/styles.module.css +0 -23
  97. package/lib/theme/TOCCollapsible/index.js +0 -53
  98. package/lib/theme/TOCCollapsible/styles.module.css +0 -50
  99. package/lib/theme/TOCInline/index.js +0 -33
  100. package/lib/theme/TOCInline/styles.module.css +0 -12
  101. package/lib/theme/TOCItems/index.js +0 -78
  102. package/lib/theme/TabItem/index.js +0 -32
  103. package/lib/theme/Tabs/__tests__/index.test.js +0 -123
  104. package/lib/theme/Tabs/index.js +0 -173
  105. package/lib/theme/Tabs/styles.module.css +0 -10
  106. package/lib/theme/Tag/index.js +0 -40
  107. package/lib/theme/Tag/styles.module.css +0 -70
  108. package/lib/theme/TagsListByLetter/index.js +0 -48
  109. package/lib/theme/TagsListByLetter/styles.module.css +0 -11
  110. package/lib/theme/TagsListInline/index.js +0 -44
  111. package/lib/theme/TagsListInline/styles.module.css +0 -15
  112. package/lib/theme/ThemeContext.js +0 -21
  113. package/lib/theme/ThemeProvider/index.js +0 -43
  114. package/lib/theme/ThemedImage/index.js +0 -47
  115. package/lib/theme/ThemedImage/styles.module.css +0 -18
  116. package/lib/theme/Toggle/index.js +0 -91
  117. package/lib/theme/Toggle/styles.module.css +0 -105
  118. package/lib/theme/UserPreferencesContext.js +0 -18
  119. package/lib/theme/UserPreferencesProvider/index.js +0 -41
  120. package/lib/theme/hooks/styles.css +0 -10
  121. package/lib/theme/hooks/useDocs.js +0 -18
  122. package/lib/theme/hooks/useHideableNavbar.js +0 -74
  123. package/lib/theme/hooks/useKeyboardNavigation.js +0 -45
  124. package/lib/theme/hooks/useLockBodyScroll.js +0 -26
  125. package/lib/theme/hooks/usePrismTheme.js +0 -36
  126. package/lib/theme/hooks/useTabGroupChoice.js +0 -51
  127. package/lib/theme/hooks/useTheme.js +0 -97
  128. package/lib/theme/hooks/useThemeContext.js +0 -31
  129. package/lib/theme/hooks/useUserPreferencesContext.js +0 -31
  130. package/lib/theme/hooks/useWindowSize.js +0 -68
  131. package/lib/theme/prism-include-languages.js +0 -40
  132. package/lib-next/__tests__/__snapshots__/translations.test.ts.snap +0 -116
  133. package/lib-next/__tests__/translations.test.js +0 -128
  134. package/lib-next/__tests__/validateThemeConfig.test.js +0 -607
  135. package/lib-next/admonitions.css +0 -35
  136. package/lib-next/deps.d.ts +0 -13
  137. package/lib-next/index.js +0 -227
  138. package/lib-next/prism-include-languages.js +0 -9
  139. package/lib-next/theme-classic.d.ts +0 -794
  140. package/lib-next/translations.js +0 -141
  141. package/lib-next/types.d.ts +0 -11
  142. package/lib-next/validateThemeConfig.js +0 -344
  143. package/src/__tests__/__snapshots__/translations.test.ts.snap +0 -116
  144. package/src/__tests__/translations.test.ts +0 -116
  145. package/src/__tests__/validateThemeConfig.test.js +0 -607
  146. package/src/theme/Tabs/__tests__/index.test.tsx +0 -129
  147. package/tsconfig.json +0 -11
@@ -1,119 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _clsx = _interopRequireDefault(require("clsx"));
11
-
12
- var _Link = _interopRequireDefault(require("@docusaurus/Link"));
13
-
14
- var _themeCommon = require("@docusaurus/theme-common");
15
-
16
- var _useBaseUrl = _interopRequireDefault(require("@docusaurus/useBaseUrl"));
17
-
18
- var _isInternalUrl = _interopRequireDefault(require("@docusaurus/isInternalUrl"));
19
-
20
- var _stylesModule = _interopRequireDefault(require("./styles.module.css"));
21
-
22
- var _ThemedImage = _interopRequireDefault(require("@theme/ThemedImage"));
23
-
24
- var _IconExternalLink = _interopRequireDefault(require("@theme/IconExternalLink"));
25
-
26
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
27
-
28
- /**
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */
34
- function FooterLink({
35
- to,
36
- href,
37
- label,
38
- prependBaseUrlToHref,
39
- ...props
40
- }) {
41
- const toUrl = (0, _useBaseUrl.default)(to);
42
- const normalizedHref = (0, _useBaseUrl.default)(href, {
43
- forcePrependBaseUrl: true
44
- });
45
- return <_Link.default className="footer__link-item" {...href ? {
46
- href: prependBaseUrlToHref ? normalizedHref : href
47
- } : {
48
- to: toUrl
49
- }} {...props}>
50
- {href && !(0, _isInternalUrl.default)(href) ? <span>
51
- {label}
52
- <_IconExternalLink.default />
53
- </span> : label}
54
- </_Link.default>;
55
- }
56
-
57
- function FooterLogo({
58
- sources,
59
- alt,
60
- width,
61
- height
62
- }) {
63
- return <_ThemedImage.default className="footer__logo" alt={alt} sources={sources} width={width} height={height} />;
64
- }
65
-
66
- function Footer() {
67
- const {
68
- footer
69
- } = (0, _themeCommon.useThemeConfig)();
70
- const {
71
- copyright,
72
- links = [],
73
- logo = {}
74
- } = footer || {};
75
- const sources = {
76
- light: (0, _useBaseUrl.default)(logo.src),
77
- dark: (0, _useBaseUrl.default)(logo.srcDark || logo.src)
78
- };
79
-
80
- if (!footer) {
81
- return null;
82
- }
83
-
84
- return <footer className={(0, _clsx.default)('footer', {
85
- 'footer--dark': footer.style === 'dark'
86
- })}>
87
- <div className="container">
88
- {links && links.length > 0 && <div className="row footer__links">
89
- {links.map((linkItem, i) => <div key={i} className="col footer__col">
90
- {linkItem.title != null ? <div className="footer__title">{linkItem.title}</div> : null}
91
- {linkItem.items != null && Array.isArray(linkItem.items) && linkItem.items.length > 0 ? <ul className="footer__items">
92
- {linkItem.items.map((item, key) => item.html ? <li key={key} className="footer__item" // Developer provided the HTML, so assume it's safe.
93
- // eslint-disable-next-line react/no-danger
94
- dangerouslySetInnerHTML={{
95
- __html: item.html
96
- }} /> : <li key={item.href || item.to} className="footer__item">
97
- <FooterLink {...item} />
98
- </li>)}
99
- </ul> : null}
100
- </div>)}
101
- </div>}
102
- {(logo || copyright) && <div className="footer__bottom text--center">
103
- {logo && (logo.src || logo.srcDark) && <div className="margin-bottom--sm">
104
- {logo.href ? <_Link.default href={logo.href} className={_stylesModule.default.footerLogoLink}>
105
- <FooterLogo alt={logo.alt} sources={sources} width={logo.width} height={logo.height} />
106
- </_Link.default> : <FooterLogo alt={logo.alt} sources={sources} />}
107
- </div>}
108
- {copyright ? <div className="footer__copyright" // Developer provided the HTML, so assume it's safe.
109
- // eslint-disable-next-line react/no-danger
110
- dangerouslySetInnerHTML={{
111
- __html: copyright
112
- }} /> : null}
113
- </div>}
114
- </div>
115
- </footer>;
116
- }
117
-
118
- var _default = Footer;
119
- exports.default = _default;
@@ -1,15 +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
- .footerLogoLink {
9
- opacity: 0.5;
10
- transition: opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default);
11
- }
12
-
13
- .footerLogoLink:hover {
14
- opacity: 1;
15
- }
@@ -1,71 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = exports.MainHeading = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _clsx = _interopRequireDefault(require("clsx"));
11
-
12
- var _Translate = require("@docusaurus/Translate");
13
-
14
- var _themeCommon = require("@docusaurus/theme-common");
15
-
16
- require("./styles.css");
17
-
18
- var _stylesModule = _interopRequireDefault(require("./styles.module.css"));
19
-
20
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
-
22
- /**
23
- * Copyright (c) Facebook, Inc. and its affiliates.
24
- *
25
- * This source code is licensed under the MIT license found in the
26
- * LICENSE file in the root directory of this source tree.
27
- */
28
- // eslint-disable-next-line react/function-component-definition
29
- const MainHeading = ({ ...props
30
- }) => <header>
31
- <h1 {...props} id={undefined} // h1 headings do not need an id because they don't appear in the TOC
32
- >
33
- {props.children}
34
- </h1>
35
- </header>;
36
-
37
- exports.MainHeading = MainHeading;
38
-
39
- const createAnchorHeading = Tag => ({
40
- id,
41
- ...props
42
- }) => {
43
- const {
44
- navbar: {
45
- hideOnScroll
46
- }
47
- } = (0, _themeCommon.useThemeConfig)();
48
-
49
- if (!id) {
50
- return <Tag {...props} />;
51
- }
52
-
53
- return <Tag {...props} className={(0, _clsx.default)('anchor', {
54
- [_stylesModule.default.anchorWithHideOnScrollNavbar]: hideOnScroll,
55
- [_stylesModule.default.anchorWithStickyNavbar]: !hideOnScroll
56
- })} id={id}>
57
- {props.children}
58
- <a aria-hidden="true" className="hash-link" href={`#${id}`} title={(0, _Translate.translate)({
59
- id: 'theme.common.headingLinkTitle',
60
- message: 'Direct link to heading',
61
- description: 'Title for link to heading'
62
- })}>
63
- &#8203;
64
- </a>
65
- </Tag>;
66
- };
67
-
68
- const Heading = headingType => headingType === 'h1' ? MainHeading : createAnchorHeading(headingType);
69
-
70
- var _default = Heading;
71
- exports.default = _default;
@@ -1,22 +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
- .hash-link {
9
- opacity: 0;
10
- padding-left: 0.5rem;
11
- transition: opacity var(--ifm-transition-fast);
12
- user-select: none;
13
- }
14
-
15
- .hash-link:before {
16
- content: '#';
17
- }
18
-
19
- .hash-link:focus,
20
- *:hover > .hash-link {
21
- opacity: 1;
22
- }
@@ -1,19 +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
- /*
9
- When the navbar is sticky, ensure that on anchor click,
10
- the browser does not scroll that anchor behind the navbar
11
- See https://twitter.com/JoshWComeau/status/1332015868725891076
12
- */
13
- .anchorWithStickyNavbar {
14
- scroll-margin-top: calc(var(--ifm-navbar-height) + 0.5rem);
15
- }
16
-
17
- .anchorWithHideOnScrollNavbar {
18
- scroll-margin-top: 0.5rem;
19
- }
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
- /**
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */
18
- function IconArrow(props) {
19
- return <svg width="20" height="20" aria-hidden="true" {...props}>
20
- <g fill="#7a7a7a">
21
- <path d="M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0" />
22
- <path d="M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0" />
23
- </g>
24
- </svg>;
25
- }
26
-
27
- var _default = IconArrow;
28
- exports.default = _default;
@@ -1,31 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = IconClose;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
- /**
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */
18
- function IconClose({
19
- width = 21,
20
- height = 21,
21
- color = 'currentColor',
22
- strokeWidth = 1.2,
23
- className,
24
- ...restProps
25
- }) {
26
- return <svg viewBox="0 0 15 15" width={width} height={height} {...restProps}>
27
- <g stroke={color} strokeWidth={strokeWidth}>
28
- <path d="M.75.75l13.5 13.5M14.25.75L.75 14.25" />
29
- </g>
30
- </svg>;
31
- }
@@ -1,34 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _clsx = _interopRequireDefault(require("clsx"));
11
-
12
- var _stylesModule = _interopRequireDefault(require("./styles.module.css"));
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
- /**
17
- * Copyright (c) Facebook, Inc. and its affiliates.
18
- *
19
- * This source code is licensed under the MIT license found in the
20
- * LICENSE file in the root directory of this source tree.
21
- */
22
- function IconEdit({
23
- className,
24
- ...restProps
25
- }) {
26
- return <svg fill="currentColor" height="20" width="20" viewBox="0 0 40 40" className={(0, _clsx.default)(_stylesModule.default.iconEdit, className)} aria-hidden="true" {...restProps}>
27
- <g>
28
- <path d="m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z" />
29
- </g>
30
- </svg>;
31
- }
32
-
33
- var _default = IconEdit;
34
- exports.default = _default;
@@ -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
- .iconEdit {
9
- margin-right: 0.3em;
10
- vertical-align: sub;
11
- }
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _stylesModule = _interopRequireDefault(require("./styles.module.css"));
11
-
12
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
- /**
15
- * Copyright (c) Facebook, Inc. and its affiliates.
16
- *
17
- * This source code is licensed under the MIT license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- */
20
- function IconExternalLink({
21
- width = 13.5,
22
- height = 13.5
23
- }) {
24
- return <svg width={width} height={height} aria-hidden="true" viewBox="0 0 24 24" className={_stylesModule.default.iconExternalLink}>
25
- <path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z" />
26
- </svg>;
27
- }
28
-
29
- var _default = IconExternalLink;
30
- exports.default = _default;
@@ -1,12 +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
- .iconExternalLink {
9
- margin-left: 0.3rem;
10
- position: relative;
11
- top: 1px;
12
- }
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
- /**
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */
18
- function IconLanguage({
19
- width = 20,
20
- height = 20,
21
- ...props
22
- }) {
23
- return <svg viewBox="0 0 20 20" width={width} height={height} aria-hidden="true" {...props}>
24
- <path fill="currentColor" d="M19.753 10.909c-.624-1.707-2.366-2.726-4.661-2.726-.09 0-.176.002-.262.006l-.016-2.063 3.525-.607c.115-.019.133-.119.109-.231-.023-.111-.167-.883-.188-.976-.027-.131-.102-.127-.207-.109-.104.018-3.25.461-3.25.461l-.013-2.078c-.001-.125-.069-.158-.194-.156l-1.025.016c-.105.002-.164.049-.162.148l.033 2.307s-3.061.527-3.144.543c-.084.014-.17.053-.151.143.019.09.19 1.094.208 1.172.018.08.072.129.188.107l2.924-.504.035 2.018c-1.077.281-1.801.824-2.256 1.303-.768.807-1.207 1.887-1.207 2.963 0 1.586.971 2.529 2.328 2.695 3.162.387 5.119-3.06 5.769-4.715 1.097 1.506.256 4.354-2.094 5.98-.043.029-.098.129-.033.207l.619.756c.08.096.206.059.256.023 2.51-1.73 3.661-4.515 2.869-6.683zm-7.386 3.188c-.966-.121-.944-.914-.944-1.453 0-.773.327-1.58.876-2.156a3.21 3.21 0 011.229-.799l.082 4.277a2.773 2.773 0 01-1.243.131zm2.427-.553l.046-4.109c.084-.004.166-.01.252-.01.773 0 1.494.145 1.885.361.391.217-1.023 2.713-2.183 3.758zm-8.95-7.668a.196.196 0 00-.196-.145h-1.95a.194.194 0 00-.194.144L.008 16.916c-.017.051-.011.076.062.076h1.733c.075 0 .099-.023.114-.072l1.008-3.318h3.496l1.008 3.318c.016.049.039.072.113.072h1.734c.072 0 .078-.025.062-.076-.014-.05-3.083-9.741-3.494-11.04zm-2.618 6.318l1.447-5.25 1.447 5.25H3.226z" />
25
- </svg>;
26
- }
27
-
28
- var _default = IconLanguage;
29
- exports.default = _default;
@@ -1,30 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
-
12
- /**
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */
18
- function IconMenu({
19
- width = 30,
20
- height = 30,
21
- className,
22
- ...restProps
23
- }) {
24
- return <svg className={className} width={width} height={height} viewBox="0 0 30 30" aria-hidden="true" {...restProps}>
25
- <path stroke="currentColor" strokeLinecap="round" strokeMiterlimit="10" strokeWidth="2" d="M4 7h22M4 15h22M4 23h22" />
26
- </svg>;
27
- }
28
-
29
- var _default = IconMenu;
30
- exports.default = _default;
@@ -1,63 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = LastUpdated;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _Translate = _interopRequireDefault(require("@docusaurus/Translate"));
11
-
12
- var _themeCommon = require("@docusaurus/theme-common");
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
- /**
17
- * Copyright (c) Facebook, Inc. and its affiliates.
18
- *
19
- * This source code is licensed under the MIT license found in the
20
- * LICENSE file in the root directory of this source tree.
21
- */
22
- function LastUpdatedAtDate({
23
- lastUpdatedAt,
24
- formattedLastUpdatedAt
25
- }) {
26
- return <_Translate.default id="theme.lastUpdated.atDate" description="The words used to describe on which date a page has been last updated" values={{
27
- date: <b>
28
- <time dateTime={new Date(lastUpdatedAt * 1000).toISOString()}>
29
- {formattedLastUpdatedAt}
30
- </time>
31
- </b>
32
- }}>
33
- {' on {date}'}
34
- </_Translate.default>;
35
- }
36
-
37
- function LastUpdatedByUser({
38
- lastUpdatedBy
39
- }) {
40
- return <_Translate.default id="theme.lastUpdated.byUser" description="The words used to describe by who the page has been last updated" values={{
41
- user: <b>{lastUpdatedBy}</b>
42
- }}>
43
- {' by {user}'}
44
- </_Translate.default>;
45
- }
46
-
47
- function LastUpdated({
48
- lastUpdatedAt,
49
- formattedLastUpdatedAt,
50
- lastUpdatedBy
51
- }) {
52
- return <span className={_themeCommon.ThemeClassNames.common.lastUpdated}>
53
- <_Translate.default id="theme.lastUpdated.lastUpdatedAtBy" description="The sentence used to display when a page has been last updated, and by who" values={{
54
- atDate: lastUpdatedAt && formattedLastUpdatedAt ? <LastUpdatedAtDate lastUpdatedAt={lastUpdatedAt} formattedLastUpdatedAt={formattedLastUpdatedAt} /> : '',
55
- byUser: lastUpdatedBy ? <LastUpdatedByUser lastUpdatedBy={lastUpdatedBy} /> : ''
56
- }}>
57
- {'Last updated{atDate}{byUser}'}
58
- </_Translate.default>
59
- {process.env.NODE_ENV === 'development' && <div>
60
- <small> (Simulated during dev for better perf)</small>
61
- </div>}
62
- </span>;
63
- }
@@ -1,68 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _clsx = _interopRequireDefault(require("clsx"));
11
-
12
- var _ErrorBoundary = _interopRequireDefault(require("@docusaurus/ErrorBoundary"));
13
-
14
- var _SkipToContent = _interopRequireDefault(require("@theme/SkipToContent"));
15
-
16
- var _AnnouncementBar = _interopRequireDefault(require("@theme/AnnouncementBar"));
17
-
18
- var _Navbar = _interopRequireDefault(require("@theme/Navbar"));
19
-
20
- var _Footer = _interopRequireDefault(require("@theme/Footer"));
21
-
22
- var _LayoutProviders = _interopRequireDefault(require("@theme/LayoutProviders"));
23
-
24
- var _LayoutHead = _interopRequireDefault(require("@theme/LayoutHead"));
25
-
26
- var _useKeyboardNavigation = _interopRequireDefault(require("@theme/hooks/useKeyboardNavigation"));
27
-
28
- var _themeCommon = require("@docusaurus/theme-common");
29
-
30
- var _ErrorPageContent = _interopRequireDefault(require("@theme/ErrorPageContent"));
31
-
32
- require("./styles.css");
33
-
34
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
35
-
36
- /**
37
- * Copyright (c) Facebook, Inc. and its affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */
42
- function Layout(props) {
43
- const {
44
- children,
45
- noFooter,
46
- wrapperClassName,
47
- pageClassName
48
- } = props;
49
- (0, _useKeyboardNavigation.default)();
50
- return <_LayoutProviders.default>
51
- <_LayoutHead.default {...props} />
52
-
53
- <_SkipToContent.default />
54
-
55
- <_AnnouncementBar.default />
56
-
57
- <_Navbar.default />
58
-
59
- <div className={(0, _clsx.default)(_themeCommon.ThemeClassNames.wrapper.main, wrapperClassName, pageClassName)}>
60
- <_ErrorBoundary.default fallback={_ErrorPageContent.default}>{children}</_ErrorBoundary.default>
61
- </div>
62
-
63
- {!noFooter && <_Footer.default />}
64
- </_LayoutProviders.default>;
65
- }
66
-
67
- var _default = Layout;
68
- exports.default = _default;
@@ -1,27 +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
- html,
9
- body {
10
- height: 100%;
11
- }
12
-
13
- #__docusaurus {
14
- min-height: 100%;
15
- display: flex;
16
- flex-direction: column;
17
- }
18
-
19
- .main-wrapper {
20
- flex: 1 0 auto;
21
- }
22
-
23
- /* Docusaurus-specific utility classes */
24
-
25
- .docusaurus-mt-lg {
26
- margin-top: 3rem;
27
- }