Skip to content

Commit 386b6a8

Browse files
authored
[Docs Site] Add chatbotDeprioritize to hidden pages (#23163)
1 parent c450e13 commit 386b6a8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/components/overrides/Head.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ const shouldNoIndex =
2525
2626
const shouldChatbotDeprioritize =
2727
CHATBOT_DEPRIORITIZE_PRODUCTS.includes(currentSection) ||
28+
frontmatter.sidebar.group?.hideIndex ||
29+
frontmatter.sidebar.hidden ||
2830
frontmatter.chatbot_deprioritize;
2931
3032
if (currentSection) {

worker/index.worker.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ describe("Cloudflare Docs", () => {
256256
title: Markdown · Cloudflare Style Guide
257257
description: The HTML generated by this file is used as a test fixture for our Markdown generation.
258258
lastUpdated: 2025-01-01T00:00:00.000Z
259+
chatbotDeprioritize: true
259260
source_url:
260261
html: http://fakehost/style-guide/fixtures/markdown/
261262
md: http://fakehost/style-guide/fixtures/markdown/index.md

0 commit comments

Comments
 (0)