Skip to content

Commit 86ce2a6

Browse files
committed
Fetch Logpush dataset pages from middlecache
Fetch validated Logpush dataset pages from middlecache during docs builds while retaining checked-in pages as a safe fallback. - Verify archive downloads before replacing pages - Sync generated Markdown into existing dataset scopes and remove stale pages - Abort replacements that would remove all managed pages - Refresh the archive on every development and build run - Correct the documented product metadata directory - Require a separate manual changelog when a dataset change needs a customer-facing announcement
1 parent f3c4d7d commit 86ce2a6

4 files changed

Lines changed: 412 additions & 29 deletions

File tree

AGENTS.md

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,37 @@ This is the source for [developers.cloudflare.com](https://developers.cloudflare
1616
cloudflare-docs/
1717
├── src/
1818
│ ├── content/
19-
│ │ ├── docs/ # 5,400+ MDX pages — the user-facing documentation
20-
│ │ ├── partials/ # 1,200+ reusable MDX snippets (by product)
21-
│ │ ├── changelog/ # Product changelogs (by product subdirectory)
22-
│ │ ├── glossary/ # Glossary term definitions (YAML)
23-
│ │ ├── products/ # Product metadata (YAML, 135 files)
24-
│ │ └── ... # Other data collections (plans, fields, models, etc.)
25-
│ ├── components/ # Astro + React components (barrel: components.ts)
26-
│ ├── components.ts # MDX component barrel — all MDX imports come from here
27-
│ ├── layouts/ # Page layout components
28-
│ ├── pages/ # Dynamic route pages (changelog, llms.txt, RSS, etc.)
29-
│ ├── schemas/ # Zod schemas for all content collections
30-
│ ├── plugins/ # Satteri hast pipeline plugins
31-
│ ├── scripts/ # Client-side scripts (analytics, mermaid, webmcp, etc.)
32-
│ ├── styles/ # CSS (Tailwind 4)
33-
│ ├── icons/ # Product SVG icons (~110)
34-
│ ├── assets/ # Processed images (optimized by Astro)
35-
│ ├── util/ # App utility functions
36-
│ └── content.config.ts # Content collection definitions
37-
├── public/ # Static files served as-is (images, redirects, robots.txt)
38-
├── worker/ # Cloudflare Worker for serving the site
39-
├── bin/ # Build scripts and CI helpers
40-
│ └── fetch-skills.ts # Downloads skills.tar.gz from middlecache, extracts to skills/
41-
├── skills/ # Agent Skills served at /.well-known/skills/ — GENERATED, do not edit
42-
│ # Fetched from https://middlecache.ced.cloudflare.com/v1/cloudflare-skills/skills.tar.gz
43-
│ # by bin/fetch-skills.ts, which runs automatically via prebuild/predev hooks.
44-
│ # skills/ is in .gitignore and is NOT committed to the repository.
45-
├── .flue/ # Flue cloudflare-docs-bot — see .flue/AGENTS.md
46-
├── astro.config.ts # Astro + Nimbus configuration
19+
│ │ ├── docs/ # 5,400+ MDX pages — the user-facing documentation
20+
│ │ ├── partials/ # 1,200+ reusable MDX snippets (by product)
21+
│ │ ├── changelog/ # Product changelogs (by product subdirectory)
22+
│ │ ├── glossary/ # Glossary term definitions (YAML)
23+
│ │ ├── directory/ # Product and feature directory entries (YAML)
24+
│ │ └── ... # Other data collections (plans, fields, models, etc.)
25+
│ ├── components/ # Astro + React components (barrel: components.ts)
26+
│ ├── components.ts # MDX component barrel — all MDX imports come from here
27+
│ ├── layouts/ # Page layout components
28+
│ ├── pages/ # Dynamic route pages (changelog, llms.txt, RSS, etc.)
29+
│ ├── schemas/ # Zod schemas for all content collections
30+
│ ├── plugins/ # Satteri hast pipeline plugins
31+
│ ├── scripts/ # Client-side scripts (analytics, mermaid, webmcp, etc.)
32+
│ ├── styles/ # CSS (Tailwind 4)
33+
│ ├── icons/ # Product SVG icons (~110)
34+
│ ├── assets/ # Processed images (optimized by Astro)
35+
│ ├── util/ # App utility functions
36+
│ └── content.config.ts # Content collection definitions
37+
├── public/ # Static files served as-is (images, redirects, robots.txt)
38+
├── worker/ # Cloudflare Worker for serving the site
39+
├── bin/ # Build scripts and CI helpers
40+
│ ├── fetch-skills.ts # Downloads skills.tar.gz from middlecache, extracts to skills/
41+
│ ├── fetch-openapi.ts # Syncs OpenAPI schemas used to generate API reference pages
42+
│ ├── fetch-logpush-datasets.ts # Syncs generated Logpush pages; failures never modify checked-in pages
43+
│ └── ... # Additional build and validation scripts
44+
├── skills/ # Agent Skills served at /.well-known/skills/ — GENERATED, do not edit
45+
│ # Fetched from https://middlecache.ced.cloudflare.com/v1/cloudflare-skills/skills.tar.gz
46+
│ # by bin/fetch-skills.ts, which runs automatically via prebuild/predev hooks.
47+
│ # skills/ is in .gitignore and is NOT committed to the repository.
48+
├── .flue/ # Flue cloudflare-docs-bot — see .flue/AGENTS.md
49+
├── astro.config.ts # Astro + Nimbus configuration
4750
├── package.json
4851
└── tsconfig.json
4952
```

0 commit comments

Comments
 (0)