@docusaurus/theme-classic 0.0.0-4625 → 0.0.0-4626
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/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/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
package/lib/theme-classic.d.ts
CHANGED
|
@@ -24,8 +24,7 @@ declare module '@theme/Admonition' {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
declare module '@theme/AnnouncementBar' {
|
|
27
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
330
|
-
export default LastUpdated;
|
|
316
|
+
export default function LastUpdated(props: Props): JSX.Element;
|
|
331
317
|
}
|
|
332
318
|
|
|
333
319
|
declare module '@theme/SkipToContent' {
|
|
334
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
450
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -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;
|
|
@@ -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;
|