diff --git a/packages/docusaurus-plugin-content-docs/src/__tests__/__snapshots__/index.test.ts.snap b/packages/docusaurus-plugin-content-docs/src/__tests__/__snapshots__/index.test.ts.snap index 6c7b956b31..48511958c8 100644 --- a/packages/docusaurus-plugin-content-docs/src/__tests__/__snapshots__/index.test.ts.snap +++ b/packages/docusaurus-plugin-content-docs/src/__tests__/__snapshots__/index.test.ts.snap @@ -202,7 +202,6 @@ Object { "site-docs-foo-bar-md-8c2.json": "{ \\"unversionedId\\": \\"foo/bar\\", \\"id\\": \\"foo/bar\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"Bar\\", \\"description\\": \\"This is custom description\\", \\"source\\": \\"@site/docs/foo/bar.md\\", @@ -225,7 +224,6 @@ Object { "site-docs-foo-baz-md-a69.json": "{ \\"unversionedId\\": \\"foo/baz\\", \\"id\\": \\"foo/baz\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"baz\\", \\"description\\": \\"Images\\", \\"source\\": \\"@site/docs/foo/baz.md\\", @@ -270,7 +268,6 @@ Object { "site-docs-heading-as-title-md-c6d.json": "{ \\"unversionedId\\": \\"headingAsTitle\\", \\"id\\": \\"headingAsTitle\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"My heading as title\\", \\"description\\": \\"\\", \\"source\\": \\"@site/docs/headingAsTitle.md\\", @@ -293,7 +290,6 @@ Object { "site-docs-hello-md-9df.json": "{ \\"unversionedId\\": \\"hello\\", \\"id\\": \\"hello\\", - \\"isDocsHomePage\\": true, \\"title\\": \\"Hello, World !\\", \\"description\\": \\"Hi, Endilie here :)\\", \\"source\\": \\"@site/docs/hello.md\\", @@ -329,7 +325,6 @@ Object { "site-docs-ipsum-md-c61.json": "{ \\"unversionedId\\": \\"ipsum\\", \\"id\\": \\"ipsum\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"ipsum\\", \\"description\\": \\"Lorem ipsum.\\", \\"source\\": \\"@site/docs/ipsum.md\\", @@ -346,7 +341,6 @@ Object { "site-docs-lorem-md-b27.json": "{ \\"unversionedId\\": \\"lorem\\", \\"id\\": \\"lorem\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"lorem\\", \\"description\\": \\"Lorem ipsum.\\", \\"source\\": \\"@site/docs/lorem.md\\", @@ -364,7 +358,6 @@ Object { "site-docs-root-absolute-slug-md-db5.json": "{ \\"unversionedId\\": \\"rootAbsoluteSlug\\", \\"id\\": \\"rootAbsoluteSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"rootAbsoluteSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/docs/rootAbsoluteSlug.md\\", @@ -391,7 +384,6 @@ Object { "site-docs-root-relative-slug-md-3dd.json": "{ \\"unversionedId\\": \\"rootRelativeSlug\\", \\"id\\": \\"rootRelativeSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"rootRelativeSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/docs/rootRelativeSlug.md\\", @@ -418,7 +410,6 @@ Object { "site-docs-root-resolved-slug-md-4d1.json": "{ \\"unversionedId\\": \\"rootResolvedSlug\\", \\"id\\": \\"rootResolvedSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"rootResolvedSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/docs/rootResolvedSlug.md\\", @@ -445,7 +436,6 @@ Object { "site-docs-root-try-to-escape-slug-md-9ee.json": "{ \\"unversionedId\\": \\"rootTryToEscapeSlug\\", \\"id\\": \\"rootTryToEscapeSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"rootTryToEscapeSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/docs/rootTryToEscapeSlug.md\\", @@ -472,7 +462,6 @@ Object { "site-docs-slugs-absolute-slug-md-4e8.json": "{ \\"unversionedId\\": \\"slugs/absoluteSlug\\", \\"id\\": \\"slugs/absoluteSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"absoluteSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/docs/slugs/absoluteSlug.md\\", @@ -488,7 +477,6 @@ Object { "site-docs-slugs-relative-slug-md-d1c.json": "{ \\"unversionedId\\": \\"slugs/relativeSlug\\", \\"id\\": \\"slugs/relativeSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"relativeSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/docs/slugs/relativeSlug.md\\", @@ -504,7 +492,6 @@ Object { "site-docs-slugs-resolved-slug-md-02b.json": "{ \\"unversionedId\\": \\"slugs/resolvedSlug\\", \\"id\\": \\"slugs/resolvedSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"resolvedSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/docs/slugs/resolvedSlug.md\\", @@ -520,7 +507,6 @@ Object { "site-docs-slugs-try-to-escape-slug-md-70d.json": "{ \\"unversionedId\\": \\"slugs/tryToEscapeSlug\\", \\"id\\": \\"slugs/tryToEscapeSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"tryToEscapeSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/docs/slugs/tryToEscapeSlug.md\\", @@ -1216,7 +1202,6 @@ Object { "site-community-versioned-docs-version-1-0-0-team-md-359.json": "{ \\"unversionedId\\": \\"team\\", \\"id\\": \\"version-1.0.0/team\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"team\\", \\"description\\": \\"Team 1.0.0\\", \\"source\\": \\"@site/community_versioned_docs/version-1.0.0/team.md\\", @@ -1231,7 +1216,6 @@ Object { "site-i-18-n-en-docusaurus-plugin-content-docs-community-current-team-md-7e5.json": "{ \\"unversionedId\\": \\"team\\", \\"id\\": \\"team\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"Team title translated\\", \\"description\\": \\"Team current version (translated)\\", \\"source\\": \\"@site/i18n/en/docusaurus-plugin-content-docs-community/current/team.md\\", @@ -1495,7 +1479,6 @@ Object { "site-docs-foo-bar-md-8c2.json": "{ \\"unversionedId\\": \\"foo/bar\\", \\"id\\": \\"foo/bar\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"bar\\", \\"description\\": \\"This is next version of bar.\\", \\"source\\": \\"@site/docs/foo/bar.md\\", @@ -1537,7 +1520,6 @@ Object { "site-docs-hello-md-9df.json": "{ \\"unversionedId\\": \\"hello\\", \\"id\\": \\"hello\\", - \\"isDocsHomePage\\": true, \\"title\\": \\"hello\\", \\"description\\": \\"Hello next !\\", \\"source\\": \\"@site/docs/hello.md\\", @@ -1556,7 +1538,6 @@ Object { "site-docs-slugs-absolute-slug-md-4e8.json": "{ \\"unversionedId\\": \\"slugs/absoluteSlug\\", \\"id\\": \\"slugs/absoluteSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"absoluteSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/docs/slugs/absoluteSlug.md\\", @@ -1572,7 +1553,6 @@ Object { "site-docs-slugs-relative-slug-md-d1c.json": "{ \\"unversionedId\\": \\"slugs/relativeSlug\\", \\"id\\": \\"slugs/relativeSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"relativeSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/docs/slugs/relativeSlug.md\\", @@ -1588,7 +1568,6 @@ Object { "site-docs-slugs-resolved-slug-md-02b.json": "{ \\"unversionedId\\": \\"slugs/resolvedSlug\\", \\"id\\": \\"slugs/resolvedSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"resolvedSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/docs/slugs/resolvedSlug.md\\", @@ -1604,7 +1583,6 @@ Object { "site-docs-slugs-try-to-escape-slug-md-70d.json": "{ \\"unversionedId\\": \\"slugs/tryToEscapeSlug\\", \\"id\\": \\"slugs/tryToEscapeSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"tryToEscapeSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/docs/slugs/tryToEscapeSlug.md\\", @@ -1620,7 +1598,6 @@ Object { "site-i-18-n-en-docusaurus-plugin-content-docs-version-1-0-0-hello-md-fe5.json": "{ \\"unversionedId\\": \\"hello\\", \\"id\\": \\"version-1.0.0/hello\\", - \\"isDocsHomePage\\": true, \\"title\\": \\"hello\\", \\"description\\": \\"Hello 1.0.0 ! (translated en)\\", \\"source\\": \\"@site/i18n/en/docusaurus-plugin-content-docs/version-1.0.0/hello.md\\", @@ -1639,7 +1616,6 @@ Object { "site-versioned-docs-version-1-0-0-foo-bar-md-7a6.json": "{ \\"unversionedId\\": \\"foo/bar\\", \\"id\\": \\"version-1.0.0/foo/bar\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"bar\\", \\"description\\": \\"Bar 1.0.0 !\\", \\"source\\": \\"@site/versioned_docs/version-1.0.0/foo/bar.md\\", @@ -1660,7 +1636,6 @@ Object { "site-versioned-docs-version-1-0-0-foo-baz-md-883.json": "{ \\"unversionedId\\": \\"foo/baz\\", \\"id\\": \\"version-1.0.0/foo/baz\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"baz\\", \\"description\\": \\"Baz 1.0.0 ! This will be deleted in next subsequent versions.\\", \\"source\\": \\"@site/versioned_docs/version-1.0.0/foo/baz.md\\", @@ -1683,7 +1658,6 @@ Object { "site-versioned-docs-version-1-0-1-foo-bar-md-7a3.json": "{ \\"unversionedId\\": \\"foo/bar\\", \\"id\\": \\"version-1.0.1/foo/bar\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"bar\\", \\"description\\": \\"Bar 1.0.1 !\\", \\"source\\": \\"@site/versioned_docs/version-1.0.1/foo/bar.md\\", @@ -1702,7 +1676,6 @@ Object { "site-versioned-docs-version-1-0-1-hello-md-0c7.json": "{ \\"unversionedId\\": \\"hello\\", \\"id\\": \\"version-1.0.1/hello\\", - \\"isDocsHomePage\\": true, \\"title\\": \\"hello\\", \\"description\\": \\"Hello 1.0.1 !\\", \\"source\\": \\"@site/versioned_docs/version-1.0.1/hello.md\\", @@ -1721,7 +1694,6 @@ Object { "site-versioned-docs-version-with-slugs-root-absolute-slug-md-4d2.json": "{ \\"unversionedId\\": \\"rootAbsoluteSlug\\", \\"id\\": \\"version-withSlugs/rootAbsoluteSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"rootAbsoluteSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/versioned_docs/version-withSlugs/rootAbsoluteSlug.md\\", @@ -1738,7 +1710,6 @@ Object { "site-versioned-docs-version-with-slugs-root-relative-slug-md-32a.json": "{ \\"unversionedId\\": \\"rootRelativeSlug\\", \\"id\\": \\"version-withSlugs/rootRelativeSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"rootRelativeSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/versioned_docs/version-withSlugs/rootRelativeSlug.md\\", @@ -1754,7 +1725,6 @@ Object { "site-versioned-docs-version-with-slugs-root-resolved-slug-md-aee.json": "{ \\"unversionedId\\": \\"rootResolvedSlug\\", \\"id\\": \\"version-withSlugs/rootResolvedSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"rootResolvedSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/versioned_docs/version-withSlugs/rootResolvedSlug.md\\", @@ -1770,7 +1740,6 @@ Object { "site-versioned-docs-version-with-slugs-root-try-to-escape-slug-md-b5d.json": "{ \\"unversionedId\\": \\"rootTryToEscapeSlug\\", \\"id\\": \\"version-withSlugs/rootTryToEscapeSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"rootTryToEscapeSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/versioned_docs/version-withSlugs/rootTryToEscapeSlug.md\\", @@ -1786,7 +1755,6 @@ Object { "site-versioned-docs-version-with-slugs-slugs-absolute-slug-md-47a.json": "{ \\"unversionedId\\": \\"slugs/absoluteSlug\\", \\"id\\": \\"version-withSlugs/slugs/absoluteSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"absoluteSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/versioned_docs/version-withSlugs/slugs/absoluteSlug.md\\", @@ -1802,7 +1770,6 @@ Object { "site-versioned-docs-version-with-slugs-slugs-relative-slug-md-a95.json": "{ \\"unversionedId\\": \\"slugs/relativeSlug\\", \\"id\\": \\"version-withSlugs/slugs/relativeSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"relativeSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/versioned_docs/version-withSlugs/slugs/relativeSlug.md\\", @@ -1818,7 +1785,6 @@ Object { "site-versioned-docs-version-with-slugs-slugs-resolved-slug-md-5a1.json": "{ \\"unversionedId\\": \\"slugs/resolvedSlug\\", \\"id\\": \\"version-withSlugs/slugs/resolvedSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"resolvedSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/versioned_docs/version-withSlugs/slugs/resolvedSlug.md\\", @@ -1834,7 +1800,6 @@ Object { "site-versioned-docs-version-with-slugs-slugs-try-to-escape-slug-md-4e1.json": "{ \\"unversionedId\\": \\"slugs/tryToEscapeSlug\\", \\"id\\": \\"version-withSlugs/slugs/tryToEscapeSlug\\", - \\"isDocsHomePage\\": false, \\"title\\": \\"tryToEscapeSlug\\", \\"description\\": \\"Lorem\\", \\"source\\": \\"@site/versioned_docs/version-withSlugs/slugs/tryToEscapeSlug.md\\", diff --git a/packages/docusaurus-plugin-content-docs/src/__tests__/__snapshots__/translations.test.ts.snap b/packages/docusaurus-plugin-content-docs/src/__tests__/__snapshots__/translations.test.ts.snap index ab491d441d..408b3ed665 100644 --- a/packages/docusaurus-plugin-content-docs/src/__tests__/__snapshots__/translations.test.ts.snap +++ b/packages/docusaurus-plugin-content-docs/src/__tests__/__snapshots__/translations.test.ts.snap @@ -91,7 +91,6 @@ Object { "description": "doc1 description", "editUrl": "any", "id": "doc1", - "isDocsHomePage": false, "lastUpdatedAt": 0, "lastUpdatedBy": "any", "next": undefined, @@ -108,7 +107,6 @@ Object { "description": "doc2 description", "editUrl": "any", "id": "doc2", - "isDocsHomePage": false, "lastUpdatedAt": 0, "lastUpdatedBy": "any", "next": undefined, @@ -125,7 +123,6 @@ Object { "description": "doc3 description", "editUrl": "any", "id": "doc3", - "isDocsHomePage": false, "lastUpdatedAt": 0, "lastUpdatedBy": "any", "next": undefined, @@ -142,7 +139,6 @@ Object { "description": "doc4 description", "editUrl": "any", "id": "doc4", - "isDocsHomePage": false, "lastUpdatedAt": 0, "lastUpdatedBy": "any", "next": undefined, @@ -159,7 +155,6 @@ Object { "description": "doc5 description", "editUrl": "any", "id": "doc5", - "isDocsHomePage": false, "lastUpdatedAt": 0, "lastUpdatedBy": "any", "next": undefined, @@ -238,7 +233,6 @@ Object { "description": "doc1 description", "editUrl": "any", "id": "doc1", - "isDocsHomePage": false, "lastUpdatedAt": 0, "lastUpdatedBy": "any", "next": undefined, @@ -255,7 +249,6 @@ Object { "description": "doc2 description", "editUrl": "any", "id": "doc2", - "isDocsHomePage": false, "lastUpdatedAt": 0, "lastUpdatedBy": "any", "next": undefined, @@ -272,7 +265,6 @@ Object { "description": "doc3 description", "editUrl": "any", "id": "doc3", - "isDocsHomePage": false, "lastUpdatedAt": 0, "lastUpdatedBy": "any", "next": undefined, @@ -289,7 +281,6 @@ Object { "description": "doc4 description", "editUrl": "any", "id": "doc4", - "isDocsHomePage": false, "lastUpdatedAt": 0, "lastUpdatedBy": "any", "next": undefined, @@ -306,7 +297,6 @@ Object { "description": "doc5 description", "editUrl": "any", "id": "doc5", - "isDocsHomePage": false, "lastUpdatedAt": 0, "lastUpdatedBy": "any", "next": undefined, @@ -385,7 +375,6 @@ Object { "description": "doc1 description", "editUrl": "any", "id": "doc1", - "isDocsHomePage": false, "lastUpdatedAt": 0, "lastUpdatedBy": "any", "next": undefined, @@ -402,7 +391,6 @@ Object { "description": "doc2 description", "editUrl": "any", "id": "doc2", - "isDocsHomePage": false, "lastUpdatedAt": 0, "lastUpdatedBy": "any", "next": undefined, @@ -419,7 +407,6 @@ Object { "description": "doc3 description", "editUrl": "any", "id": "doc3", - "isDocsHomePage": false, "lastUpdatedAt": 0, "lastUpdatedBy": "any", "next": undefined, @@ -436,7 +423,6 @@ Object { "description": "doc4 description", "editUrl": "any", "id": "doc4", - "isDocsHomePage": false, "lastUpdatedAt": 0, "lastUpdatedBy": "any", "next": undefined, @@ -453,7 +439,6 @@ Object { "description": "doc5 description", "editUrl": "any", "id": "doc5", - "isDocsHomePage": false, "lastUpdatedAt": 0, "lastUpdatedBy": "any", "next": undefined, diff --git a/packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts b/packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts index 94d6cff9e0..66453dbcf0 100644 --- a/packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts +++ b/packages/docusaurus-plugin-content-docs/src/__tests__/docs.test.ts @@ -220,7 +220,6 @@ describe('simple site', () => { id: 'foo/bar', unversionedId: 'foo/bar', sourceDirName: 'foo', - isDocsHomePage: false, permalink: '/docs/foo/bar', slug: '/foo/bar', title: 'Bar', @@ -237,7 +236,6 @@ describe('simple site', () => { id: 'hello', unversionedId: 'hello', sourceDirName: '.', - isDocsHomePage: false, permalink: '/docs/hello', slug: '/hello', title: 'Hello, World !', @@ -278,7 +276,6 @@ describe('simple site', () => { id: 'hello', unversionedId: 'hello', sourceDirName: '.', - isDocsHomePage: true, permalink: '/docs/', slug: '/', title: 'Hello, World !', @@ -319,7 +316,6 @@ describe('simple site', () => { id: 'foo/bar', unversionedId: 'foo/bar', sourceDirName: 'foo', - isDocsHomePage: true, permalink: '/docs/', slug: '/', title: 'Bar', @@ -352,7 +348,6 @@ describe('simple site', () => { id: 'foo/baz', unversionedId: 'foo/baz', sourceDirName: 'foo', - isDocsHomePage: false, permalink: '/docs/foo/bazSlug.html', slug: '/foo/bazSlug.html', title: 'baz', @@ -391,7 +386,6 @@ describe('simple site', () => { id: 'lorem', unversionedId: 'lorem', sourceDirName: '.', - isDocsHomePage: false, permalink: '/docs/lorem', slug: '/lorem', title: 'lorem', @@ -428,7 +422,6 @@ describe('simple site', () => { id: 'foo/baz', unversionedId: 'foo/baz', sourceDirName: 'foo', - isDocsHomePage: false, permalink: '/docs/foo/bazSlug.html', slug: '/foo/bazSlug.html', title: 'baz', @@ -487,7 +480,6 @@ describe('simple site', () => { id: 'lorem', unversionedId: 'lorem', sourceDirName: '.', - isDocsHomePage: false, permalink: '/docs/lorem', slug: '/lorem', title: 'lorem', @@ -679,7 +671,6 @@ describe('versioned site', () => { version: 'current', unversionedId: 'foo/bar', sourceDirName: 'foo', - isDocsHomePage: false, permalink: '/docs/next/foo/barSlug', slug: '/foo/barSlug', title: 'bar', @@ -715,7 +706,6 @@ describe('versioned site', () => { version: 'current', unversionedId: 'hello', sourceDirName: '.', - isDocsHomePage: false, permalink: '/docs/next/hello', slug: '/hello', title: 'hello', @@ -732,7 +722,6 @@ describe('versioned site', () => { id: 'version-1.0.0/foo/bar', unversionedId: 'foo/bar', sourceDirName: 'foo', - isDocsHomePage: false, permalink: '/docs/1.0.0/foo/barSlug', slug: '/foo/barSlug', title: 'bar', @@ -745,7 +734,6 @@ describe('versioned site', () => { id: 'version-1.0.0/hello', unversionedId: 'hello', sourceDirName: '.', - isDocsHomePage: false, permalink: '/docs/1.0.0/hello', slug: '/hello', title: 'hello', @@ -760,7 +748,6 @@ describe('versioned site', () => { id: 'version-1.0.1/foo/bar', unversionedId: 'foo/bar', sourceDirName: 'foo', - isDocsHomePage: false, permalink: '/docs/foo/bar', slug: '/foo/bar', title: 'bar', @@ -773,7 +760,6 @@ describe('versioned site', () => { id: 'version-1.0.1/hello', unversionedId: 'hello', sourceDirName: '.', - isDocsHomePage: false, permalink: '/docs/hello', slug: '/hello', title: 'hello', @@ -865,7 +851,6 @@ describe('versioned site', () => { id: 'version-1.0.0/hello', unversionedId: 'hello', sourceDirName: '.', - isDocsHomePage: false, permalink: '/docs/1.0.0/hello', slug: '/hello', title: 'hello', @@ -907,7 +892,6 @@ describe('versioned site', () => { id: 'version-1.0.0/hello', unversionedId: 'hello', sourceDirName: '.', - isDocsHomePage: false, permalink: '/docs/1.0.0/hello', slug: '/hello', title: 'hello', @@ -941,7 +925,6 @@ describe('versioned site', () => { id: 'version-1.0.0/hello', unversionedId: 'hello', sourceDirName: '.', - isDocsHomePage: false, permalink: '/docs/1.0.0/hello', slug: '/hello', title: 'hello', @@ -976,7 +959,6 @@ describe('versioned site', () => { id: 'version-1.0.0/hello', unversionedId: 'hello', sourceDirName: '.', - isDocsHomePage: false, permalink: '/fr/docs/1.0.0/hello', slug: '/hello', title: 'hello', @@ -1012,7 +994,6 @@ describe('versioned site', () => { id: 'version-1.0.0/hello', unversionedId: 'hello', sourceDirName: '.', - isDocsHomePage: false, permalink: '/fr/docs/1.0.0/hello', slug: '/hello', title: 'hello', diff --git a/packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts b/packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts index d017c58ba9..e9b8116183 100644 --- a/packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts +++ b/packages/docusaurus-plugin-content-docs/src/__tests__/index.test.ts @@ -337,7 +337,6 @@ describe('simple website', () => { id: 'foo/baz', unversionedId: 'foo/baz', sourceDirName: 'foo', - isDocsHomePage: false, permalink: '/docs/foo/bazSlug.html', slug: '/foo/bazSlug.html', previous: { @@ -388,7 +387,6 @@ describe('simple website', () => { id: 'hello', unversionedId: 'hello', sourceDirName: '.', - isDocsHomePage: true, permalink: '/docs/', slug: '/', previous: { @@ -427,7 +425,6 @@ describe('simple website', () => { id: 'foo/bar', unversionedId: 'foo/bar', sourceDirName: 'foo', - isDocsHomePage: false, next: { title: 'baz pagination_label', permalink: '/docs/foo/bazSlug.html', @@ -588,7 +585,6 @@ describe('versioned website', () => { id: 'foo/bar', unversionedId: 'foo/bar', sourceDirName: 'foo', - isDocsHomePage: false, permalink: '/docs/next/foo/barSlug', slug: '/foo/barSlug', source: path.posix.join( @@ -624,7 +620,6 @@ describe('versioned website', () => { id: 'version-1.0.1/foo/bar', unversionedId: 'foo/bar', sourceDirName: 'foo', - isDocsHomePage: false, permalink: '/docs/foo/bar', slug: '/foo/bar', source: path.posix.join( @@ -650,7 +645,6 @@ describe('versioned website', () => { id: 'hello', unversionedId: 'hello', sourceDirName: '.', - isDocsHomePage: true, permalink: '/docs/next/', slug: '/', source: path.posix.join( @@ -673,7 +667,6 @@ describe('versioned website', () => { id: 'version-1.0.1/hello', unversionedId: 'hello', sourceDirName: '.', - isDocsHomePage: true, permalink: '/docs/', slug: '/', source: path.posix.join( @@ -696,7 +689,6 @@ describe('versioned website', () => { id: 'version-1.0.0/foo/baz', unversionedId: 'foo/baz', sourceDirName: 'foo', - isDocsHomePage: false, permalink: '/docs/1.0.0/foo/baz', slug: '/foo/baz', source: path.posix.join( @@ -844,7 +836,6 @@ describe('versioned website (community)', () => { id: 'team', unversionedId: 'team', sourceDirName: '.', - isDocsHomePage: false, permalink: '/community/next/team', slug: '/team', source: @@ -860,7 +851,6 @@ describe('versioned website (community)', () => { id: 'version-1.0.0/team', unversionedId: 'team', sourceDirName: '.', - isDocsHomePage: false, permalink: '/community/team', slug: '/team', source: path.posix.join( @@ -1056,7 +1046,6 @@ describe('site with full autogenerated sidebar', () => { id: 'getting-started', unversionedId: 'getting-started', sourceDirName: '.', - isDocsHomePage: false, permalink: '/docs/getting-started', slug: '/getting-started', source: path.posix.join( @@ -1082,7 +1071,6 @@ describe('site with full autogenerated sidebar', () => { id: 'installation', unversionedId: 'installation', sourceDirName: '.', - isDocsHomePage: false, permalink: '/docs/installation', slug: '/installation', source: path.posix.join( @@ -1111,7 +1099,6 @@ describe('site with full autogenerated sidebar', () => { id: 'Guides/guide1', unversionedId: 'Guides/guide1', sourceDirName: 'Guides', - isDocsHomePage: false, permalink: '/docs/Guides/guide1', slug: '/Guides/guide1', source: path.posix.join( @@ -1144,7 +1131,6 @@ describe('site with full autogenerated sidebar', () => { id: 'Guides/guide2', unversionedId: 'Guides/guide2', sourceDirName: 'Guides', - isDocsHomePage: false, permalink: '/docs/Guides/guide2', slug: '/Guides/guide2', source: path.posix.join( @@ -1176,7 +1162,6 @@ describe('site with full autogenerated sidebar', () => { id: 'Guides/guide2.5', unversionedId: 'Guides/guide2.5', sourceDirName: 'Guides', - isDocsHomePage: false, permalink: '/docs/Guides/guide2.5', slug: '/Guides/guide2.5', source: path.posix.join( @@ -1209,7 +1194,6 @@ describe('site with full autogenerated sidebar', () => { id: 'Guides/guide3', unversionedId: 'Guides/guide3', sourceDirName: 'Guides', - isDocsHomePage: false, permalink: '/docs/Guides/guide3', slug: '/Guides/guide3', source: path.posix.join( @@ -1242,7 +1226,6 @@ describe('site with full autogenerated sidebar', () => { id: 'Guides/guide4', unversionedId: 'Guides/guide4', sourceDirName: 'Guides', - isDocsHomePage: false, permalink: '/docs/Guides/guide4', slug: '/Guides/guide4', source: path.posix.join( @@ -1274,7 +1257,6 @@ describe('site with full autogenerated sidebar', () => { id: 'Guides/guide5', unversionedId: 'Guides/guide5', sourceDirName: 'Guides', - isDocsHomePage: false, permalink: '/docs/Guides/guide5', slug: '/Guides/guide5', source: path.posix.join( @@ -1306,7 +1288,6 @@ describe('site with full autogenerated sidebar', () => { id: 'API/api-overview', unversionedId: 'API/api-overview', sourceDirName: '3-API', - isDocsHomePage: false, permalink: '/docs/API/api-overview', slug: '/API/api-overview', source: path.posix.join( @@ -1336,7 +1317,6 @@ describe('site with full autogenerated sidebar', () => { id: 'API/Core APIs/Client API', unversionedId: 'API/Core APIs/Client API', sourceDirName: '3-API/01_Core APIs', - isDocsHomePage: false, permalink: '/docs/API/Core APIs/Client API', slug: '/API/Core APIs/Client API', source: path.posix.join( @@ -1367,7 +1347,6 @@ describe('site with full autogenerated sidebar', () => { id: 'API/Core APIs/Server API', unversionedId: 'API/Core APIs/Server API', sourceDirName: '3-API/01_Core APIs', - isDocsHomePage: false, permalink: '/docs/API/Core APIs/Server API', slug: '/API/Core APIs/Server API', source: path.posix.join( @@ -1398,7 +1377,6 @@ describe('site with full autogenerated sidebar', () => { id: 'API/Extension APIs/Plugin API', unversionedId: 'API/Extension APIs/Plugin API', sourceDirName: '3-API/02_Extension APIs', - isDocsHomePage: false, permalink: '/docs/API/Extension APIs/Plugin API', slug: '/API/Extension APIs/Plugin API', source: path.posix.join( @@ -1429,7 +1407,6 @@ describe('site with full autogenerated sidebar', () => { id: 'API/Extension APIs/Theme API', unversionedId: 'API/Extension APIs/Theme API', sourceDirName: '3-API/02_Extension APIs', - isDocsHomePage: false, permalink: '/docs/API/Extension APIs/Theme API', slug: '/API/Extension APIs/Theme API', source: path.posix.join( @@ -1460,7 +1437,6 @@ describe('site with full autogenerated sidebar', () => { id: 'API/api-end', unversionedId: 'API/api-end', sourceDirName: '3-API', - isDocsHomePage: false, permalink: '/docs/API/api-end', slug: '/API/api-end', source: path.posix.join( @@ -1555,7 +1531,6 @@ describe('site with partial autogenerated sidebars', () => { id: 'API/api-end', unversionedId: 'API/api-end', sourceDirName: '3-API', - isDocsHomePage: false, permalink: '/docs/API/api-end', slug: '/API/api-end', source: path.posix.join( @@ -1582,7 +1557,6 @@ describe('site with partial autogenerated sidebars', () => { id: 'API/api-overview', unversionedId: 'API/api-overview', sourceDirName: '3-API', - isDocsHomePage: false, permalink: '/docs/API/api-overview', slug: '/API/api-overview', source: path.posix.join( @@ -1612,7 +1586,6 @@ describe('site with partial autogenerated sidebars', () => { id: 'API/Extension APIs/Plugin API', unversionedId: 'API/Extension APIs/Plugin API', sourceDirName: '3-API/02_Extension APIs', - isDocsHomePage: false, permalink: '/docs/API/Extension APIs/Plugin API', slug: '/API/Extension APIs/Plugin API', source: path.posix.join( @@ -1643,7 +1616,6 @@ describe('site with partial autogenerated sidebars', () => { id: 'API/Extension APIs/Theme API', unversionedId: 'API/Extension APIs/Theme API', sourceDirName: '3-API/02_Extension APIs', - isDocsHomePage: false, permalink: '/docs/API/Extension APIs/Theme API', slug: '/API/Extension APIs/Theme API', source: path.posix.join( diff --git a/packages/docusaurus-plugin-content-docs/src/__tests__/translations.test.ts b/packages/docusaurus-plugin-content-docs/src/__tests__/translations.test.ts index ec1f41a10d..dbb8db9966 100644 --- a/packages/docusaurus-plugin-content-docs/src/__tests__/translations.test.ts +++ b/packages/docusaurus-plugin-content-docs/src/__tests__/translations.test.ts @@ -16,7 +16,6 @@ import {updateTranslationFileMessages} from '@docusaurus/utils'; function createSampleDoc(doc: Pick): DocMetadata { return { editUrl: 'any', - isDocsHomePage: false, lastUpdatedAt: 0, lastUpdatedBy: 'any', next: undefined, diff --git a/packages/docusaurus-plugin-content-docs/src/docs.ts b/packages/docusaurus-plugin-content-docs/src/docs.ts index 4c9e9edd53..d7b492fc3f 100644 --- a/packages/docusaurus-plugin-content-docs/src/docs.ts +++ b/packages/docusaurus-plugin-content-docs/src/docs.ts @@ -255,7 +255,6 @@ function doProcessDocMetadata({ return { unversionedId, id, - isDocsHomePage, title, description, source: aliasedSitePath(filePath, siteDir), diff --git a/packages/docusaurus-plugin-content-docs/src/types.ts b/packages/docusaurus-plugin-content-docs/src/types.ts index 20f3b9f7cb..69a3703f21 100644 --- a/packages/docusaurus-plugin-content-docs/src/types.ts +++ b/packages/docusaurus-plugin-content-docs/src/types.ts @@ -144,7 +144,6 @@ export type DocMetadataBase = LastUpdateData & { id: string; // TODO legacy versioned id => try to remove unversionedId: string; // TODO new unversioned id => try to rename to "id" version: VersionName; - isDocsHomePage: boolean; title: string; description: string; source: string; // @site aliased source => "@site/docs/folder/subFolder/subSubFolder/myDoc.md"