diff --git a/src/components/overrides/Head.astro b/src/components/overrides/Head.astro index cf92615d13a2fa..3b386092b3a851 100644 --- a/src/components/overrides/Head.astro +++ b/src/components/overrides/Head.astro @@ -25,6 +25,8 @@ const shouldNoIndex = const shouldChatbotDeprioritize = CHATBOT_DEPRIORITIZE_PRODUCTS.includes(currentSection) || + frontmatter.sidebar.group?.hideIndex || + frontmatter.sidebar.hidden || frontmatter.chatbot_deprioritize; if (currentSection) { diff --git a/worker/index.worker.test.ts b/worker/index.worker.test.ts index 5082e866405507..dfb9996dfe11e7 100644 --- a/worker/index.worker.test.ts +++ b/worker/index.worker.test.ts @@ -256,6 +256,7 @@ describe("Cloudflare Docs", () => { title: Markdown ยท Cloudflare Style Guide description: The HTML generated by this file is used as a test fixture for our Markdown generation. lastUpdated: 2025-01-01T00:00:00.000Z + chatbotDeprioritize: true source_url: html: http://fakehost/style-guide/fixtures/markdown/ md: http://fakehost/style-guide/fixtures/markdown/index.md