@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.
Files changed (74) hide show
  1. package/lib/theme-classic.d.ts +40 -77
  2. package/lib-next/theme/AnnouncementBar/index.js +1 -4
  3. package/lib-next/theme/BackToTopButton/index.js +1 -3
  4. package/lib-next/theme/BlogLayout/index.js +1 -4
  5. package/lib-next/theme/BlogListPage/index.js +1 -4
  6. package/lib-next/theme/BlogListPaginator/index.js +1 -4
  7. package/lib-next/theme/BlogPostAuthor/index.js +1 -4
  8. package/lib-next/theme/BlogPostItem/index.js +1 -3
  9. package/lib-next/theme/BlogPostPage/index.js +1 -4
  10. package/lib-next/theme/BlogPostPaginator/index.js +1 -4
  11. package/lib-next/theme/BlogTagsListPage/index.js +1 -4
  12. package/lib-next/theme/DocBreadcrumbs/index.js +7 -2
  13. package/lib-next/theme/DocPage/index.js +1 -3
  14. package/lib-next/theme/DocPaginator/index.js +1 -4
  15. package/lib-next/theme/DocTagsListPage/index.js +1 -4
  16. package/lib-next/theme/IconArrow/index.js +1 -4
  17. package/lib-next/theme/IconEdit/index.js +1 -4
  18. package/lib-next/theme/IconExternalLink/index.js +1 -4
  19. package/lib-next/theme/IconLanguage/index.js +1 -4
  20. package/lib-next/theme/IconMenu/index.js +6 -4
  21. package/lib-next/theme/Layout/index.js +1 -4
  22. package/lib-next/theme/Logo/index.js +1 -4
  23. package/lib-next/theme/MDXPage/index.js +1 -4
  24. package/lib-next/theme/Navbar/index.js +1 -3
  25. package/lib-next/theme/NavbarItem/DefaultNavbarItem.js +1 -3
  26. package/lib-next/theme/NavbarItem/DropdownNavbarItem.js +1 -3
  27. package/lib-next/theme/NotFound.js +1 -4
  28. package/lib-next/theme/PaginatorNavLink/index.js +1 -4
  29. package/lib-next/theme/SkipToContent/index.js +1 -3
  30. package/lib-next/theme/TOC/index.js +1 -4
  31. package/lib-next/theme/TOCInline/index.js +1 -4
  32. package/lib-next/theme/TabItem/index.js +1 -4
  33. package/lib-next/theme/Tag/index.js +1 -4
  34. package/lib-next/theme/TagsListByLetter/index.js +1 -3
  35. package/lib-next/theme/ThemedImage/index.js +1 -4
  36. package/lib-next/theme/prism-include-languages.js +2 -5
  37. package/package.json +13 -13
  38. package/src/theme/AnnouncementBar/index.tsx +1 -3
  39. package/src/theme/BackToTopButton/index.tsx +1 -3
  40. package/src/theme/BlogLayout/index.tsx +1 -3
  41. package/src/theme/BlogListPage/index.tsx +1 -3
  42. package/src/theme/BlogListPaginator/index.tsx +1 -3
  43. package/src/theme/BlogPostAuthor/index.tsx +1 -3
  44. package/src/theme/BlogPostItem/index.tsx +1 -3
  45. package/src/theme/BlogPostPage/index.tsx +1 -3
  46. package/src/theme/BlogPostPaginator/index.tsx +1 -3
  47. package/src/theme/BlogTagsListPage/index.tsx +1 -3
  48. package/src/theme/DocBreadcrumbs/index.tsx +7 -2
  49. package/src/theme/DocPage/index.tsx +1 -3
  50. package/src/theme/DocPaginator/index.tsx +1 -3
  51. package/src/theme/DocTagsListPage/index.tsx +1 -3
  52. package/src/theme/IconArrow/index.tsx +1 -3
  53. package/src/theme/IconEdit/index.tsx +4 -3
  54. package/src/theme/IconExternalLink/index.tsx +4 -3
  55. package/src/theme/IconLanguage/index.tsx +5 -3
  56. package/src/theme/IconMenu/index.tsx +1 -3
  57. package/src/theme/Layout/index.tsx +1 -3
  58. package/src/theme/Logo/index.tsx +1 -3
  59. package/src/theme/MDXPage/index.tsx +1 -3
  60. package/src/theme/Navbar/index.tsx +1 -3
  61. package/src/theme/NavbarItem/DefaultNavbarItem.tsx +1 -3
  62. package/src/theme/NavbarItem/DropdownNavbarItem.tsx +4 -3
  63. package/src/theme/NotFound.tsx +1 -3
  64. package/src/theme/PaginatorNavLink/index.tsx +1 -3
  65. package/src/theme/SkipToContent/index.tsx +1 -3
  66. package/src/theme/TOC/index.tsx +1 -3
  67. package/src/theme/TOCInline/index.tsx +1 -3
  68. package/src/theme/TabItem/index.tsx +5 -3
  69. package/src/theme/Tag/index.tsx +1 -3
  70. package/src/theme/TagsListByLetter/index.tsx +1 -3
  71. package/src/theme/ThemedImage/index.tsx +1 -3
  72. package/src/theme/prism-include-languages.ts +4 -4
  73. package/src/theme-classic.d.ts +40 -77
  74. package/src/validateThemeConfig.ts +2 -4
@@ -24,8 +24,7 @@ declare module '@theme/Admonition' {
24
24
  }
25
25
 
26
26
  declare module '@theme/AnnouncementBar' {
27
- const AnnouncementBar: () => JSX.Element | null;
28
- export default AnnouncementBar;
27
+ export default function AnnouncementBar(): JSX.Element | null;
29
28
  }
30
29
 
31
30
  declare module '@theme/BackToTopButton' {
@@ -38,9 +37,7 @@ declare module '@theme/BlogListPaginator' {
38
37
  export interface Props {
39
38
  readonly metadata: Metadata;
40
39
  }
41
-
42
- const BlogListPaginator: (props: Props) => JSX.Element;
43
- export default BlogListPaginator;
40
+ export default function BlogListPaginator(props: Props): JSX.Element;
44
41
  }
45
42
 
46
43
  declare module '@theme/BlogSidebar' {
@@ -54,8 +51,7 @@ declare module '@theme/BlogSidebar' {
54
51
  readonly sidebar: BlogSidebar;
55
52
  }
56
53
 
57
- const BlogSidebar: (props: Props) => JSX.Element;
58
- export default BlogSidebar;
54
+ export default function BlogSidebar(props: Props): JSX.Element;
59
55
  }
60
56
 
61
57
  declare module '@theme/BlogPostItem' {
@@ -71,8 +67,7 @@ declare module '@theme/BlogPostItem' {
71
67
  readonly children: JSX.Element;
72
68
  }
73
69
 
74
- const BlogPostItem: (props: Props) => JSX.Element;
75
- export default BlogPostItem;
70
+ export default function BlogPostItem(props: Props): JSX.Element;
76
71
  }
77
72
 
78
73
  declare module '@theme/BlogPostAuthor' {
@@ -105,8 +100,7 @@ declare module '@theme/BlogPostPaginator' {
105
100
  readonly prevItem?: Item;
106
101
  }
107
102
 
108
- const BlogPostPaginator: (props: Props) => JSX.Element;
109
- export default BlogPostPaginator;
103
+ export default function BlogPostPaginator(props: Props): JSX.Element;
110
104
  }
111
105
 
112
106
  declare module '@theme/BlogLayout' {
@@ -119,8 +113,7 @@ declare module '@theme/BlogLayout' {
119
113
  readonly toc?: ReactNode;
120
114
  }
121
115
 
122
- const BlogLayout: (props: Props) => JSX.Element;
123
- export default BlogLayout;
116
+ export default function BlogLayout(props: Props): JSX.Element;
124
117
  }
125
118
 
126
119
  declare module '@theme/CodeBlock' {
@@ -134,8 +127,7 @@ declare module '@theme/CodeBlock' {
134
127
  readonly language?: string;
135
128
  }
136
129
 
137
- const CodeBlock: (props: Props) => JSX.Element;
138
- export default CodeBlock;
130
+ export default function CodeBlock(props: Props): JSX.Element;
139
131
  }
140
132
 
141
133
  declare module '@theme/DocCard' {
@@ -185,8 +177,7 @@ declare module '@theme/DocSidebar' {
185
177
  readonly [key: string]: unknown;
186
178
  }
187
179
 
188
- const DocSidebar: (props: Props) => JSX.Element;
189
- export default DocSidebar;
180
+ export default function DocSidebar(props: Props): JSX.Element;
190
181
  }
191
182
 
192
183
  declare module '@theme/DocSidebarItem' {
@@ -232,16 +223,14 @@ declare module '@theme/DocVersionBadge' {
232
223
  }
233
224
 
234
225
  declare module '@theme/DocVersionSuggestions' {
235
- const DocVersionSuggestions: () => JSX.Element;
236
- export default DocVersionSuggestions;
226
+ export default function DocVersionSuggestions(): JSX.Element;
237
227
  }
238
228
 
239
229
  declare module '@theme/EditThisPage' {
240
230
  export interface Props {
241
231
  readonly editUrl: string;
242
232
  }
243
- const EditThisPage: (props: Props) => JSX.Element;
244
- export default EditThisPage;
233
+ export default function EditThisPage(props: Props): JSX.Element;
245
234
  }
246
235
 
247
236
  declare module '@theme/ErrorPageContent' {
@@ -252,8 +241,7 @@ declare module '@theme/ErrorPageContent' {
252
241
  }
253
242
 
254
243
  declare module '@theme/Footer' {
255
- const Footer: () => JSX.Element | null;
256
- export default Footer;
244
+ export default function Footer(): JSX.Element | null;
257
245
  }
258
246
 
259
247
  declare module '@theme/Heading' {
@@ -315,8 +303,7 @@ declare module '@theme/SearchMetadata' {
315
303
  readonly tag?: string;
316
304
  }
317
305
 
318
- const SearchMetadata: (props: Props) => JSX.Element;
319
- export default SearchMetadata;
306
+ export default function SearchMetadata(props: Props): JSX.Element;
320
307
  }
321
308
 
322
309
  declare module '@theme/LastUpdated' {
@@ -326,13 +313,11 @@ declare module '@theme/LastUpdated' {
326
313
  readonly lastUpdatedBy?: string;
327
314
  }
328
315
 
329
- const LastUpdated: (props: Props) => JSX.Element;
330
- export default LastUpdated;
316
+ export default function LastUpdated(props: Props): JSX.Element;
331
317
  }
332
318
 
333
319
  declare module '@theme/SkipToContent' {
334
- const SkipToContent: () => JSX.Element;
335
- export default SkipToContent;
320
+ export default function SkipToContent(): JSX.Element;
336
321
  }
337
322
 
338
323
  declare module '@theme/MDXComponents' {
@@ -359,8 +344,7 @@ declare module '@theme/MDXComponents' {
359
344
  }
360
345
 
361
346
  declare module '@theme/Navbar' {
362
- const Navbar: () => JSX.Element;
363
- export default Navbar;
347
+ export default function Navbar(): JSX.Element;
364
348
  }
365
349
 
366
350
  declare module '@theme/NavbarItem/DefaultNavbarItem' {
@@ -409,8 +393,7 @@ declare module '@theme/NavbarItem/DropdownNavbarItem' {
409
393
  readonly mobile?: boolean;
410
394
  }
411
395
 
412
- const DropdownNavbarItem: (props: Props) => JSX.Element;
413
- export default DropdownNavbarItem;
396
+ export default function DropdownNavbarItem(props: Props): JSX.Element;
414
397
  }
415
398
 
416
399
  declare module '@theme/NavbarItem/SearchNavbarItem' {
@@ -418,8 +401,7 @@ declare module '@theme/NavbarItem/SearchNavbarItem' {
418
401
  readonly mobile?: boolean;
419
402
  }
420
403
 
421
- const SearchNavbarItem: (props: Props) => JSX.Element;
422
- export default SearchNavbarItem;
404
+ export default function SearchNavbarItem(props: Props): JSX.Element;
423
405
  }
424
406
 
425
407
  declare module '@theme/NavbarItem/LocaleDropdownNavbarItem' {
@@ -431,8 +413,7 @@ declare module '@theme/NavbarItem/LocaleDropdownNavbarItem' {
431
413
  readonly dropdownItemsAfter: LinkLikeNavbarItemProps[];
432
414
  }
433
415
 
434
- const LocaleDropdownNavbarItem: (props: Props) => JSX.Element;
435
- export default LocaleDropdownNavbarItem;
416
+ export default function LocaleDropdownNavbarItem(props: Props): JSX.Element;
436
417
  }
437
418
 
438
419
  declare module '@theme/NavbarItem/DocsVersionDropdownNavbarItem' {
@@ -446,8 +427,9 @@ declare module '@theme/NavbarItem/DocsVersionDropdownNavbarItem' {
446
427
  readonly dropdownItemsAfter: LinkLikeNavbarItemProps[];
447
428
  }
448
429
 
449
- const DocsVersionDropdownNavbarItem: (props: Props) => JSX.Element;
450
- export default DocsVersionDropdownNavbarItem;
430
+ export default function DocsVersionDropdownNavbarItem(
431
+ props: Props,
432
+ ): JSX.Element;
451
433
  }
452
434
 
453
435
  declare module '@theme/NavbarItem/DocsVersionNavbarItem' {
@@ -457,8 +439,7 @@ declare module '@theme/NavbarItem/DocsVersionNavbarItem' {
457
439
  readonly docsPluginId?: string;
458
440
  }
459
441
 
460
- const DocsVersionNavbarItem: (props: Props) => JSX.Element;
461
- export default DocsVersionNavbarItem;
442
+ export default function DocsVersionNavbarItem(props: Props): JSX.Element;
462
443
  }
463
444
 
464
445
  declare module '@theme/NavbarItem/DocNavbarItem' {
@@ -469,8 +450,7 @@ declare module '@theme/NavbarItem/DocNavbarItem' {
469
450
  readonly docsPluginId?: string;
470
451
  }
471
452
 
472
- const DocsSidebarNavbarItem: (props: Props) => JSX.Element;
473
- export default DocsSidebarNavbarItem;
453
+ export default function DocsSidebarNavbarItem(props: Props): JSX.Element;
474
454
  }
475
455
 
476
456
  declare module '@theme/NavbarItem/DocSidebarNavbarItem' {
@@ -481,8 +461,7 @@ declare module '@theme/NavbarItem/DocSidebarNavbarItem' {
481
461
  readonly docsPluginId?: string;
482
462
  }
483
463
 
484
- const DocSidebarNavbarItem: (props: Props) => JSX.Element;
485
- export default DocSidebarNavbarItem;
464
+ export default function DocSidebarNavbarItem(props: Props): JSX.Element;
486
465
  }
487
466
 
488
467
  declare module '@theme/NavbarItem' {
@@ -518,8 +497,7 @@ declare module '@theme/NavbarItem' {
518
497
 
519
498
  export type Types = Props['type'];
520
499
 
521
- const NavbarItem: (props: Props) => JSX.Element;
522
- export default NavbarItem;
500
+ export default function NavbarItem(props: Props): JSX.Element;
523
501
  }
524
502
 
525
503
  declare module '@theme/NavbarItem/utils' {
@@ -555,8 +533,7 @@ declare module '@theme/TabItem' {
555
533
  readonly attributes?: Record<string, unknown>;
556
534
  }
557
535
 
558
- const TabItem: (props: Props) => JSX.Element;
559
- export default TabItem;
536
+ export default function TabItem(props: Props): JSX.Element;
560
537
  }
561
538
 
562
539
  declare module '@theme/Tabs' {
@@ -577,8 +554,7 @@ declare module '@theme/Tabs' {
577
554
  readonly className?: string;
578
555
  }
579
556
 
580
- const Tabs: (props: Props) => JSX.Element;
581
- export default Tabs;
557
+ export default function Tabs(props: Props): JSX.Element;
582
558
  }
583
559
 
584
560
  declare module '@theme/ThemedImage' {
@@ -591,8 +567,7 @@ declare module '@theme/ThemedImage' {
591
567
  };
592
568
  }
593
569
 
594
- const ThemedImage: (props: Props) => JSX.Element;
595
- export default ThemedImage;
570
+ export default function ThemedImage(props: Props): JSX.Element;
596
571
  }
597
572
 
598
573
  declare module '@theme/Details' {
@@ -629,8 +604,7 @@ declare module '@theme/TOC' {
629
604
  readonly className?: string;
630
605
  }
631
606
 
632
- const TOC: (props: Props) => JSX.Element;
633
- export default TOC;
607
+ export default function TOC(props: Props): JSX.Element;
634
608
  }
635
609
 
636
610
  declare module '@theme/TOCInline' {
@@ -642,8 +616,7 @@ declare module '@theme/TOCInline' {
642
616
  readonly maxHeadingLevel?: number;
643
617
  }
644
618
 
645
- const TOCInline: (props: Props) => JSX.Element;
646
- export default TOCInline;
619
+ export default function TOCInline(props: Props): JSX.Element;
647
620
  }
648
621
 
649
622
  declare module '@theme/TOCCollapsible' {
@@ -656,8 +629,7 @@ declare module '@theme/TOCCollapsible' {
656
629
  readonly toc: readonly TOCItem[];
657
630
  }
658
631
 
659
- const TOCCollapsible: (props: Props) => JSX.Element;
660
- export default TOCCollapsible;
632
+ export default function TOCCollapsible(props: Props): JSX.Element;
661
633
  }
662
634
 
663
635
  declare module '@theme/Toggle' {
@@ -669,8 +641,7 @@ declare module '@theme/Toggle' {
669
641
  readonly onChange: (e: SyntheticEvent) => void;
670
642
  }
671
643
 
672
- const Toggle: (props: Props) => JSX.Element;
673
- export default Toggle;
644
+ export default function Toggle(props: Props): JSX.Element;
674
645
  }
675
646
 
676
647
  declare module '@theme/Logo' {
@@ -681,8 +652,7 @@ declare module '@theme/Logo' {
681
652
  readonly titleClassName?: string;
682
653
  }
683
654
 
684
- const Logo: (props: Props) => JSX.Element;
685
- export default Logo;
655
+ export default function Logo(props: Props): JSX.Element;
686
656
  }
687
657
 
688
658
  declare module '@theme/IconArrow' {
@@ -690,8 +660,7 @@ declare module '@theme/IconArrow' {
690
660
 
691
661
  export interface Props extends ComponentProps<'svg'> {}
692
662
 
693
- const IconArrow: (props: Props) => JSX.Element;
694
- export default IconArrow;
663
+ export default function IconArrow(props: Props): JSX.Element;
695
664
  }
696
665
 
697
666
  declare module '@theme/IconEdit' {
@@ -699,8 +668,7 @@ declare module '@theme/IconEdit' {
699
668
 
700
669
  export interface Props extends ComponentProps<'svg'> {}
701
670
 
702
- const IconEdit: (props: Props) => JSX.Element;
703
- export default IconEdit;
671
+ export default function IconEdit(props: Props): JSX.Element;
704
672
  }
705
673
 
706
674
  declare module '@theme/IconMenu' {
@@ -708,8 +676,7 @@ declare module '@theme/IconMenu' {
708
676
 
709
677
  export interface Props extends ComponentProps<'svg'> {}
710
678
 
711
- const IconMenu: (props: Props) => JSX.Element;
712
- export default IconMenu;
679
+ export default function IconMenu(props: Props): JSX.Element;
713
680
  }
714
681
 
715
682
  declare module '@theme/IconClose' {
@@ -717,8 +684,7 @@ declare module '@theme/IconClose' {
717
684
 
718
685
  export interface Props extends ComponentProps<'svg'> {}
719
686
 
720
- const IconClose: (props: Props) => JSX.Element;
721
- export default IconClose;
687
+ export default function IconClose(props: Props): JSX.Element;
722
688
  }
723
689
 
724
690
  declare module '@theme/IconLanguage' {
@@ -726,8 +692,7 @@ declare module '@theme/IconLanguage' {
726
692
 
727
693
  export interface Props extends ComponentProps<'svg'> {}
728
694
 
729
- const IconLanguage: (props: Props) => JSX.Element;
730
- export default IconLanguage;
695
+ export default function IconLanguage(props: Props): JSX.Element;
731
696
  }
732
697
 
733
698
  declare module '@theme/IconExternalLink' {
@@ -735,8 +700,7 @@ declare module '@theme/IconExternalLink' {
735
700
 
736
701
  export interface Props extends ComponentProps<'svg'> {}
737
702
 
738
- const IconExternalLink: (props: Props) => JSX.Element;
739
- export default IconExternalLink;
703
+ export default function IconExternalLink(props: Props): JSX.Element;
740
704
  }
741
705
 
742
706
  declare module '@theme/TagsListByLetter' {
@@ -787,6 +751,5 @@ declare module '@theme/Seo' {
787
751
  readonly children?: ReactNode;
788
752
  }
789
753
 
790
- const Seo: (props: Props) => JSX.Element;
791
- export default Seo;
754
+ export default function Seo(props: Props): JSX.Element;
792
755
  }
@@ -10,8 +10,7 @@ import {useThemeConfig, useAnnouncementBar} from '@docusaurus/theme-common';
10
10
  import {translate} from '@docusaurus/Translate';
11
11
  import IconClose from '@theme/IconClose';
12
12
  import styles from './styles.module.css';
13
-
14
- function AnnouncementBar() {
13
+ export default function AnnouncementBar() {
15
14
  const {isActive, close} = useAnnouncementBar();
16
15
  const {announcementBar} = useThemeConfig();
17
16
 
@@ -52,5 +51,3 @@ function AnnouncementBar() {
52
51
  </div>
53
52
  );
54
53
  }
55
-
56
- export default AnnouncementBar;
@@ -64,7 +64,7 @@ function useSmoothScrollToTop() {
64
64
  };
65
65
  }
66
66
 
67
- function BackToTopButton() {
67
+ export default function BackToTopButton() {
68
68
  const [show, setShow] = useState(false);
69
69
  const isFocusedAnchor = useRef(false);
70
70
  const {smoothScrollTop, cancelScrollToTop} = useSmoothScrollToTop();
@@ -129,5 +129,3 @@ function BackToTopButton() {
129
129
  />
130
130
  );
131
131
  }
132
-
133
- export default BackToTopButton;
@@ -8,8 +8,7 @@ import React from 'react';
8
8
  import clsx from 'clsx';
9
9
  import Layout from '@theme/Layout';
10
10
  import BlogSidebar from '@theme/BlogSidebar';
11
-
12
- function BlogLayout(props) {
11
+ export default function BlogLayout(props) {
13
12
  const {sidebar, toc, children, ...layoutProps} = props;
14
13
  const hasSidebar = sidebar && sidebar.items.length > 0;
15
14
  return (
@@ -36,5 +35,3 @@ function BlogLayout(props) {
36
35
  </Layout>
37
36
  );
38
37
  }
39
-
40
- export default BlogLayout;
@@ -10,8 +10,7 @@ import BlogLayout from '@theme/BlogLayout';
10
10
  import BlogPostItem from '@theme/BlogPostItem';
11
11
  import BlogListPaginator from '@theme/BlogListPaginator';
12
12
  import {ThemeClassNames} from '@docusaurus/theme-common';
13
-
14
- function BlogListPage(props) {
13
+ export default function BlogListPage(props) {
15
14
  const {metadata, items, sidebar} = props;
16
15
  const {
17
16
  siteConfig: {title: siteTitle},
@@ -44,5 +43,3 @@ function BlogListPage(props) {
44
43
  </BlogLayout>
45
44
  );
46
45
  }
47
-
48
- export default BlogListPage;
@@ -7,8 +7,7 @@
7
7
  import React from 'react';
8
8
  import Translate, {translate} from '@docusaurus/Translate';
9
9
  import PaginatorNavLink from '@theme/PaginatorNavLink';
10
-
11
- function BlogListPaginator(props) {
10
+ export default function BlogListPaginator(props) {
12
11
  const {metadata} = props;
13
12
  const {previousPage, nextPage} = metadata;
14
13
  return (
@@ -50,5 +49,3 @@ function BlogListPaginator(props) {
50
49
  </nav>
51
50
  );
52
51
  }
53
-
54
- export default BlogListPaginator;
@@ -7,8 +7,7 @@
7
7
  import React from 'react';
8
8
  import Link from '@docusaurus/Link';
9
9
  import styles from './styles.module.css';
10
-
11
- function BlogPostAuthor({author}) {
10
+ export default function BlogPostAuthor({author}) {
12
11
  const {name, title, url, imageURL} = author;
13
12
  return (
14
13
  <div className="avatar margin-bottom--sm">
@@ -39,5 +38,3 @@ function BlogPostAuthor({author}) {
39
38
  </div>
40
39
  );
41
40
  }
42
-
43
- export default BlogPostAuthor;
@@ -39,7 +39,7 @@ function useReadingTimePlural() {
39
39
  };
40
40
  }
41
41
 
42
- function BlogPostItem(props) {
42
+ export default function BlogPostItem(props) {
43
43
  const readingTimePlural = useReadingTimePlural();
44
44
  const {withBaseUrl} = useBaseUrlUtils();
45
45
  const {
@@ -164,5 +164,3 @@ function BlogPostItem(props) {
164
164
  </article>
165
165
  );
166
166
  }
167
-
168
- export default BlogPostItem;
@@ -11,8 +11,7 @@ import BlogPostItem from '@theme/BlogPostItem';
11
11
  import BlogPostPaginator from '@theme/BlogPostPaginator';
12
12
  import {ThemeClassNames} from '@docusaurus/theme-common';
13
13
  import TOC from '@theme/TOC';
14
-
15
- function BlogPostPage(props) {
14
+ export default function BlogPostPage(props) {
16
15
  const {content: BlogPostContents, sidebar} = props;
17
16
  const {assets, metadata} = BlogPostContents;
18
17
  const {
@@ -90,5 +89,3 @@ function BlogPostPage(props) {
90
89
  </BlogLayout>
91
90
  );
92
91
  }
93
-
94
- export default BlogPostPage;
@@ -7,8 +7,7 @@
7
7
  import React from 'react';
8
8
  import Translate, {translate} from '@docusaurus/Translate';
9
9
  import PaginatorNavLink from '@theme/PaginatorNavLink';
10
-
11
- function BlogPostPaginator(props) {
10
+ export default function BlogPostPaginator(props) {
12
11
  const {nextItem, prevItem} = props;
13
12
  return (
14
13
  <nav
@@ -49,5 +48,3 @@ function BlogPostPaginator(props) {
49
48
  </nav>
50
49
  );
51
50
  }
52
-
53
- export default BlogPostPaginator;
@@ -11,8 +11,7 @@ import {
11
11
  ThemeClassNames,
12
12
  translateTagsPageTitle,
13
13
  } from '@docusaurus/theme-common';
14
-
15
- function BlogTagsListPage(props) {
14
+ export default function BlogTagsListPage(props) {
16
15
  const {tags, sidebar} = props;
17
16
  const title = translateTagsPageTitle();
18
17
  return (
@@ -30,5 +29,3 @@ function BlogTagsListPage(props) {
30
29
  </BlogLayout>
31
30
  );
32
31
  }
33
-
34
- export default BlogTagsListPage;
@@ -5,7 +5,11 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import React from 'react';
8
- import {ThemeClassNames, useSidebarBreadcrumbs} from '@docusaurus/theme-common';
8
+ import {
9
+ ThemeClassNames,
10
+ useSidebarBreadcrumbs,
11
+ useHomePageRoute,
12
+ } from '@docusaurus/theme-common';
9
13
  import styles from './styles.module.css';
10
14
  import clsx from 'clsx';
11
15
  import Link from '@docusaurus/Link';
@@ -44,6 +48,7 @@ function HomeBreadcrumbItem() {
44
48
 
45
49
  export default function DocBreadcrumbs() {
46
50
  const breadcrumbs = useSidebarBreadcrumbs();
51
+ const homePageRoute = useHomePageRoute();
47
52
 
48
53
  if (!breadcrumbs) {
49
54
  return null;
@@ -57,7 +62,7 @@ export default function DocBreadcrumbs() {
57
62
  )}
58
63
  aria-label="breadcrumbs">
59
64
  <ul className="breadcrumbs">
60
- <HomeBreadcrumbItem />
65
+ {homePageRoute && <HomeBreadcrumbItem />}
61
66
  {breadcrumbs.map((item, idx) => (
62
67
  <BreadcrumbsItem key={idx} active={idx === breadcrumbs.length - 1}>
63
68
  <BreadcrumbsItemLink href={item.href}>
@@ -131,7 +131,7 @@ function DocPageContent({
131
131
  );
132
132
  }
133
133
 
134
- function DocPage(props) {
134
+ export default function DocPage(props) {
135
135
  const {
136
136
  route: {routes: docRoutes},
137
137
  versionMetadata,
@@ -170,5 +170,3 @@ function DocPage(props) {
170
170
  </>
171
171
  );
172
172
  }
173
-
174
- export default DocPage;
@@ -7,8 +7,7 @@
7
7
  import React from 'react';
8
8
  import Translate, {translate} from '@docusaurus/Translate';
9
9
  import PaginatorNavLink from '@theme/PaginatorNavLink';
10
-
11
- function DocPaginator(props) {
10
+ export default function DocPaginator(props) {
12
11
  const {previous, next} = props;
13
12
  return (
14
13
  <nav
@@ -49,5 +48,3 @@ function DocPaginator(props) {
49
48
  </nav>
50
49
  );
51
50
  }
52
-
53
- export default DocPaginator;
@@ -11,8 +11,7 @@ import {
11
11
  translateTagsPageTitle,
12
12
  } from '@docusaurus/theme-common';
13
13
  import TagsListByLetter from '@theme/TagsListByLetter';
14
-
15
- function DocTagsListPage({tags}) {
14
+ export default function DocTagsListPage({tags}) {
16
15
  const title = translateTagsPageTitle();
17
16
  return (
18
17
  <Layout
@@ -34,5 +33,3 @@ function DocTagsListPage({tags}) {
34
33
  </Layout>
35
34
  );
36
35
  }
37
-
38
- export default DocTagsListPage;
@@ -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 IconArrow(props) {
8
+ export default function IconArrow(props) {
10
9
  return (
11
10
  <svg width="20" height="20" aria-hidden="true" {...props}>
12
11
  <g fill="#7a7a7a">
@@ -16,5 +15,3 @@ function IconArrow(props) {
16
15
  </svg>
17
16
  );
18
17
  }
19
-
20
- export default IconArrow;
@@ -7,8 +7,7 @@
7
7
  import React from 'react';
8
8
  import clsx from 'clsx';
9
9
  import styles from './styles.module.css';
10
-
11
- function IconEdit({className, ...restProps}) {
10
+ export default function IconEdit({className, ...restProps}) {
12
11
  return (
13
12
  <svg
14
13
  fill="currentColor"
@@ -24,5 +23,3 @@ function IconEdit({className, ...restProps}) {
24
23
  </svg>
25
24
  );
26
25
  }
27
-
28
- export default IconEdit;
@@ -6,8 +6,7 @@
6
6
  */
7
7
  import React from 'react';
8
8
  import styles from './styles.module.css';
9
-
10
- function IconExternalLink({width = 13.5, height = 13.5}) {
9
+ export default function IconExternalLink({width = 13.5, height = 13.5}) {
11
10
  return (
12
11
  <svg
13
12
  width={width}
@@ -22,5 +21,3 @@ function IconExternalLink({width = 13.5, height = 13.5}) {
22
21
  </svg>
23
22
  );
24
23
  }
25
-
26
- export default IconExternalLink;
@@ -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 IconLanguage({width = 20, height = 20, ...props}) {
8
+ export default function IconLanguage({width = 20, height = 20, ...props}) {
10
9
  return (
11
10
  <svg
12
11
  viewBox="0 0 20 20"
@@ -21,5 +20,3 @@ function IconLanguage({width = 20, height = 20, ...props}) {
21
20
  </svg>
22
21
  );
23
22
  }
24
-
25
- export default IconLanguage;