diff --git a/website/_dogfooding/_docs tests/tests/Conflicts/category-index-name-2/_category_.json b/website/_dogfooding/_docs tests/tests/Conflicts/category-index-name-2/_category_.json new file mode 100644 index 0000000000..a1dc7adec4 --- /dev/null +++ b/website/_dogfooding/_docs tests/tests/Conflicts/category-index-name-2/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "Category Index Doc conflict", + "link": { + "type": "generated-index", + "title": "Category Index Doc conflict", + "description": "Testing what happens when 2 categories with index docs" + } +} diff --git a/website/_dogfooding/_docs tests/tests/Conflicts/category-index-name-2/alpha/test/doc.md b/website/_dogfooding/_docs tests/tests/Conflicts/category-index-name-2/alpha/test/doc.md new file mode 100644 index 0000000000..3050004e61 --- /dev/null +++ b/website/_dogfooding/_docs tests/tests/Conflicts/category-index-name-2/alpha/test/doc.md @@ -0,0 +1,3 @@ +# Doc + +This extra category doc is important, otherwise the category would be empty and the index would be converted to a regular doc. diff --git a/website/_dogfooding/_docs tests/tests/Conflicts/category-index-name-2/alpha/test/index.md b/website/_dogfooding/_docs tests/tests/Conflicts/category-index-name-2/alpha/test/index.md new file mode 100644 index 0000000000..dba0aff81e --- /dev/null +++ b/website/_dogfooding/_docs tests/tests/Conflicts/category-index-name-2/alpha/test/index.md @@ -0,0 +1,5 @@ +--- +sidebar_label: 'Test' +--- + +## Test diff --git a/website/_dogfooding/_docs tests/tests/Conflicts/category-index-name-2/beta/test/doc.md b/website/_dogfooding/_docs tests/tests/Conflicts/category-index-name-2/beta/test/doc.md new file mode 100644 index 0000000000..3050004e61 --- /dev/null +++ b/website/_dogfooding/_docs tests/tests/Conflicts/category-index-name-2/beta/test/doc.md @@ -0,0 +1,3 @@ +# Doc + +This extra category doc is important, otherwise the category would be empty and the index would be converted to a regular doc. diff --git a/website/_dogfooding/_docs tests/tests/Conflicts/category-index-name-2/beta/test/index.md b/website/_dogfooding/_docs tests/tests/Conflicts/category-index-name-2/beta/test/index.md new file mode 100644 index 0000000000..dba0aff81e --- /dev/null +++ b/website/_dogfooding/_docs tests/tests/Conflicts/category-index-name-2/beta/test/index.md @@ -0,0 +1,5 @@ +--- +sidebar_label: 'Test' +--- + +## Test diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index befe96bfe9..b8370c6e3b 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -204,6 +204,14 @@ export default async function createConfigAsync() { i18n: { defaultLocale, + localeConfigs: { + [defaultLocale]: { + // Forces the translation process to run for default locale + // Permits to dogfood translation key conflicts detection + translate: true, + }, + }, + locales: isDeployPreview || isBranchDeploy ? // Deploy preview and branch deploys: keep them fast!