diff --git a/scripts/generate-docs-index/utils/add-front-matter.js b/scripts/generate-docs-index/utils/add-front-matter.js index 7064bd918..8ad3a070a 100644 --- a/scripts/generate-docs-index/utils/add-front-matter.js +++ b/scripts/generate-docs-index/utils/add-front-matter.js @@ -26,6 +26,9 @@ const frontMatterConfig = { 'upgrades.md': { sidebar_position: 6 }, + 'upgrade-to-6.md': { + unlisted: true + }, 'upgrade-to-7.md': { sidebar_position: 7 }, @@ -62,6 +65,7 @@ export default function addFrontMatter(content, filename) { const frontMatter = { title: `''`, // empty title to remove redundant title hide_title: true, + unlisted: frontMatterConfig[filename]?.unlisted || false, // ability to hide from sidebar sidebar_label: frontMatterConfig[filename]?.label || `${formatFilename(filename)}`, sidebar_position: frontMatterConfig[filename]?.sidebar_position || 50 };