@docusaurus/plugin-content-docs 0.0.0-4238 → 0.0.0-4243

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 (62) hide show
  1. package/lib/.tsbuildinfo +1 -1
  2. package/lib/categoryGeneratedIndex.d.ts +12 -0
  3. package/lib/categoryGeneratedIndex.js +37 -0
  4. package/lib/cli.js +5 -23
  5. package/lib/docs.d.ts +22 -2
  6. package/lib/docs.js +71 -29
  7. package/lib/index.js +34 -62
  8. package/lib/options.js +2 -0
  9. package/lib/props.js +35 -6
  10. package/lib/routes.d.ts +27 -0
  11. package/lib/routes.js +105 -0
  12. package/lib/sidebars/generator.d.ts +2 -1
  13. package/lib/sidebars/generator.js +55 -13
  14. package/lib/sidebars/index.d.ts +5 -4
  15. package/lib/sidebars/index.js +18 -9
  16. package/lib/sidebars/normalization.d.ts +8 -3
  17. package/lib/sidebars/normalization.js +36 -17
  18. package/lib/sidebars/processor.d.ts +5 -3
  19. package/lib/sidebars/processor.js +33 -18
  20. package/lib/sidebars/types.d.ts +43 -2
  21. package/lib/sidebars/utils.d.ts +18 -6
  22. package/lib/sidebars/utils.js +149 -24
  23. package/lib/sidebars/validation.d.ts +2 -0
  24. package/lib/sidebars/validation.js +44 -8
  25. package/lib/slug.d.ts +4 -3
  26. package/lib/slug.js +26 -14
  27. package/lib/translations.js +51 -7
  28. package/lib/types.d.ts +18 -3
  29. package/package.json +8 -8
  30. package/src/__tests__/__fixtures__/versioned-site/versioned_sidebars/version-1.0.1-sidebars.json +2 -2
  31. package/src/__tests__/__snapshots__/cli.test.ts.snap +48 -106
  32. package/src/__tests__/__snapshots__/index.test.ts.snap +279 -28
  33. package/src/__tests__/__snapshots__/translations.test.ts.snap +45 -0
  34. package/src/__tests__/docs.test.ts +122 -7
  35. package/src/__tests__/index.test.ts +27 -1
  36. package/src/__tests__/options.test.ts +2 -0
  37. package/src/__tests__/slug.test.ts +127 -20
  38. package/src/__tests__/translations.test.ts +7 -0
  39. package/src/categoryGeneratedIndex.ts +57 -0
  40. package/src/cli.ts +5 -35
  41. package/src/docs.ts +103 -45
  42. package/src/index.ts +55 -93
  43. package/src/options.ts +4 -0
  44. package/src/plugin-content-docs.d.ts +71 -8
  45. package/src/props.ts +48 -9
  46. package/src/routes.ts +173 -0
  47. package/src/sidebars/__tests__/__snapshots__/index.test.ts.snap +21 -6
  48. package/src/sidebars/__tests__/generator.test.ts +105 -1
  49. package/src/sidebars/__tests__/index.test.ts +26 -24
  50. package/src/sidebars/__tests__/processor.test.ts +110 -19
  51. package/src/sidebars/__tests__/utils.test.ts +320 -20
  52. package/src/sidebars/__tests__/validation.test.ts +105 -0
  53. package/src/sidebars/generator.ts +82 -19
  54. package/src/sidebars/index.ts +23 -13
  55. package/src/sidebars/normalization.ts +47 -23
  56. package/src/sidebars/processor.ts +57 -27
  57. package/src/sidebars/types.ts +64 -3
  58. package/src/sidebars/utils.ts +217 -42
  59. package/src/sidebars/validation.ts +52 -8
  60. package/src/slug.ts +32 -17
  61. package/src/translations.ts +74 -8
  62. package/src/types.ts +22 -5
@@ -43,6 +43,7 @@ Object {
43
43
  },
44
44
  ],
45
45
  "label": "foo",
46
+ "link": undefined,
46
47
  "type": "category",
47
48
  },
48
49
  Object {
@@ -67,6 +68,7 @@ Object {
67
68
  },
68
69
  ],
69
70
  "label": "Slugs",
71
+ "link": undefined,
70
72
  "type": "category",
71
73
  },
72
74
  Object {
@@ -84,6 +86,7 @@ Object {
84
86
  },
85
87
  ],
86
88
  "label": "Test",
89
+ "link": undefined,
87
90
  "type": "category",
88
91
  },
89
92
  Object {
@@ -96,6 +99,7 @@ Object {
96
99
  },
97
100
  ],
98
101
  "label": "Guides",
102
+ "link": undefined,
99
103
  "type": "category",
100
104
  },
101
105
  ],
@@ -614,12 +618,14 @@ Object {
614
618
  {
615
619
  \\"type\\": \\"link\\",
616
620
  \\"label\\": \\"Bar\\",
617
- \\"href\\": \\"/docs/foo/bar\\"
621
+ \\"href\\": \\"/docs/foo/bar\\",
622
+ \\"docId\\": \\"foo/bar\\"
618
623
  },
619
624
  {
620
625
  \\"type\\": \\"link\\",
621
626
  \\"label\\": \\"baz\\",
622
- \\"href\\": \\"/docs/foo/bazSlug.html\\"
627
+ \\"href\\": \\"/docs/foo/bazSlug.html\\",
628
+ \\"docId\\": \\"foo/baz\\"
623
629
  }
624
630
  ],
625
631
  \\"collapsible\\": true,
@@ -632,22 +638,26 @@ Object {
632
638
  {
633
639
  \\"type\\": \\"link\\",
634
640
  \\"label\\": \\"rootAbsoluteSlug\\",
635
- \\"href\\": \\"/docs/rootAbsoluteSlug\\"
641
+ \\"href\\": \\"/docs/rootAbsoluteSlug\\",
642
+ \\"docId\\": \\"rootAbsoluteSlug\\"
636
643
  },
637
644
  {
638
645
  \\"type\\": \\"link\\",
639
646
  \\"label\\": \\"rootRelativeSlug\\",
640
- \\"href\\": \\"/docs/rootRelativeSlug\\"
647
+ \\"href\\": \\"/docs/rootRelativeSlug\\",
648
+ \\"docId\\": \\"rootRelativeSlug\\"
641
649
  },
642
650
  {
643
651
  \\"type\\": \\"link\\",
644
652
  \\"label\\": \\"rootResolvedSlug\\",
645
- \\"href\\": \\"/docs/hey/rootResolvedSlug\\"
653
+ \\"href\\": \\"/docs/hey/rootResolvedSlug\\",
654
+ \\"docId\\": \\"rootResolvedSlug\\"
646
655
  },
647
656
  {
648
657
  \\"type\\": \\"link\\",
649
658
  \\"label\\": \\"rootTryToEscapeSlug\\",
650
- \\"href\\": \\"/docs/rootTryToEscapeSlug\\"
659
+ \\"href\\": \\"/docs/rootTryToEscapeSlug\\",
660
+ \\"docId\\": \\"rootTryToEscapeSlug\\"
651
661
  }
652
662
  ],
653
663
  \\"collapsible\\": true,
@@ -656,7 +666,8 @@ Object {
656
666
  {
657
667
  \\"type\\": \\"link\\",
658
668
  \\"label\\": \\"My heading as title\\",
659
- \\"href\\": \\"/docs/headingAsTitle\\"
669
+ \\"href\\": \\"/docs/headingAsTitle\\",
670
+ \\"docId\\": \\"headingAsTitle\\"
660
671
  },
661
672
  {
662
673
  \\"type\\": \\"link\\",
@@ -666,7 +677,8 @@ Object {
666
677
  {
667
678
  \\"type\\": \\"link\\",
668
679
  \\"label\\": \\"Hello sidebar_label\\",
669
- \\"href\\": \\"/docs/\\"
680
+ \\"href\\": \\"/docs/\\",
681
+ \\"docId\\": \\"hello\\"
670
682
  }
671
683
  ]
672
684
  },
@@ -679,11 +691,92 @@ Object {
679
691
  {
680
692
  \\"type\\": \\"link\\",
681
693
  \\"label\\": \\"Hello sidebar_label\\",
682
- \\"href\\": \\"/docs/\\"
694
+ \\"href\\": \\"/docs/\\",
695
+ \\"docId\\": \\"hello\\"
683
696
  }
684
697
  ]
685
698
  }
686
699
  ]
700
+ },
701
+ \\"docs\\": {
702
+ \\"foo/bar\\": {
703
+ \\"id\\": \\"foo/bar\\",
704
+ \\"title\\": \\"Bar\\",
705
+ \\"description\\": \\"This is custom description\\",
706
+ \\"sidebar\\": \\"docs\\"
707
+ },
708
+ \\"foo/baz\\": {
709
+ \\"id\\": \\"foo/baz\\",
710
+ \\"title\\": \\"baz\\",
711
+ \\"description\\": \\"Images\\",
712
+ \\"sidebar\\": \\"docs\\"
713
+ },
714
+ \\"headingAsTitle\\": {
715
+ \\"id\\": \\"headingAsTitle\\",
716
+ \\"title\\": \\"My heading as title\\",
717
+ \\"description\\": \\"\\",
718
+ \\"sidebar\\": \\"docs\\"
719
+ },
720
+ \\"hello\\": {
721
+ \\"id\\": \\"hello\\",
722
+ \\"title\\": \\"Hello, World !\\",
723
+ \\"description\\": \\"Hi, Endilie here :)\\",
724
+ \\"sidebar\\": \\"docs\\"
725
+ },
726
+ \\"ipsum\\": {
727
+ \\"id\\": \\"ipsum\\",
728
+ \\"title\\": \\"ipsum\\",
729
+ \\"description\\": \\"Lorem ipsum.\\"
730
+ },
731
+ \\"lorem\\": {
732
+ \\"id\\": \\"lorem\\",
733
+ \\"title\\": \\"lorem\\",
734
+ \\"description\\": \\"Lorem ipsum.\\"
735
+ },
736
+ \\"rootAbsoluteSlug\\": {
737
+ \\"id\\": \\"rootAbsoluteSlug\\",
738
+ \\"title\\": \\"rootAbsoluteSlug\\",
739
+ \\"description\\": \\"Lorem\\",
740
+ \\"sidebar\\": \\"docs\\"
741
+ },
742
+ \\"rootRelativeSlug\\": {
743
+ \\"id\\": \\"rootRelativeSlug\\",
744
+ \\"title\\": \\"rootRelativeSlug\\",
745
+ \\"description\\": \\"Lorem\\",
746
+ \\"sidebar\\": \\"docs\\"
747
+ },
748
+ \\"rootResolvedSlug\\": {
749
+ \\"id\\": \\"rootResolvedSlug\\",
750
+ \\"title\\": \\"rootResolvedSlug\\",
751
+ \\"description\\": \\"Lorem\\",
752
+ \\"sidebar\\": \\"docs\\"
753
+ },
754
+ \\"rootTryToEscapeSlug\\": {
755
+ \\"id\\": \\"rootTryToEscapeSlug\\",
756
+ \\"title\\": \\"rootTryToEscapeSlug\\",
757
+ \\"description\\": \\"Lorem\\",
758
+ \\"sidebar\\": \\"docs\\"
759
+ },
760
+ \\"slugs/absoluteSlug\\": {
761
+ \\"id\\": \\"slugs/absoluteSlug\\",
762
+ \\"title\\": \\"absoluteSlug\\",
763
+ \\"description\\": \\"Lorem\\"
764
+ },
765
+ \\"slugs/relativeSlug\\": {
766
+ \\"id\\": \\"slugs/relativeSlug\\",
767
+ \\"title\\": \\"relativeSlug\\",
768
+ \\"description\\": \\"Lorem\\"
769
+ },
770
+ \\"slugs/resolvedSlug\\": {
771
+ \\"id\\": \\"slugs/resolvedSlug\\",
772
+ \\"title\\": \\"resolvedSlug\\",
773
+ \\"description\\": \\"Lorem\\"
774
+ },
775
+ \\"slugs/tryToEscapeSlug\\": {
776
+ \\"id\\": \\"slugs/tryToEscapeSlug\\",
777
+ \\"title\\": \\"tryToEscapeSlug\\",
778
+ \\"description\\": \\"Lorem\\"
779
+ }
687
780
  }
688
781
  }",
689
782
  }
@@ -958,6 +1051,7 @@ Object {
958
1051
  "sidebarPosition": 0,
959
1052
  "source": "@site/docs/3-API/01_Core APIs/0 --- Client API.md",
960
1053
  "sourceDirName": "3-API/01_Core APIs",
1054
+ "unversionedId": "API/Core APIs/Client API",
961
1055
  },
962
1056
  Object {
963
1057
  "frontMatter": Object {},
@@ -965,6 +1059,7 @@ Object {
965
1059
  "sidebarPosition": 1,
966
1060
  "source": "@site/docs/3-API/01_Core APIs/1 --- Server API.md",
967
1061
  "sourceDirName": "3-API/01_Core APIs",
1062
+ "unversionedId": "API/Core APIs/Server API",
968
1063
  },
969
1064
  Object {
970
1065
  "frontMatter": Object {},
@@ -972,6 +1067,7 @@ Object {
972
1067
  "sidebarPosition": 0,
973
1068
  "source": "@site/docs/3-API/02_Extension APIs/0. Plugin API.md",
974
1069
  "sourceDirName": "3-API/02_Extension APIs",
1070
+ "unversionedId": "API/Extension APIs/Plugin API",
975
1071
  },
976
1072
  Object {
977
1073
  "frontMatter": Object {},
@@ -979,6 +1075,7 @@ Object {
979
1075
  "sidebarPosition": 1,
980
1076
  "source": "@site/docs/3-API/02_Extension APIs/1. Theme API.md",
981
1077
  "sourceDirName": "3-API/02_Extension APIs",
1078
+ "unversionedId": "API/Extension APIs/Theme API",
982
1079
  },
983
1080
  Object {
984
1081
  "frontMatter": Object {},
@@ -986,6 +1083,7 @@ Object {
986
1083
  "sidebarPosition": 3,
987
1084
  "source": "@site/docs/3-API/03_api-end.md",
988
1085
  "sourceDirName": "3-API",
1086
+ "unversionedId": "API/api-end",
989
1087
  },
990
1088
  Object {
991
1089
  "frontMatter": Object {},
@@ -993,6 +1091,7 @@ Object {
993
1091
  "sidebarPosition": 0,
994
1092
  "source": "@site/docs/3-API/00_api-overview.md",
995
1093
  "sourceDirName": "3-API",
1094
+ "unversionedId": "API/api-overview",
996
1095
  },
997
1096
  Object {
998
1097
  "frontMatter": Object {
@@ -1003,6 +1102,7 @@ Object {
1003
1102
  "sidebarPosition": 1,
1004
1103
  "source": "@site/docs/Guides/z-guide1.md",
1005
1104
  "sourceDirName": "Guides",
1105
+ "unversionedId": "Guides/guide1",
1006
1106
  },
1007
1107
  Object {
1008
1108
  "frontMatter": Object {
@@ -1012,6 +1112,7 @@ Object {
1012
1112
  "sidebarPosition": 2,
1013
1113
  "source": "@site/docs/Guides/02-guide2.md",
1014
1114
  "sourceDirName": "Guides",
1115
+ "unversionedId": "Guides/guide2",
1015
1116
  },
1016
1117
  Object {
1017
1118
  "frontMatter": Object {
@@ -1022,6 +1123,7 @@ Object {
1022
1123
  "sidebarPosition": 2.5,
1023
1124
  "source": "@site/docs/Guides/0-guide2.5.md",
1024
1125
  "sourceDirName": "Guides",
1126
+ "unversionedId": "Guides/guide2.5",
1025
1127
  },
1026
1128
  Object {
1027
1129
  "frontMatter": Object {
@@ -1032,6 +1134,7 @@ Object {
1032
1134
  "sidebarPosition": 3,
1033
1135
  "source": "@site/docs/Guides/guide3.md",
1034
1136
  "sourceDirName": "Guides",
1137
+ "unversionedId": "Guides/guide3",
1035
1138
  },
1036
1139
  Object {
1037
1140
  "frontMatter": Object {
@@ -1041,6 +1144,7 @@ Object {
1041
1144
  "sidebarPosition": undefined,
1042
1145
  "source": "@site/docs/Guides/a-guide4.md",
1043
1146
  "sourceDirName": "Guides",
1147
+ "unversionedId": "Guides/guide4",
1044
1148
  },
1045
1149
  Object {
1046
1150
  "frontMatter": Object {
@@ -1050,6 +1154,7 @@ Object {
1050
1154
  "sidebarPosition": undefined,
1051
1155
  "source": "@site/docs/Guides/b-guide5.md",
1052
1156
  "sourceDirName": "Guides",
1157
+ "unversionedId": "Guides/guide5",
1053
1158
  },
1054
1159
  Object {
1055
1160
  "frontMatter": Object {},
@@ -1057,6 +1162,7 @@ Object {
1057
1162
  "sidebarPosition": 0,
1058
1163
  "source": "@site/docs/0-getting-started.md",
1059
1164
  "sourceDirName": ".",
1165
+ "unversionedId": "getting-started",
1060
1166
  },
1061
1167
  Object {
1062
1168
  "frontMatter": Object {},
@@ -1064,6 +1170,7 @@ Object {
1064
1170
  "sidebarPosition": 1,
1065
1171
  "source": "@site/docs/1-installation.md",
1066
1172
  "sourceDirName": ".",
1173
+ "unversionedId": "installation",
1067
1174
  },
1068
1175
  ],
1069
1176
  "item": Object {
@@ -1151,9 +1258,18 @@ Object {
1151
1258
  {
1152
1259
  \\"type\\": \\"link\\",
1153
1260
  \\"label\\": \\"team\\",
1154
- \\"href\\": \\"/community/team\\"
1261
+ \\"href\\": \\"/community/team\\",
1262
+ \\"docId\\": \\"team\\"
1155
1263
  }
1156
1264
  ]
1265
+ },
1266
+ \\"docs\\": {
1267
+ \\"team\\": {
1268
+ \\"id\\": \\"team\\",
1269
+ \\"title\\": \\"team\\",
1270
+ \\"description\\": \\"Team 1.0.0\\",
1271
+ \\"sidebar\\": \\"version-1.0.0/community\\"
1272
+ }
1157
1273
  }
1158
1274
  }",
1159
1275
  "version-current-metadata-prop-751.json": "{
@@ -1169,9 +1285,18 @@ Object {
1169
1285
  {
1170
1286
  \\"type\\": \\"link\\",
1171
1287
  \\"label\\": \\"Team title translated\\",
1172
- \\"href\\": \\"/community/next/team\\"
1288
+ \\"href\\": \\"/community/next/team\\",
1289
+ \\"docId\\": \\"team\\"
1173
1290
  }
1174
1291
  ]
1292
+ },
1293
+ \\"docs\\": {
1294
+ \\"team\\": {
1295
+ \\"id\\": \\"team\\",
1296
+ \\"title\\": \\"Team title translated\\",
1297
+ \\"description\\": \\"Team current version (translated)\\",
1298
+ \\"sidebar\\": \\"community\\"
1299
+ }
1175
1300
  }
1176
1301
  }",
1177
1302
  }
@@ -1279,6 +1404,7 @@ Object {
1279
1404
  },
1280
1405
  ],
1281
1406
  "label": "Test",
1407
+ "link": undefined,
1282
1408
  "type": "category",
1283
1409
  },
1284
1410
  Object {
@@ -1291,6 +1417,7 @@ Object {
1291
1417
  },
1292
1418
  ],
1293
1419
  "label": "Guides",
1420
+ "link": undefined,
1294
1421
  "type": "category",
1295
1422
  },
1296
1423
  ],
@@ -1299,17 +1426,18 @@ Object {
1299
1426
 
1300
1427
  exports[`versioned website content: 101 version sidebars 1`] = `
1301
1428
  Object {
1302
- "version-1.0.1/docs": Array [
1429
+ "VersionedSideBarNameDoesNotMatter/docs": Array [
1303
1430
  Object {
1304
1431
  "collapsed": true,
1305
1432
  "collapsible": true,
1306
1433
  "items": Array [
1307
1434
  Object {
1308
- "id": "version-1.0.1/foo/bar",
1435
+ "id": "foo/bar",
1309
1436
  "type": "doc",
1310
1437
  },
1311
1438
  ],
1312
1439
  "label": "Test",
1440
+ "link": undefined,
1313
1441
  "type": "category",
1314
1442
  },
1315
1443
  Object {
@@ -1322,6 +1450,7 @@ Object {
1322
1450
  },
1323
1451
  ],
1324
1452
  "label": "Guides",
1453
+ "link": undefined,
1325
1454
  "type": "category",
1326
1455
  },
1327
1456
  ],
@@ -1341,6 +1470,7 @@ Object {
1341
1470
  },
1342
1471
  ],
1343
1472
  "label": "Test",
1473
+ "link": undefined,
1344
1474
  "type": "category",
1345
1475
  },
1346
1476
  Object {
@@ -1353,6 +1483,7 @@ Object {
1353
1483
  },
1354
1484
  ],
1355
1485
  "label": "Guides",
1486
+ "link": undefined,
1356
1487
  "type": "category",
1357
1488
  },
1358
1489
  ],
@@ -1562,7 +1693,7 @@ Object {
1562
1693
  \\"tags\\": [],
1563
1694
  \\"version\\": \\"1.0.1\\",
1564
1695
  \\"frontMatter\\": {},
1565
- \\"sidebar\\": \\"version-1.0.1/docs\\",
1696
+ \\"sidebar\\": \\"VersionedSideBarNameDoesNotMatter/docs\\",
1566
1697
  \\"next\\": {
1567
1698
  \\"title\\": \\"hello\\",
1568
1699
  \\"permalink\\": \\"/docs/\\"
@@ -1581,7 +1712,7 @@ Object {
1581
1712
  \\"tags\\": [],
1582
1713
  \\"version\\": \\"1.0.1\\",
1583
1714
  \\"frontMatter\\": {},
1584
- \\"sidebar\\": \\"version-1.0.1/docs\\",
1715
+ \\"sidebar\\": \\"VersionedSideBarNameDoesNotMatter/docs\\",
1585
1716
  \\"previous\\": {
1586
1717
  \\"title\\": \\"bar\\",
1587
1718
  \\"permalink\\": \\"/docs/foo/bar\\"
@@ -1791,12 +1922,14 @@ Object {
1791
1922
  {
1792
1923
  \\"type\\": \\"link\\",
1793
1924
  \\"label\\": \\"bar\\",
1794
- \\"href\\": \\"/docs/1.0.0/foo/barSlug\\"
1925
+ \\"href\\": \\"/docs/1.0.0/foo/barSlug\\",
1926
+ \\"docId\\": \\"foo/bar\\"
1795
1927
  },
1796
1928
  {
1797
1929
  \\"type\\": \\"link\\",
1798
1930
  \\"label\\": \\"baz\\",
1799
- \\"href\\": \\"/docs/1.0.0/foo/baz\\"
1931
+ \\"href\\": \\"/docs/1.0.0/foo/baz\\",
1932
+ \\"docId\\": \\"foo/baz\\"
1800
1933
  }
1801
1934
  ]
1802
1935
  },
@@ -1809,11 +1942,32 @@ Object {
1809
1942
  {
1810
1943
  \\"type\\": \\"link\\",
1811
1944
  \\"label\\": \\"hello\\",
1812
- \\"href\\": \\"/docs/1.0.0/\\"
1945
+ \\"href\\": \\"/docs/1.0.0/\\",
1946
+ \\"docId\\": \\"hello\\"
1813
1947
  }
1814
1948
  ]
1815
1949
  }
1816
1950
  ]
1951
+ },
1952
+ \\"docs\\": {
1953
+ \\"foo/bar\\": {
1954
+ \\"id\\": \\"foo/bar\\",
1955
+ \\"title\\": \\"bar\\",
1956
+ \\"description\\": \\"Bar 1.0.0 !\\",
1957
+ \\"sidebar\\": \\"version-1.0.0/docs\\"
1958
+ },
1959
+ \\"foo/baz\\": {
1960
+ \\"id\\": \\"foo/baz\\",
1961
+ \\"title\\": \\"baz\\",
1962
+ \\"description\\": \\"Baz 1.0.0 ! This will be deleted in next subsequent versions.\\",
1963
+ \\"sidebar\\": \\"version-1.0.0/docs\\"
1964
+ },
1965
+ \\"hello\\": {
1966
+ \\"id\\": \\"hello\\",
1967
+ \\"title\\": \\"hello\\",
1968
+ \\"description\\": \\"Hello 1.0.0 ! (translated en)\\",
1969
+ \\"sidebar\\": \\"version-1.0.0/docs\\"
1970
+ }
1817
1971
  }
1818
1972
  }",
1819
1973
  "version-1-0-1-metadata-prop-e87.json": "{
@@ -1825,7 +1979,7 @@ Object {
1825
1979
  \\"className\\": \\"docs-version-1.0.1\\",
1826
1980
  \\"isLast\\": true,
1827
1981
  \\"docsSidebars\\": {
1828
- \\"version-1.0.1/docs\\": [
1982
+ \\"VersionedSideBarNameDoesNotMatter/docs\\": [
1829
1983
  {
1830
1984
  \\"type\\": \\"category\\",
1831
1985
  \\"collapsed\\": true,
@@ -1835,7 +1989,8 @@ Object {
1835
1989
  {
1836
1990
  \\"type\\": \\"link\\",
1837
1991
  \\"label\\": \\"bar\\",
1838
- \\"href\\": \\"/docs/foo/bar\\"
1992
+ \\"href\\": \\"/docs/foo/bar\\",
1993
+ \\"docId\\": \\"foo/bar\\"
1839
1994
  }
1840
1995
  ]
1841
1996
  },
@@ -1848,11 +2003,26 @@ Object {
1848
2003
  {
1849
2004
  \\"type\\": \\"link\\",
1850
2005
  \\"label\\": \\"hello\\",
1851
- \\"href\\": \\"/docs/\\"
2006
+ \\"href\\": \\"/docs/\\",
2007
+ \\"docId\\": \\"hello\\"
1852
2008
  }
1853
2009
  ]
1854
2010
  }
1855
2011
  ]
2012
+ },
2013
+ \\"docs\\": {
2014
+ \\"foo/bar\\": {
2015
+ \\"id\\": \\"foo/bar\\",
2016
+ \\"title\\": \\"bar\\",
2017
+ \\"description\\": \\"Bar 1.0.1 !\\",
2018
+ \\"sidebar\\": \\"VersionedSideBarNameDoesNotMatter/docs\\"
2019
+ },
2020
+ \\"hello\\": {
2021
+ \\"id\\": \\"hello\\",
2022
+ \\"title\\": \\"hello\\",
2023
+ \\"description\\": \\"Hello 1.0.1 !\\",
2024
+ \\"sidebar\\": \\"VersionedSideBarNameDoesNotMatter/docs\\"
2025
+ }
1856
2026
  }
1857
2027
  }",
1858
2028
  "version-current-metadata-prop-751.json": "{
@@ -1874,7 +2044,8 @@ Object {
1874
2044
  {
1875
2045
  \\"type\\": \\"link\\",
1876
2046
  \\"label\\": \\"bar\\",
1877
- \\"href\\": \\"/docs/next/foo/barSlug\\"
2047
+ \\"href\\": \\"/docs/next/foo/barSlug\\",
2048
+ \\"docId\\": \\"foo/bar\\"
1878
2049
  }
1879
2050
  ]
1880
2051
  },
@@ -1887,11 +2058,46 @@ Object {
1887
2058
  {
1888
2059
  \\"type\\": \\"link\\",
1889
2060
  \\"label\\": \\"hello\\",
1890
- \\"href\\": \\"/docs/next/\\"
2061
+ \\"href\\": \\"/docs/next/\\",
2062
+ \\"docId\\": \\"hello\\"
1891
2063
  }
1892
2064
  ]
1893
2065
  }
1894
2066
  ]
2067
+ },
2068
+ \\"docs\\": {
2069
+ \\"foo/bar\\": {
2070
+ \\"id\\": \\"foo/bar\\",
2071
+ \\"title\\": \\"bar\\",
2072
+ \\"description\\": \\"This is next version of bar.\\",
2073
+ \\"sidebar\\": \\"docs\\"
2074
+ },
2075
+ \\"hello\\": {
2076
+ \\"id\\": \\"hello\\",
2077
+ \\"title\\": \\"hello\\",
2078
+ \\"description\\": \\"Hello next !\\",
2079
+ \\"sidebar\\": \\"docs\\"
2080
+ },
2081
+ \\"slugs/absoluteSlug\\": {
2082
+ \\"id\\": \\"slugs/absoluteSlug\\",
2083
+ \\"title\\": \\"absoluteSlug\\",
2084
+ \\"description\\": \\"Lorem\\"
2085
+ },
2086
+ \\"slugs/relativeSlug\\": {
2087
+ \\"id\\": \\"slugs/relativeSlug\\",
2088
+ \\"title\\": \\"relativeSlug\\",
2089
+ \\"description\\": \\"Lorem\\"
2090
+ },
2091
+ \\"slugs/resolvedSlug\\": {
2092
+ \\"id\\": \\"slugs/resolvedSlug\\",
2093
+ \\"title\\": \\"resolvedSlug\\",
2094
+ \\"description\\": \\"Lorem\\"
2095
+ },
2096
+ \\"slugs/tryToEscapeSlug\\": {
2097
+ \\"id\\": \\"slugs/tryToEscapeSlug\\",
2098
+ \\"title\\": \\"tryToEscapeSlug\\",
2099
+ \\"description\\": \\"Lorem\\"
2100
+ }
1895
2101
  }
1896
2102
  }",
1897
2103
  "version-with-slugs-metadata-prop-2bf.json": "{
@@ -1913,11 +2119,55 @@ Object {
1913
2119
  {
1914
2120
  \\"type\\": \\"link\\",
1915
2121
  \\"label\\": \\"rootAbsoluteSlug\\",
1916
- \\"href\\": \\"/docs/withSlugs/rootAbsoluteSlug\\"
2122
+ \\"href\\": \\"/docs/withSlugs/rootAbsoluteSlug\\",
2123
+ \\"docId\\": \\"rootAbsoluteSlug\\"
1917
2124
  }
1918
2125
  ]
1919
2126
  }
1920
2127
  ]
2128
+ },
2129
+ \\"docs\\": {
2130
+ \\"rootAbsoluteSlug\\": {
2131
+ \\"id\\": \\"rootAbsoluteSlug\\",
2132
+ \\"title\\": \\"rootAbsoluteSlug\\",
2133
+ \\"description\\": \\"Lorem\\",
2134
+ \\"sidebar\\": \\"version-1.0.1/docs\\"
2135
+ },
2136
+ \\"rootRelativeSlug\\": {
2137
+ \\"id\\": \\"rootRelativeSlug\\",
2138
+ \\"title\\": \\"rootRelativeSlug\\",
2139
+ \\"description\\": \\"Lorem\\"
2140
+ },
2141
+ \\"rootResolvedSlug\\": {
2142
+ \\"id\\": \\"rootResolvedSlug\\",
2143
+ \\"title\\": \\"rootResolvedSlug\\",
2144
+ \\"description\\": \\"Lorem\\"
2145
+ },
2146
+ \\"rootTryToEscapeSlug\\": {
2147
+ \\"id\\": \\"rootTryToEscapeSlug\\",
2148
+ \\"title\\": \\"rootTryToEscapeSlug\\",
2149
+ \\"description\\": \\"Lorem\\"
2150
+ },
2151
+ \\"slugs/absoluteSlug\\": {
2152
+ \\"id\\": \\"slugs/absoluteSlug\\",
2153
+ \\"title\\": \\"absoluteSlug\\",
2154
+ \\"description\\": \\"Lorem\\"
2155
+ },
2156
+ \\"slugs/relativeSlug\\": {
2157
+ \\"id\\": \\"slugs/relativeSlug\\",
2158
+ \\"title\\": \\"relativeSlug\\",
2159
+ \\"description\\": \\"Lorem\\"
2160
+ },
2161
+ \\"slugs/resolvedSlug\\": {
2162
+ \\"id\\": \\"slugs/resolvedSlug\\",
2163
+ \\"title\\": \\"resolvedSlug\\",
2164
+ \\"description\\": \\"Lorem\\"
2165
+ },
2166
+ \\"slugs/tryToEscapeSlug\\": {
2167
+ \\"id\\": \\"slugs/tryToEscapeSlug\\",
2168
+ \\"title\\": \\"tryToEscapeSlug\\",
2169
+ \\"description\\": \\"Lorem\\"
2170
+ }
1921
2171
  }
1922
2172
  }",
1923
2173
  }
@@ -1973,12 +2223,12 @@ Object {
1973
2223
  Object {
1974
2224
  "id": "foo/bar",
1975
2225
  "path": "/docs/foo/bar",
1976
- "sidebar": "version-1.0.1/docs",
2226
+ "sidebar": "VersionedSideBarNameDoesNotMatter/docs",
1977
2227
  },
1978
2228
  Object {
1979
2229
  "id": "hello",
1980
2230
  "path": "/docs/",
1981
- "sidebar": "version-1.0.1/docs",
2231
+ "sidebar": "VersionedSideBarNameDoesNotMatter/docs",
1982
2232
  },
1983
2233
  ],
1984
2234
  "isLast": true,
@@ -2291,7 +2541,7 @@ Array [
2291
2541
  "content": "@site/versioned_docs/version-1.0.1/hello.md",
2292
2542
  },
2293
2543
  "path": "/docs/",
2294
- "sidebar": "version-1.0.1/docs",
2544
+ "sidebar": "VersionedSideBarNameDoesNotMatter/docs",
2295
2545
  },
2296
2546
  Object {
2297
2547
  "component": "@theme/DocItem",
@@ -2300,7 +2550,7 @@ Array [
2300
2550
  "content": "@site/versioned_docs/version-1.0.1/foo/bar.md",
2301
2551
  },
2302
2552
  "path": "/docs/foo/bar",
2303
- "sidebar": "version-1.0.1/docs",
2553
+ "sidebar": "VersionedSideBarNameDoesNotMatter/docs",
2304
2554
  },
2305
2555
  ],
2306
2556
  },
@@ -2320,6 +2570,7 @@ Object {
2320
2570
  },
2321
2571
  ],
2322
2572
  "label": "Test",
2573
+ "link": undefined,
2323
2574
  "type": "category",
2324
2575
  },
2325
2576
  ],