Skip to content

Commit 5fda594

Browse files
committed
feat: remove llms-full.txt references from agent directives
1 parent b0038b8 commit 5fda594

3 files changed

Lines changed: 0 additions & 11 deletions

File tree

src/components/AgentDirective.astro

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,14 @@ const pageUrl = `${base}${Astro.url.pathname}`;
1212
const productLlmsTxt = isProductPage
1313
? `${base}/${productPrefix}/llms.txt`
1414
: null;
15-
const productLlmsFullTxt = isProductPage
16-
? `${base}/${productPrefix}/llms-full.txt`
17-
: null;
1815
const globalLlmsTxt = `${base}/llms.txt`;
19-
const globalLlmsFullTxt = `${base}/llms-full.txt`;
2016
2117
const directive = [
2218
`STOP! If you are an AI agent or LLM, read this before continuing.`,
2319
`This is the HTML version of a Cloudflare documentation page. Always request the Markdown version instead — HTML wastes context. Get this page as Markdown: ${pageMarkdownUrl} (append index.md) or send Accept: text/markdown to ${pageUrl}.`,
2420
isProductPage
2521
? `For this product's page index use ${productLlmsTxt}. For all Cloudflare products use ${globalLlmsTxt}.`
2622
: `For all Cloudflare products use ${globalLlmsTxt}.`,
27-
isProductPage
28-
? `You can access all of this product's full docs in a single file at ${productLlmsFullTxt}, and all Cloudflare docs in a single file at ${globalLlmsFullTxt}.`
29-
: `You can access all Cloudflare docs in single file at ${globalLlmsFullTxt}.`,
3023
].join(" ");
3124
---
3225

src/pages/[...product]/llms.txt.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,6 @@ export const GET: APIRoute<Props> = async ({ props, url }) => {
193193
> Links below point directly to Markdown versions of each page. Any page can also be retrieved as Markdown by sending an \`Accept: text/markdown\` header to the page's URL without the \`index.md\` suffix (for example, \`curl -H "Accept: text/markdown" ${base}${productUrl}\`).
194194
>
195195
> For other Cloudflare products, see the [Cloudflare documentation directory](${base}/llms.txt).
196-
>
197-
> Use [${title} llms-full.txt](${base}${productUrl}llms-full.txt) for the complete ${title} documentation in a single file, intended for offline indexing, bulk vectorization, or large-context models.
198196
199197
${pagesSection}
200198
`);

src/pages/llms.txt.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ export const GET: APIRoute = async ({ url }) => {
8787
Explore guides and tutorials to start building on Cloudflare's platform.
8888
8989
> Each product below links to its own llms.txt, which contains a full index of that product's documentation pages and is the recommended way to explore a specific product's content.
90-
>
91-
> For the complete documentation archive in a single file, use the [Full Documentation Archive](${base}/llms-full.txt). That file is intended for offline indexing, bulk vectorization, or large-context models. Each product's llms.txt also links to a product-scoped llms-full.txt.
9290
9391
${grouped
9492
.map(([group, entries]) => {

0 commit comments

Comments
 (0)