@docusaurus/theme-classic 0.0.0-4625 → 0.0.0-4628
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.
- package/lib/theme-classic.d.ts +40 -77
- package/lib-next/theme/AnnouncementBar/index.js +1 -4
- package/lib-next/theme/BackToTopButton/index.js +1 -3
- package/lib-next/theme/BlogLayout/index.js +1 -4
- package/lib-next/theme/BlogListPage/index.js +1 -4
- package/lib-next/theme/BlogListPaginator/index.js +1 -4
- package/lib-next/theme/BlogPostAuthor/index.js +1 -4
- package/lib-next/theme/BlogPostItem/index.js +1 -3
- package/lib-next/theme/BlogPostPage/index.js +1 -4
- package/lib-next/theme/BlogPostPaginator/index.js +1 -4
- package/lib-next/theme/BlogTagsListPage/index.js +1 -4
- package/lib-next/theme/DocBreadcrumbs/index.js +7 -2
- package/lib-next/theme/DocPage/index.js +1 -3
- package/lib-next/theme/DocPaginator/index.js +1 -4
- package/lib-next/theme/DocTagsListPage/index.js +1 -4
- package/lib-next/theme/IconArrow/index.js +1 -4
- package/lib-next/theme/IconEdit/index.js +1 -4
- package/lib-next/theme/IconExternalLink/index.js +1 -4
- package/lib-next/theme/IconLanguage/index.js +1 -4
- package/lib-next/theme/IconMenu/index.js +6 -4
- package/lib-next/theme/Layout/index.js +1 -4
- package/lib-next/theme/Logo/index.js +1 -4
- package/lib-next/theme/MDXPage/index.js +1 -4
- package/lib-next/theme/Navbar/index.js +1 -3
- package/lib-next/theme/NavbarItem/DefaultNavbarItem.js +1 -3
- package/lib-next/theme/NavbarItem/DropdownNavbarItem.js +1 -3
- package/lib-next/theme/NotFound.js +1 -4
- package/lib-next/theme/PaginatorNavLink/index.js +1 -4
- package/lib-next/theme/SkipToContent/index.js +1 -3
- package/lib-next/theme/TOC/index.js +1 -4
- package/lib-next/theme/TOCInline/index.js +1 -4
- package/lib-next/theme/TabItem/index.js +1 -4
- package/lib-next/theme/Tag/index.js +1 -4
- package/lib-next/theme/TagsListByLetter/index.js +1 -3
- package/lib-next/theme/ThemedImage/index.js +1 -4
- package/lib-next/theme/prism-include-languages.js +2 -5
- package/package.json +13 -13
- package/src/theme/AnnouncementBar/index.tsx +1 -3
- package/src/theme/BackToTopButton/index.tsx +1 -3
- package/src/theme/BlogLayout/index.tsx +1 -3
- package/src/theme/BlogListPage/index.tsx +1 -3
- package/src/theme/BlogListPaginator/index.tsx +1 -3
- package/src/theme/BlogPostAuthor/index.tsx +1 -3
- package/src/theme/BlogPostItem/index.tsx +1 -3
- package/src/theme/BlogPostPage/index.tsx +1 -3
- package/src/theme/BlogPostPaginator/index.tsx +1 -3
- package/src/theme/BlogTagsListPage/index.tsx +1 -3
- package/src/theme/DocBreadcrumbs/index.tsx +7 -2
- package/src/theme/DocPage/index.tsx +1 -3
- package/src/theme/DocPaginator/index.tsx +1 -3
- package/src/theme/DocTagsListPage/index.tsx +1 -3
- package/src/theme/IconArrow/index.tsx +1 -3
- package/src/theme/IconEdit/index.tsx +4 -3
- package/src/theme/IconExternalLink/index.tsx +4 -3
- package/src/theme/IconLanguage/index.tsx +5 -3
- package/src/theme/IconMenu/index.tsx +1 -3
- package/src/theme/Layout/index.tsx +1 -3
- package/src/theme/Logo/index.tsx +1 -3
- package/src/theme/MDXPage/index.tsx +1 -3
- package/src/theme/Navbar/index.tsx +1 -3
- package/src/theme/NavbarItem/DefaultNavbarItem.tsx +1 -3
- package/src/theme/NavbarItem/DropdownNavbarItem.tsx +4 -3
- package/src/theme/NotFound.tsx +1 -3
- package/src/theme/PaginatorNavLink/index.tsx +1 -3
- package/src/theme/SkipToContent/index.tsx +1 -3
- package/src/theme/TOC/index.tsx +1 -3
- package/src/theme/TOCInline/index.tsx +1 -3
- package/src/theme/TabItem/index.tsx +5 -3
- package/src/theme/Tag/index.tsx +1 -3
- package/src/theme/TagsListByLetter/index.tsx +1 -3
- package/src/theme/ThemedImage/index.tsx +1 -3
- package/src/theme/prism-include-languages.ts +4 -4
- package/src/theme-classic.d.ts +40 -77
- package/src/validateThemeConfig.ts +2 -4
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
export default function IconMenu({
|
|
9
|
+
width = 30,
|
|
10
|
+
height = 30,
|
|
11
|
+
className,
|
|
12
|
+
...restProps
|
|
13
|
+
}) {
|
|
10
14
|
return (
|
|
11
15
|
<svg
|
|
12
16
|
className={className}
|
|
@@ -25,5 +29,3 @@ function IconMenu({width = 30, height = 30, className, ...restProps}) {
|
|
|
25
29
|
</svg>
|
|
26
30
|
);
|
|
27
31
|
}
|
|
28
|
-
|
|
29
|
-
export default IconMenu;
|
|
@@ -16,8 +16,7 @@ import LayoutHead from '@theme/LayoutHead';
|
|
|
16
16
|
import {ThemeClassNames, useKeyboardNavigation} from '@docusaurus/theme-common';
|
|
17
17
|
import ErrorPageContent from '@theme/ErrorPageContent';
|
|
18
18
|
import './styles.css';
|
|
19
|
-
|
|
20
|
-
function Layout(props) {
|
|
19
|
+
export default function Layout(props) {
|
|
21
20
|
const {children, noFooter, wrapperClassName, pageClassName} = props;
|
|
22
21
|
useKeyboardNavigation();
|
|
23
22
|
return (
|
|
@@ -43,5 +42,3 @@ function Layout(props) {
|
|
|
43
42
|
</LayoutProviders>
|
|
44
43
|
);
|
|
45
44
|
}
|
|
46
|
-
|
|
47
|
-
export default Layout;
|
|
@@ -10,8 +10,7 @@ import ThemedImage from '@theme/ThemedImage';
|
|
|
10
10
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
|
11
11
|
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
|
|
12
12
|
import {useThemeConfig} from '@docusaurus/theme-common';
|
|
13
|
-
|
|
14
|
-
function Logo(props) {
|
|
13
|
+
export default function Logo(props) {
|
|
15
14
|
const {
|
|
16
15
|
siteConfig: {title},
|
|
17
16
|
} = useDocusaurusContext();
|
|
@@ -54,5 +53,3 @@ function Logo(props) {
|
|
|
54
53
|
</Link>
|
|
55
54
|
);
|
|
56
55
|
}
|
|
57
|
-
|
|
58
|
-
export default Logo;
|
|
@@ -12,8 +12,7 @@ import MDXComponents from '@theme/MDXComponents';
|
|
|
12
12
|
import TOC from '@theme/TOC';
|
|
13
13
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
14
14
|
import styles from './styles.module.css';
|
|
15
|
-
|
|
16
|
-
function MDXPage(props) {
|
|
15
|
+
export default function MDXPage(props) {
|
|
17
16
|
const {content: MDXPageContent} = props;
|
|
18
17
|
const {
|
|
19
18
|
metadata: {title, description, permalink, frontMatter},
|
|
@@ -48,5 +47,3 @@ function MDXPage(props) {
|
|
|
48
47
|
</Layout>
|
|
49
48
|
);
|
|
50
49
|
}
|
|
51
|
-
|
|
52
|
-
export default MDXPage;
|
|
@@ -206,7 +206,7 @@ function NavbarMobileSidebar({sidebarShown, toggleSidebar}) {
|
|
|
206
206
|
);
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
function Navbar() {
|
|
209
|
+
export default function Navbar() {
|
|
210
210
|
const {
|
|
211
211
|
navbar: {hideOnScroll, style},
|
|
212
212
|
} = useThemeConfig();
|
|
@@ -279,5 +279,3 @@ function Navbar() {
|
|
|
279
279
|
</nav>
|
|
280
280
|
);
|
|
281
281
|
}
|
|
282
|
-
|
|
283
|
-
export default Navbar;
|
|
@@ -43,7 +43,7 @@ function DefaultNavbarItemMobile({
|
|
|
43
43
|
);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
function DefaultNavbarItem({
|
|
46
|
+
export default function DefaultNavbarItem({
|
|
47
47
|
mobile = false,
|
|
48
48
|
position: _position,
|
|
49
49
|
// Need to destructure position from props so that it doesn't get passed on.
|
|
@@ -59,5 +59,3 @@ function DefaultNavbarItem({
|
|
|
59
59
|
/>
|
|
60
60
|
);
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
export default DefaultNavbarItem;
|
|
@@ -150,9 +150,7 @@ function DropdownNavbarItemMobile({
|
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
function DropdownNavbarItem({mobile = false, ...props}) {
|
|
153
|
+
export default function DropdownNavbarItem({mobile = false, ...props}) {
|
|
154
154
|
const Comp = mobile ? DropdownNavbarItemMobile : DropdownNavbarItemDesktop;
|
|
155
155
|
return <Comp {...props} />;
|
|
156
156
|
}
|
|
157
|
-
|
|
158
|
-
export default DropdownNavbarItem;
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import Layout from '@theme/Layout';
|
|
9
9
|
import Translate, {translate} from '@docusaurus/Translate';
|
|
10
|
-
|
|
11
|
-
function NotFound() {
|
|
10
|
+
export default function NotFound() {
|
|
12
11
|
return (
|
|
13
12
|
<Layout
|
|
14
13
|
title={translate({
|
|
@@ -46,5 +45,3 @@ function NotFound() {
|
|
|
46
45
|
</Layout>
|
|
47
46
|
);
|
|
48
47
|
}
|
|
49
|
-
|
|
50
|
-
export default NotFound;
|
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import Link from '@docusaurus/Link';
|
|
9
|
-
|
|
10
|
-
function PaginatorNavLink(props) {
|
|
9
|
+
export default function PaginatorNavLink(props) {
|
|
11
10
|
const {permalink, title, subLabel} = props;
|
|
12
11
|
return (
|
|
13
12
|
<Link className="pagination-nav__link" to={permalink}>
|
|
@@ -16,5 +15,3 @@ function PaginatorNavLink(props) {
|
|
|
16
15
|
</Link>
|
|
17
16
|
);
|
|
18
17
|
}
|
|
19
|
-
|
|
20
|
-
export default PaginatorNavLink;
|
|
@@ -16,7 +16,7 @@ function programmaticFocus(el) {
|
|
|
16
16
|
el.removeAttribute('tabindex');
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
function SkipToContent() {
|
|
19
|
+
export default function SkipToContent() {
|
|
20
20
|
const containerRef = useRef(null);
|
|
21
21
|
const {action} = useHistory();
|
|
22
22
|
|
|
@@ -49,5 +49,3 @@ function SkipToContent() {
|
|
|
49
49
|
</div>
|
|
50
50
|
);
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
export default SkipToContent;
|
|
@@ -12,8 +12,7 @@ import styles from './styles.module.css'; // Using a custom className
|
|
|
12
12
|
|
|
13
13
|
const LINK_CLASS_NAME = 'table-of-contents__link toc-highlight';
|
|
14
14
|
const LINK_ACTIVE_CLASS_NAME = 'table-of-contents__link--active';
|
|
15
|
-
|
|
16
|
-
function TOC({className, ...props}) {
|
|
15
|
+
export default function TOC({className, ...props}) {
|
|
17
16
|
return (
|
|
18
17
|
<div className={clsx(styles.tableOfContents, 'thin-scrollbar', className)}>
|
|
19
18
|
<TOCItems
|
|
@@ -24,5 +23,3 @@ function TOC({className, ...props}) {
|
|
|
24
23
|
</div>
|
|
25
24
|
);
|
|
26
25
|
}
|
|
27
|
-
|
|
28
|
-
export default TOC;
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import styles from './styles.module.css';
|
|
9
9
|
import TOCItems from '@theme/TOCItems';
|
|
10
|
-
|
|
11
|
-
function TOCInline({toc, minHeadingLevel, maxHeadingLevel}) {
|
|
10
|
+
export default function TOCInline({toc, minHeadingLevel, maxHeadingLevel}) {
|
|
12
11
|
return (
|
|
13
12
|
<div className={styles.tableOfContentsInline}>
|
|
14
13
|
<TOCItems
|
|
@@ -21,5 +20,3 @@ function TOCInline({toc, minHeadingLevel, maxHeadingLevel}) {
|
|
|
21
20
|
</div>
|
|
22
21
|
);
|
|
23
22
|
}
|
|
24
|
-
|
|
25
|
-
export default TOCInline;
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import React from 'react';
|
|
8
|
-
|
|
9
|
-
function TabItem({children, hidden, className}) {
|
|
8
|
+
export default function TabItem({children, hidden, className}) {
|
|
10
9
|
return (
|
|
11
10
|
<div
|
|
12
11
|
role="tabpanel"
|
|
@@ -18,5 +17,3 @@ function TabItem({children, hidden, className}) {
|
|
|
18
17
|
</div>
|
|
19
18
|
);
|
|
20
19
|
}
|
|
21
|
-
|
|
22
|
-
export default TabItem;
|
|
@@ -8,8 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import Link from '@docusaurus/Link';
|
|
10
10
|
import styles from './styles.module.css';
|
|
11
|
-
|
|
12
|
-
function Tag(props) {
|
|
11
|
+
export default function Tag(props) {
|
|
13
12
|
const {permalink, name, count} = props;
|
|
14
13
|
return (
|
|
15
14
|
<Link
|
|
@@ -23,5 +22,3 @@ function Tag(props) {
|
|
|
23
22
|
</Link>
|
|
24
23
|
);
|
|
25
24
|
}
|
|
26
|
-
|
|
27
|
-
export default Tag;
|
|
@@ -25,7 +25,7 @@ function TagLetterEntryItem({letterEntry}) {
|
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
function TagsListByLetter({tags}) {
|
|
28
|
+
export default function TagsListByLetter({tags}) {
|
|
29
29
|
const letterList = listTagsByLetters(tags);
|
|
30
30
|
return (
|
|
31
31
|
<section className="margin-vert--lg">
|
|
@@ -38,5 +38,3 @@ function TagsListByLetter({tags}) {
|
|
|
38
38
|
</section>
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
export default TagsListByLetter;
|
|
@@ -9,8 +9,7 @@ import clsx from 'clsx';
|
|
|
9
9
|
import useIsBrowser from '@docusaurus/useIsBrowser';
|
|
10
10
|
import {useColorMode} from '@docusaurus/theme-common';
|
|
11
11
|
import styles from './styles.module.css';
|
|
12
|
-
|
|
13
|
-
function ThemedImage(props) {
|
|
12
|
+
export default function ThemedImage(props) {
|
|
14
13
|
const isBrowser = useIsBrowser();
|
|
15
14
|
const {isDarkTheme} = useColorMode();
|
|
16
15
|
const {sources, className, alt = '', ...propsRest} = props;
|
|
@@ -37,5 +36,3 @@ function ThemedImage(props) {
|
|
|
37
36
|
</>
|
|
38
37
|
);
|
|
39
38
|
}
|
|
40
|
-
|
|
41
|
-
export default ThemedImage;
|
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
import siteConfig from '@generated/docusaurus.config';
|
|
8
|
-
|
|
9
|
-
const prismIncludeLanguages = (PrismObject) => {
|
|
8
|
+
export default function prismIncludeLanguages(PrismObject) {
|
|
10
9
|
const {
|
|
11
10
|
themeConfig: {prism},
|
|
12
11
|
} = siteConfig;
|
|
@@ -23,6 +22,4 @@ const prismIncludeLanguages = (PrismObject) => {
|
|
|
23
22
|
require(`prismjs/components/prism-${lang}`);
|
|
24
23
|
});
|
|
25
24
|
delete globalThis.Prism;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export default prismIncludeLanguages;
|
|
25
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/theme-classic",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-4628",
|
|
4
4
|
"description": "Classic theme for Docusaurus",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/theme-classic.d.ts",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"format:lib-next": "prettier --config ../../.prettierrc --write \"lib-next/**/*.{js,ts,jsx,tsc}\""
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@docusaurus/core": "0.0.0-
|
|
25
|
-
"@docusaurus/plugin-content-blog": "0.0.0-
|
|
26
|
-
"@docusaurus/plugin-content-docs": "0.0.0-
|
|
27
|
-
"@docusaurus/plugin-content-pages": "0.0.0-
|
|
28
|
-
"@docusaurus/theme-common": "0.0.0-
|
|
29
|
-
"@docusaurus/theme-translations": "0.0.0-
|
|
30
|
-
"@docusaurus/utils": "0.0.0-
|
|
31
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
32
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
24
|
+
"@docusaurus/core": "0.0.0-4628",
|
|
25
|
+
"@docusaurus/plugin-content-blog": "0.0.0-4628",
|
|
26
|
+
"@docusaurus/plugin-content-docs": "0.0.0-4628",
|
|
27
|
+
"@docusaurus/plugin-content-pages": "0.0.0-4628",
|
|
28
|
+
"@docusaurus/theme-common": "0.0.0-4628",
|
|
29
|
+
"@docusaurus/theme-translations": "0.0.0-4628",
|
|
30
|
+
"@docusaurus/utils": "0.0.0-4628",
|
|
31
|
+
"@docusaurus/utils-common": "0.0.0-4628",
|
|
32
|
+
"@docusaurus/utils-validation": "0.0.0-4628",
|
|
33
33
|
"@mdx-js/react": "^1.6.22",
|
|
34
34
|
"clsx": "^1.1.1",
|
|
35
35
|
"copy-text-to-clipboard": "^3.0.1",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"rtlcss": "^3.3.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
46
|
-
"@docusaurus/types": "0.0.0-
|
|
45
|
+
"@docusaurus/module-type-aliases": "0.0.0-4628",
|
|
46
|
+
"@docusaurus/types": "0.0.0-4628",
|
|
47
47
|
"@types/mdx-js__react": "^1.5.5",
|
|
48
48
|
"@types/prismjs": "^1.26.0",
|
|
49
49
|
"@types/rtlcss": "^3.1.2",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=14"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "dbe66880af93183a5a691dd1e1397df004e0b0de"
|
|
63
63
|
}
|
|
@@ -13,7 +13,7 @@ import IconClose from '@theme/IconClose';
|
|
|
13
13
|
|
|
14
14
|
import styles from './styles.module.css';
|
|
15
15
|
|
|
16
|
-
function AnnouncementBar(): JSX.Element | null {
|
|
16
|
+
export default function AnnouncementBar(): JSX.Element | null {
|
|
17
17
|
const {isActive, close} = useAnnouncementBar();
|
|
18
18
|
const {announcementBar} = useThemeConfig();
|
|
19
19
|
|
|
@@ -51,5 +51,3 @@ function AnnouncementBar(): JSX.Element | null {
|
|
|
51
51
|
</div>
|
|
52
52
|
);
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
export default AnnouncementBar;
|
|
@@ -73,7 +73,7 @@ function useSmoothScrollToTop(): UseSmoothScrollTopReturn {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
function BackToTopButton(): JSX.Element {
|
|
76
|
+
export default function BackToTopButton(): JSX.Element {
|
|
77
77
|
const [show, setShow] = useState(false);
|
|
78
78
|
const isFocusedAnchor = useRef(false);
|
|
79
79
|
const {smoothScrollTop, cancelScrollToTop} = useSmoothScrollToTop();
|
|
@@ -141,5 +141,3 @@ function BackToTopButton(): JSX.Element {
|
|
|
141
141
|
/>
|
|
142
142
|
);
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
export default BackToTopButton;
|
|
@@ -12,7 +12,7 @@ import BlogSidebar from '@theme/BlogSidebar';
|
|
|
12
12
|
|
|
13
13
|
import type {Props} from '@theme/BlogLayout';
|
|
14
14
|
|
|
15
|
-
function BlogLayout(props: Props): JSX.Element {
|
|
15
|
+
export default function BlogLayout(props: Props): JSX.Element {
|
|
16
16
|
const {sidebar, toc, children, ...layoutProps} = props;
|
|
17
17
|
const hasSidebar = sidebar && sidebar.items.length > 0;
|
|
18
18
|
|
|
@@ -40,5 +40,3 @@ function BlogLayout(props: Props): JSX.Element {
|
|
|
40
40
|
</Layout>
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
export default BlogLayout;
|
|
@@ -14,7 +14,7 @@ import BlogListPaginator from '@theme/BlogListPaginator';
|
|
|
14
14
|
import type {Props} from '@theme/BlogListPage';
|
|
15
15
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
16
16
|
|
|
17
|
-
function BlogListPage(props: Props): JSX.Element {
|
|
17
|
+
export default function BlogListPage(props: Props): JSX.Element {
|
|
18
18
|
const {metadata, items, sidebar} = props;
|
|
19
19
|
const {
|
|
20
20
|
siteConfig: {title: siteTitle},
|
|
@@ -48,5 +48,3 @@ function BlogListPage(props: Props): JSX.Element {
|
|
|
48
48
|
</BlogLayout>
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
export default BlogListPage;
|
|
@@ -10,7 +10,7 @@ import Translate, {translate} from '@docusaurus/Translate';
|
|
|
10
10
|
import PaginatorNavLink from '@theme/PaginatorNavLink';
|
|
11
11
|
import type {Props} from '@theme/BlogListPaginator';
|
|
12
12
|
|
|
13
|
-
function BlogListPaginator(props: Props): JSX.Element {
|
|
13
|
+
export default function BlogListPaginator(props: Props): JSX.Element {
|
|
14
14
|
const {metadata} = props;
|
|
15
15
|
const {previousPage, nextPage} = metadata;
|
|
16
16
|
|
|
@@ -53,5 +53,3 @@ function BlogListPaginator(props: Props): JSX.Element {
|
|
|
53
53
|
</nav>
|
|
54
54
|
);
|
|
55
55
|
}
|
|
56
|
-
|
|
57
|
-
export default BlogListPaginator;
|
|
@@ -11,7 +11,7 @@ import type {Props} from '@theme/BlogPostAuthor';
|
|
|
11
11
|
|
|
12
12
|
import styles from './styles.module.css';
|
|
13
13
|
|
|
14
|
-
function BlogPostAuthor({author}: Props): JSX.Element {
|
|
14
|
+
export default function BlogPostAuthor({author}: Props): JSX.Element {
|
|
15
15
|
const {name, title, url, imageURL} = author;
|
|
16
16
|
return (
|
|
17
17
|
<div className="avatar margin-bottom--sm">
|
|
@@ -42,5 +42,3 @@ function BlogPostAuthor({author}: Props): JSX.Element {
|
|
|
42
42
|
</div>
|
|
43
43
|
);
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
export default BlogPostAuthor;
|
|
@@ -41,7 +41,7 @@ function useReadingTimePlural() {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
function BlogPostItem(props: Props): JSX.Element {
|
|
44
|
+
export default function BlogPostItem(props: Props): JSX.Element {
|
|
45
45
|
const readingTimePlural = useReadingTimePlural();
|
|
46
46
|
const {withBaseUrl} = useBaseUrlUtils();
|
|
47
47
|
const {
|
|
@@ -159,5 +159,3 @@ function BlogPostItem(props: Props): JSX.Element {
|
|
|
159
159
|
</article>
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
|
-
|
|
163
|
-
export default BlogPostItem;
|
|
@@ -14,7 +14,7 @@ import type {Props} from '@theme/BlogPostPage';
|
|
|
14
14
|
import {ThemeClassNames} from '@docusaurus/theme-common';
|
|
15
15
|
import TOC from '@theme/TOC';
|
|
16
16
|
|
|
17
|
-
function BlogPostPage(props: Props): JSX.Element {
|
|
17
|
+
export default function BlogPostPage(props: Props): JSX.Element {
|
|
18
18
|
const {content: BlogPostContents, sidebar} = props;
|
|
19
19
|
const {assets, metadata} = BlogPostContents;
|
|
20
20
|
const {
|
|
@@ -95,5 +95,3 @@ function BlogPostPage(props: Props): JSX.Element {
|
|
|
95
95
|
</BlogLayout>
|
|
96
96
|
);
|
|
97
97
|
}
|
|
98
|
-
|
|
99
|
-
export default BlogPostPage;
|
|
@@ -10,7 +10,7 @@ import Translate, {translate} from '@docusaurus/Translate';
|
|
|
10
10
|
import PaginatorNavLink from '@theme/PaginatorNavLink';
|
|
11
11
|
import type {Props} from '@theme/BlogPostPaginator';
|
|
12
12
|
|
|
13
|
-
function BlogPostPaginator(props: Props): JSX.Element {
|
|
13
|
+
export default function BlogPostPaginator(props: Props): JSX.Element {
|
|
14
14
|
const {nextItem, prevItem} = props;
|
|
15
15
|
|
|
16
16
|
return (
|
|
@@ -52,5 +52,3 @@ function BlogPostPaginator(props: Props): JSX.Element {
|
|
|
52
52
|
</nav>
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
export default BlogPostPaginator;
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
translateTagsPageTitle,
|
|
16
16
|
} from '@docusaurus/theme-common';
|
|
17
17
|
|
|
18
|
-
function BlogTagsListPage(props: Props): JSX.Element {
|
|
18
|
+
export default function BlogTagsListPage(props: Props): JSX.Element {
|
|
19
19
|
const {tags, sidebar} = props;
|
|
20
20
|
const title = translateTagsPageTitle();
|
|
21
21
|
return (
|
|
@@ -33,5 +33,3 @@ function BlogTagsListPage(props: Props): JSX.Element {
|
|
|
33
33
|
</BlogLayout>
|
|
34
34
|
);
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
export default BlogTagsListPage;
|
|
@@ -6,7 +6,11 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import React, {type ReactNode} from 'react';
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
ThemeClassNames,
|
|
11
|
+
useSidebarBreadcrumbs,
|
|
12
|
+
useHomePageRoute,
|
|
13
|
+
} from '@docusaurus/theme-common';
|
|
10
14
|
import styles from './styles.module.css';
|
|
11
15
|
import clsx from 'clsx';
|
|
12
16
|
import Link from '@docusaurus/Link';
|
|
@@ -59,6 +63,7 @@ function HomeBreadcrumbItem() {
|
|
|
59
63
|
|
|
60
64
|
export default function DocBreadcrumbs(): JSX.Element | null {
|
|
61
65
|
const breadcrumbs = useSidebarBreadcrumbs();
|
|
66
|
+
const homePageRoute = useHomePageRoute();
|
|
62
67
|
|
|
63
68
|
if (!breadcrumbs) {
|
|
64
69
|
return null;
|
|
@@ -72,7 +77,7 @@ export default function DocBreadcrumbs(): JSX.Element | null {
|
|
|
72
77
|
)}
|
|
73
78
|
aria-label="breadcrumbs">
|
|
74
79
|
<ul className="breadcrumbs">
|
|
75
|
-
<HomeBreadcrumbItem />
|
|
80
|
+
{homePageRoute && <HomeBreadcrumbItem />}
|
|
76
81
|
{breadcrumbs.map((item, idx) => (
|
|
77
82
|
<BreadcrumbsItem key={idx} active={idx === breadcrumbs.length - 1}>
|
|
78
83
|
<BreadcrumbsItemLink href={item.href}>
|
|
@@ -145,7 +145,7 @@ function DocPageContent({
|
|
|
145
145
|
);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
function DocPage(props: Props): JSX.Element {
|
|
148
|
+
export default function DocPage(props: Props): JSX.Element {
|
|
149
149
|
const {
|
|
150
150
|
route: {routes: docRoutes},
|
|
151
151
|
versionMetadata,
|
|
@@ -184,5 +184,3 @@ function DocPage(props: Props): JSX.Element {
|
|
|
184
184
|
</>
|
|
185
185
|
);
|
|
186
186
|
}
|
|
187
|
-
|
|
188
|
-
export default DocPage;
|
|
@@ -10,7 +10,7 @@ import Translate, {translate} from '@docusaurus/Translate';
|
|
|
10
10
|
import PaginatorNavLink from '@theme/PaginatorNavLink';
|
|
11
11
|
import type {Props} from '@theme/DocPaginator';
|
|
12
12
|
|
|
13
|
-
function DocPaginator(props: Props): JSX.Element {
|
|
13
|
+
export default function DocPaginator(props: Props): JSX.Element {
|
|
14
14
|
const {previous, next} = props;
|
|
15
15
|
|
|
16
16
|
return (
|
|
@@ -52,5 +52,3 @@ function DocPaginator(props: Props): JSX.Element {
|
|
|
52
52
|
</nav>
|
|
53
53
|
);
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
export default DocPaginator;
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import TagsListByLetter from '@theme/TagsListByLetter';
|
|
16
16
|
import type {Props} from '@theme/DocTagsListPage';
|
|
17
17
|
|
|
18
|
-
function DocTagsListPage({tags}: Props): JSX.Element {
|
|
18
|
+
export default function DocTagsListPage({tags}: Props): JSX.Element {
|
|
19
19
|
const title = translateTagsPageTitle();
|
|
20
20
|
return (
|
|
21
21
|
<Layout
|
|
@@ -37,5 +37,3 @@ function DocTagsListPage({tags}: Props): JSX.Element {
|
|
|
37
37
|
</Layout>
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
export default DocTagsListPage;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import type {Props} from '@theme/IconArrow';
|
|
10
10
|
|
|
11
|
-
function IconArrow(props: Props): JSX.Element {
|
|
11
|
+
export default function IconArrow(props: Props): JSX.Element {
|
|
12
12
|
return (
|
|
13
13
|
<svg width="20" height="20" aria-hidden="true" {...props}>
|
|
14
14
|
<g fill="#7a7a7a">
|
|
@@ -18,5 +18,3 @@ function IconArrow(props: Props): JSX.Element {
|
|
|
18
18
|
</svg>
|
|
19
19
|
);
|
|
20
20
|
}
|
|
21
|
-
|
|
22
|
-
export default IconArrow;
|
|
@@ -12,7 +12,10 @@ import type {Props} from '@theme/IconEdit';
|
|
|
12
12
|
|
|
13
13
|
import styles from './styles.module.css';
|
|
14
14
|
|
|
15
|
-
function IconEdit({
|
|
15
|
+
export default function IconEdit({
|
|
16
|
+
className,
|
|
17
|
+
...restProps
|
|
18
|
+
}: Props): JSX.Element {
|
|
16
19
|
return (
|
|
17
20
|
<svg
|
|
18
21
|
fill="currentColor"
|
|
@@ -28,5 +31,3 @@ function IconEdit({className, ...restProps}: Props): JSX.Element {
|
|
|
28
31
|
</svg>
|
|
29
32
|
);
|
|
30
33
|
}
|
|
31
|
-
|
|
32
|
-
export default IconEdit;
|
|
@@ -10,7 +10,10 @@ import type {Props} from '@theme/IconExternalLink';
|
|
|
10
10
|
|
|
11
11
|
import styles from './styles.module.css';
|
|
12
12
|
|
|
13
|
-
function IconExternalLink({
|
|
13
|
+
export default function IconExternalLink({
|
|
14
|
+
width = 13.5,
|
|
15
|
+
height = 13.5,
|
|
16
|
+
}: Props): JSX.Element {
|
|
14
17
|
return (
|
|
15
18
|
<svg
|
|
16
19
|
width={width}
|
|
@@ -25,5 +28,3 @@ function IconExternalLink({width = 13.5, height = 13.5}: Props): JSX.Element {
|
|
|
25
28
|
</svg>
|
|
26
29
|
);
|
|
27
30
|
}
|
|
28
|
-
|
|
29
|
-
export default IconExternalLink;
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import type {Props} from '@theme/IconLanguage';
|
|
10
10
|
|
|
11
|
-
function IconLanguage({
|
|
11
|
+
export default function IconLanguage({
|
|
12
|
+
width = 20,
|
|
13
|
+
height = 20,
|
|
14
|
+
...props
|
|
15
|
+
}: Props): JSX.Element {
|
|
12
16
|
return (
|
|
13
17
|
<svg
|
|
14
18
|
viewBox="0 0 20 20"
|
|
@@ -23,5 +27,3 @@ function IconLanguage({width = 20, height = 20, ...props}: Props): JSX.Element {
|
|
|
23
27
|
</svg>
|
|
24
28
|
);
|
|
25
29
|
}
|
|
26
|
-
|
|
27
|
-
export default IconLanguage;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import type {Props} from '@theme/IconMenu';
|
|
10
10
|
|
|
11
|
-
function IconMenu({
|
|
11
|
+
export default function IconMenu({
|
|
12
12
|
width = 30,
|
|
13
13
|
height = 30,
|
|
14
14
|
className,
|
|
@@ -32,5 +32,3 @@ function IconMenu({
|
|
|
32
32
|
</svg>
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
export default IconMenu;
|