@docusaurus/plugin-content-docs 0.0.0-4244 → 0.0.0-4249

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.
@@ -337,7 +337,6 @@ describe('simple website', () => {
337
337
  id: 'foo/baz',
338
338
  unversionedId: 'foo/baz',
339
339
  sourceDirName: 'foo',
340
- isDocsHomePage: false,
341
340
  permalink: '/docs/foo/bazSlug.html',
342
341
  slug: '/foo/bazSlug.html',
343
342
  previous: {
@@ -388,7 +387,6 @@ describe('simple website', () => {
388
387
  id: 'hello',
389
388
  unversionedId: 'hello',
390
389
  sourceDirName: '.',
391
- isDocsHomePage: true,
392
390
  permalink: '/docs/',
393
391
  slug: '/',
394
392
  previous: {
@@ -427,7 +425,6 @@ describe('simple website', () => {
427
425
  id: 'foo/bar',
428
426
  unversionedId: 'foo/bar',
429
427
  sourceDirName: 'foo',
430
- isDocsHomePage: false,
431
428
  next: {
432
429
  title: 'baz pagination_label',
433
430
  permalink: '/docs/foo/bazSlug.html',
@@ -588,7 +585,6 @@ describe('versioned website', () => {
588
585
  id: 'foo/bar',
589
586
  unversionedId: 'foo/bar',
590
587
  sourceDirName: 'foo',
591
- isDocsHomePage: false,
592
588
  permalink: '/docs/next/foo/barSlug',
593
589
  slug: '/foo/barSlug',
594
590
  source: path.posix.join(
@@ -624,7 +620,6 @@ describe('versioned website', () => {
624
620
  id: 'version-1.0.1/foo/bar',
625
621
  unversionedId: 'foo/bar',
626
622
  sourceDirName: 'foo',
627
- isDocsHomePage: false,
628
623
  permalink: '/docs/foo/bar',
629
624
  slug: '/foo/bar',
630
625
  source: path.posix.join(
@@ -650,7 +645,6 @@ describe('versioned website', () => {
650
645
  id: 'hello',
651
646
  unversionedId: 'hello',
652
647
  sourceDirName: '.',
653
- isDocsHomePage: true,
654
648
  permalink: '/docs/next/',
655
649
  slug: '/',
656
650
  source: path.posix.join(
@@ -673,7 +667,6 @@ describe('versioned website', () => {
673
667
  id: 'version-1.0.1/hello',
674
668
  unversionedId: 'hello',
675
669
  sourceDirName: '.',
676
- isDocsHomePage: true,
677
670
  permalink: '/docs/',
678
671
  slug: '/',
679
672
  source: path.posix.join(
@@ -696,7 +689,6 @@ describe('versioned website', () => {
696
689
  id: 'version-1.0.0/foo/baz',
697
690
  unversionedId: 'foo/baz',
698
691
  sourceDirName: 'foo',
699
- isDocsHomePage: false,
700
692
  permalink: '/docs/1.0.0/foo/baz',
701
693
  slug: '/foo/baz',
702
694
  source: path.posix.join(
@@ -844,7 +836,6 @@ describe('versioned website (community)', () => {
844
836
  id: 'team',
845
837
  unversionedId: 'team',
846
838
  sourceDirName: '.',
847
- isDocsHomePage: false,
848
839
  permalink: '/community/next/team',
849
840
  slug: '/team',
850
841
  source:
@@ -860,7 +851,6 @@ describe('versioned website (community)', () => {
860
851
  id: 'version-1.0.0/team',
861
852
  unversionedId: 'team',
862
853
  sourceDirName: '.',
863
- isDocsHomePage: false,
864
854
  permalink: '/community/team',
865
855
  slug: '/team',
866
856
  source: path.posix.join(
@@ -1056,7 +1046,6 @@ describe('site with full autogenerated sidebar', () => {
1056
1046
  id: 'getting-started',
1057
1047
  unversionedId: 'getting-started',
1058
1048
  sourceDirName: '.',
1059
- isDocsHomePage: false,
1060
1049
  permalink: '/docs/getting-started',
1061
1050
  slug: '/getting-started',
1062
1051
  source: path.posix.join(
@@ -1082,7 +1071,6 @@ describe('site with full autogenerated sidebar', () => {
1082
1071
  id: 'installation',
1083
1072
  unversionedId: 'installation',
1084
1073
  sourceDirName: '.',
1085
- isDocsHomePage: false,
1086
1074
  permalink: '/docs/installation',
1087
1075
  slug: '/installation',
1088
1076
  source: path.posix.join(
@@ -1111,7 +1099,6 @@ describe('site with full autogenerated sidebar', () => {
1111
1099
  id: 'Guides/guide1',
1112
1100
  unversionedId: 'Guides/guide1',
1113
1101
  sourceDirName: 'Guides',
1114
- isDocsHomePage: false,
1115
1102
  permalink: '/docs/Guides/guide1',
1116
1103
  slug: '/Guides/guide1',
1117
1104
  source: path.posix.join(
@@ -1144,7 +1131,6 @@ describe('site with full autogenerated sidebar', () => {
1144
1131
  id: 'Guides/guide2',
1145
1132
  unversionedId: 'Guides/guide2',
1146
1133
  sourceDirName: 'Guides',
1147
- isDocsHomePage: false,
1148
1134
  permalink: '/docs/Guides/guide2',
1149
1135
  slug: '/Guides/guide2',
1150
1136
  source: path.posix.join(
@@ -1176,7 +1162,6 @@ describe('site with full autogenerated sidebar', () => {
1176
1162
  id: 'Guides/guide2.5',
1177
1163
  unversionedId: 'Guides/guide2.5',
1178
1164
  sourceDirName: 'Guides',
1179
- isDocsHomePage: false,
1180
1165
  permalink: '/docs/Guides/guide2.5',
1181
1166
  slug: '/Guides/guide2.5',
1182
1167
  source: path.posix.join(
@@ -1209,7 +1194,6 @@ describe('site with full autogenerated sidebar', () => {
1209
1194
  id: 'Guides/guide3',
1210
1195
  unversionedId: 'Guides/guide3',
1211
1196
  sourceDirName: 'Guides',
1212
- isDocsHomePage: false,
1213
1197
  permalink: '/docs/Guides/guide3',
1214
1198
  slug: '/Guides/guide3',
1215
1199
  source: path.posix.join(
@@ -1242,7 +1226,6 @@ describe('site with full autogenerated sidebar', () => {
1242
1226
  id: 'Guides/guide4',
1243
1227
  unversionedId: 'Guides/guide4',
1244
1228
  sourceDirName: 'Guides',
1245
- isDocsHomePage: false,
1246
1229
  permalink: '/docs/Guides/guide4',
1247
1230
  slug: '/Guides/guide4',
1248
1231
  source: path.posix.join(
@@ -1274,7 +1257,6 @@ describe('site with full autogenerated sidebar', () => {
1274
1257
  id: 'Guides/guide5',
1275
1258
  unversionedId: 'Guides/guide5',
1276
1259
  sourceDirName: 'Guides',
1277
- isDocsHomePage: false,
1278
1260
  permalink: '/docs/Guides/guide5',
1279
1261
  slug: '/Guides/guide5',
1280
1262
  source: path.posix.join(
@@ -1306,7 +1288,6 @@ describe('site with full autogenerated sidebar', () => {
1306
1288
  id: 'API/api-overview',
1307
1289
  unversionedId: 'API/api-overview',
1308
1290
  sourceDirName: '3-API',
1309
- isDocsHomePage: false,
1310
1291
  permalink: '/docs/API/api-overview',
1311
1292
  slug: '/API/api-overview',
1312
1293
  source: path.posix.join(
@@ -1336,7 +1317,6 @@ describe('site with full autogenerated sidebar', () => {
1336
1317
  id: 'API/Core APIs/Client API',
1337
1318
  unversionedId: 'API/Core APIs/Client API',
1338
1319
  sourceDirName: '3-API/01_Core APIs',
1339
- isDocsHomePage: false,
1340
1320
  permalink: '/docs/API/Core APIs/Client API',
1341
1321
  slug: '/API/Core APIs/Client API',
1342
1322
  source: path.posix.join(
@@ -1367,7 +1347,6 @@ describe('site with full autogenerated sidebar', () => {
1367
1347
  id: 'API/Core APIs/Server API',
1368
1348
  unversionedId: 'API/Core APIs/Server API',
1369
1349
  sourceDirName: '3-API/01_Core APIs',
1370
- isDocsHomePage: false,
1371
1350
  permalink: '/docs/API/Core APIs/Server API',
1372
1351
  slug: '/API/Core APIs/Server API',
1373
1352
  source: path.posix.join(
@@ -1398,7 +1377,6 @@ describe('site with full autogenerated sidebar', () => {
1398
1377
  id: 'API/Extension APIs/Plugin API',
1399
1378
  unversionedId: 'API/Extension APIs/Plugin API',
1400
1379
  sourceDirName: '3-API/02_Extension APIs',
1401
- isDocsHomePage: false,
1402
1380
  permalink: '/docs/API/Extension APIs/Plugin API',
1403
1381
  slug: '/API/Extension APIs/Plugin API',
1404
1382
  source: path.posix.join(
@@ -1429,7 +1407,6 @@ describe('site with full autogenerated sidebar', () => {
1429
1407
  id: 'API/Extension APIs/Theme API',
1430
1408
  unversionedId: 'API/Extension APIs/Theme API',
1431
1409
  sourceDirName: '3-API/02_Extension APIs',
1432
- isDocsHomePage: false,
1433
1410
  permalink: '/docs/API/Extension APIs/Theme API',
1434
1411
  slug: '/API/Extension APIs/Theme API',
1435
1412
  source: path.posix.join(
@@ -1460,7 +1437,6 @@ describe('site with full autogenerated sidebar', () => {
1460
1437
  id: 'API/api-end',
1461
1438
  unversionedId: 'API/api-end',
1462
1439
  sourceDirName: '3-API',
1463
- isDocsHomePage: false,
1464
1440
  permalink: '/docs/API/api-end',
1465
1441
  slug: '/API/api-end',
1466
1442
  source: path.posix.join(
@@ -1555,7 +1531,6 @@ describe('site with partial autogenerated sidebars', () => {
1555
1531
  id: 'API/api-end',
1556
1532
  unversionedId: 'API/api-end',
1557
1533
  sourceDirName: '3-API',
1558
- isDocsHomePage: false,
1559
1534
  permalink: '/docs/API/api-end',
1560
1535
  slug: '/API/api-end',
1561
1536
  source: path.posix.join(
@@ -1582,7 +1557,6 @@ describe('site with partial autogenerated sidebars', () => {
1582
1557
  id: 'API/api-overview',
1583
1558
  unversionedId: 'API/api-overview',
1584
1559
  sourceDirName: '3-API',
1585
- isDocsHomePage: false,
1586
1560
  permalink: '/docs/API/api-overview',
1587
1561
  slug: '/API/api-overview',
1588
1562
  source: path.posix.join(
@@ -1612,7 +1586,6 @@ describe('site with partial autogenerated sidebars', () => {
1612
1586
  id: 'API/Extension APIs/Plugin API',
1613
1587
  unversionedId: 'API/Extension APIs/Plugin API',
1614
1588
  sourceDirName: '3-API/02_Extension APIs',
1615
- isDocsHomePage: false,
1616
1589
  permalink: '/docs/API/Extension APIs/Plugin API',
1617
1590
  slug: '/API/Extension APIs/Plugin API',
1618
1591
  source: path.posix.join(
@@ -1643,7 +1616,6 @@ describe('site with partial autogenerated sidebars', () => {
1643
1616
  id: 'API/Extension APIs/Theme API',
1644
1617
  unversionedId: 'API/Extension APIs/Theme API',
1645
1618
  sourceDirName: '3-API/02_Extension APIs',
1646
- isDocsHomePage: false,
1647
1619
  permalink: '/docs/API/Extension APIs/Theme API',
1648
1620
  slug: '/API/Extension APIs/Theme API',
1649
1621
  source: path.posix.join(
@@ -16,7 +16,6 @@ import {updateTranslationFileMessages} from '@docusaurus/utils';
16
16
  function createSampleDoc(doc: Pick<DocMetadata, 'id'>): DocMetadata {
17
17
  return {
18
18
  editUrl: 'any',
19
- isDocsHomePage: false,
20
19
  lastUpdatedAt: 0,
21
20
  lastUpdatedBy: 'any',
22
21
  next: undefined,
package/src/docs.ts CHANGED
@@ -255,7 +255,6 @@ function doProcessDocMetadata({
255
255
  return {
256
256
  unversionedId,
257
257
  id,
258
- isDocsHomePage,
259
258
  title,
260
259
  description,
261
260
  source: aliasedSitePath(filePath, siteDir),
package/src/types.ts CHANGED
@@ -144,7 +144,6 @@ export type DocMetadataBase = LastUpdateData & {
144
144
  id: string; // TODO legacy versioned id => try to remove
145
145
  unversionedId: string; // TODO new unversioned id => try to rename to "id"
146
146
  version: VersionName;
147
- isDocsHomePage: boolean;
148
147
  title: string;
149
148
  description: string;
150
149
  source: string; // @site aliased source => "@site/docs/folder/subFolder/subSubFolder/myDoc.md"