Skip to content

Commit 819cf98

Browse files
authored
Merge branch 'production' into kian/PCX-14722
2 parents 21cdd3a + 5e5cd8b commit 819cf98

File tree

1,183 files changed

+126910
-140972
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,183 files changed

+126910
-140972
lines changed

.github/CODEOWNERS

Lines changed: 31 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
# More dev-specific files
66

7-
/.github/ @pedrosousa @haleycode @kristianfreeman @GregBrimble @KianNH @maxvp @marciocloudflare @WalshyDev
7+
/.github/ @kodster28 @pedrosousa @haleycode @kristianfreeman @GregBrimble @KianNH @maxvp @marciocloudflare @WalshyDev
88
/.github/CODEOWNERS @cloudflare/pcx-technical-writing
99
/.github/actions/assign-issue/index.js @cloudflare/pcx-technical-writing
1010
/.github/actions/assign-pr/index.js @cloudflare/pcx-technical-writing
1111
/.github/styles/cloudflare/spelling-exceptions.txt @cloudflare/pcx-technical-writing
12-
/src/components/ @cloudflare/developer-advocacy @kristianfreeman @pedrosousa @marciocloudflare @haleycode @maxvp @GregBrimble @KianNH @WalshyDev
13-
/functions/ @cloudflare/developer-advocacy @kristianfreeman @pedrosousa @haleycode @marciocloudflare @maxvp @GregBrimble @KianNH @WalshyDev
14-
*.js @cloudflare/developer-advocacy @kristianfreeman @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
15-
*.ts @cloudflare/developer-advocacy @kristianfreeman @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
12+
/src/components/ @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @marciocloudflare @haleycode @maxvp @GregBrimble @KianNH @WalshyDev
13+
/functions/ @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @marciocloudflare @maxvp @GregBrimble @KianNH @WalshyDev
14+
*.js @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
15+
*.ts @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
1616
/src/content/workers-ai-models/ @craigsdennis @pedrosousa @cloudflare/pcx-technical-writing
1717
/public/_redirects @GregBrimble @KianNH @pedrosousa @WalshyDev @cloudflare/pcx-technical-writing
1818

@@ -29,37 +29,41 @@
2929

3030
# Analytics & Logs
3131

32-
/src/content/docs/analytics/ @46bit @bharatnc @jherre @jimhawkridge @soheiokamoto @victor-perov @angelampcosta @cloudflare/pcx-technical-writing
32+
/src/content/docs/analytics/ @46bit @jherre @jimhawkridge @soheiokamoto @victor-perov @angelampcosta @cloudflare/pcx-technical-writing
3333
/src/content/docs/data-localization/ @soheiokamoto @angelampcosta @cloudflare/pcx-technical-writing
34-
/src/content/docs/logs/ @cmackenzie1 @bharatnc @jherre @soheiokamoto @victor-perov @angelampcosta @cloudflare/pcx-technical-writing
34+
/src/content/docs/logs/ @cmackenzie1 @jherre @soheiokamoto @victor-perov @angelampcosta @cloudflare/pcx-technical-writing
3535

3636
# API & Zones
3737

3838
/src/content/docs/pulumi/ @cloudflare/pcx-technical-writing
39-
/src/content/docs/tenant/ @patriciasantaana @cloudflare/pcx-technical-writing
39+
/src/content/docs/tenant/ @dcpena @cloudflare/pcx-technical-writing
4040
/src/content/docs/terraform/ @ranbel @cloudflare/pcx-technical-writing
41-
/src/content/docs/version-management/ @patriciasantaana @cloudflare/pcx-technical-writing
41+
/src/content/docs/version-management/ @dcpena @cloudflare/pcx-technical-writing
4242

4343
# Browser Rendering API
4444

4545
/src/content/docs/browser-rendering/ @mchenco @cloudflare/pcx-technical-writing @celso @meddulla
4646

47+
# Changelogs
48+
49+
/src/content/changelogs-next/ @elithrar @irvinebroque @jonesphillip @rita3ko @zaidf
50+
4751
# Cloudflare One
4852

4953
/src/content/docs/cloudflare-one/ @ranbel @cloudflare/pcx-technical-writing
5054
/src/content/docs/cloudflare-one/applications/ @kennyj42 @ranbel @cloudflare/pcx-technical-writing
5155
/src/content/docs/cloudflare-one/identity/ @kennyj42 @ranbel @cloudflare/pcx-technical-writing
5256
/src/content/docs/cloudflare-one/policies/access/ @kennyj42 @ranbel @cloudflare/pcx-technical-writing
53-
/src/content/docs/cloudflare-one/connections/connect-devices/ @kkrum @ranbel @cloudflare/pcx-technical-writing
54-
/src/content/docs/cloudflare-one/connections/connect-networks/ @janani-cr @ranbel @cloudflare/pcx-technical-writing
55-
/src/content/docs/cloudflare-one/insights/ @abelinkinbio @ranbel @cloudflare/pcx-technical-writing
57+
/src/content/docs/cloudflare-one/connections/connect-devices/ @kkrum @kokolocomotion1 @ranbel @cloudflare/pcx-technical-writing
58+
/src/content/docs/cloudflare-one/connections/connect-networks/ @ranbel @cloudflare/pcx-technical-writing
5659
/src/content/docs/cloudflare-one/applications/scan-apps/ @maxvp @cloudflare/pcx-technical-writing
5760
/src/content/docs/cloudflare-one/policies/gateway/ @maxvp @cloudflare/pcx-technical-writing
58-
/src/content/docs/cloudflare-one/policies/browser-isolation/ @maxvp @abelinkinbio @cloudflare/pcx-technical-writing
61+
/src/content/docs/cloudflare-one/policies/browser-isolation/ @maxvp @ranbel @cloudflare/pcx-technical-writing
5962
/src/content/docs/cloudflare-one/policies/data-loss-prevention/ @maxvp @cloudflare/pcx-technical-writing
63+
/src/content/docs/cloudflare-one/insights/dex/ @deadlypants1973 @cloudflare/pcx-technical-writing
6064
/src/content/docs/email-security/ @Maddy-Cloudflare @cloudflare/pcx-technical-writing
6165
/src/content/changelogs/access.yaml @ranbel @kennyj42 @cloudflare/pcx-technical-writing
62-
/src/content/changelogs/warp.yaml @ranbel @cloudflare/pcx-technical-writing
66+
/src/content/changelogs/warp.yaml @kokolocomotion1 @ranbel @cloudflare/pcx-technical-writing
6367

6468
# Consumer products
6569

@@ -73,12 +77,12 @@
7377
/src/content/docs/china-network/ @pedrosousa @cloudflare/pcx-technical-writing
7478
/src/content/docs/cloudflare-for-platforms/cloudflare-for-saas/ @RebeccaTamachiro @cloudflare/pcx-technical-writing
7579
/src/content/docs/dns/ @RebeccaTamachiro @cloudflare/pcx-technical-writing
76-
/src/content/docs/fundamentals/ @cloudflare/pcx-technical-writing
77-
/src/content/docs/fundamentals/account-and-billing/ @patriciasantaana @cloudflare/pcx-technical-writing
80+
/src/content/docs/fundamentals/ @dcpena @cloudflare/pcx-technical-writing
81+
/src/content/docs/fundamentals/account-and-billing/ @dcpena @cloudflare/pcx-technical-writing
7882
/src/content/docs/learning-paths/ @cloudflare/pcx-technical-writing
7983
/src/content/docs/network-error-logging/ @dcpena @cloudflare/pcx-technical-writing
8084
/src/content/docs/network-interconnect/ @marciocloudflare @cloudflare/pcx-technical-writing
81-
/src/content/docs/notifications/ @patriciasantaana @cloudflare/pcx-technical-writing
85+
/src/content/docs/notifications/ @dcpena @cloudflare/pcx-technical-writing
8286
/src/content/docs/registrar/ @jason-cf @cloudflare/pcx-technical-writing
8387
/src/content/docs/rules/ @pedrosousa @cloudflare/pcx-technical-writing
8488
/src/content/docs/ruleset-engine/ @pedrosousa @cloudflare/pcx-technical-writing
@@ -108,8 +112,8 @@
108112
/src/content/docs/pub-sub/ @elithrar @dcpena @cloudflare/pcx-technical-writing
109113
/src/content/docs/queues/ @elithrar @toddmantell @maheshwarip @cloudflare/pcx-technical-writing
110114
/src/content/changelogs/queues.yaml @elithrar @toddmantell @maheshwarip @cloudflare/pcx-technical-writing
111-
/src/content/docs/r2/ @dcpena @elithrar @jonesphillip @cloudflare/workers-docs @cloudflare/pcx-technical-writing
112-
/src/content/changelogs/r2.yaml @dcpena @elithrar @cloudflare/workers-docs @cloudflare/pcx-technical-writing
115+
/src/content/docs/r2/ @oxyjun @elithrar @jonesphillip @cloudflare/workers-docs @cloudflare/pcx-technical-writing
116+
/src/content/changelogs/r2.yaml @oxyjun @elithrar @cloudflare/workers-docs @cloudflare/pcx-technical-writing
113117
/src/content/docs/stream/ @tsmith512 @dcpena @cloudflare/pcx-technical-writing @renandincer @third774
114118
/src/content/changelogs/stream.yaml @tsmith512 @dcpena @cloudflare/pcx-technical-writing
115119
/src/content/docs/workers/ @cloudflare/workers-docs @GregBrimble @irvinebroque @mikenomitch @WalshyDev @cloudflare/deploy-config @cloudflare/pcx-technical-writing @ToriLindsay
@@ -146,8 +150,8 @@
146150

147151
# Docs team areas
148152

149-
/src/content/docs/docs-guide/ @crwaters16 @cloudflare/pcx-technical-writing
150-
/src/content/docs/style-guide/ @crwaters16 @cloudflare/pcx-technical-writing
153+
/src/content/docs/docs-guide/ @dcpena @cloudflare/pcx-technical-writing
154+
/src/content/docs/style-guide/ @dcpena @cloudflare/pcx-technical-writing
151155

152156
# Magic products
153157

@@ -159,8 +163,8 @@
159163

160164
# Migration guides
161165

162-
/src/content/docs/migration-guides/ @kimj15 @crwaters16 @cloudflare/pcx-technical-writing
163-
/src/assets/images/migration-guides/ @kimj15 @crwaters16 @cloudflare/pcx-technical-writing
166+
/src/content/docs/migration-guides/ @kimj15 @cloudflare/pcx-technical-writing
167+
/src/assets/images/migration-guides/ @kimj15 @cloudflare/pcx-technical-writing
164168

165169
# Performance products
166170

@@ -180,13 +184,13 @@
180184

181185
# Radar
182186

183-
/src/content/docs/radar/ @meddulla @G4brym @tiagoad @cloudflare/pcx-technical-writing
184-
/src/content/changelogs/radar.yaml @meddulla @G4brym @tiagoad @cloudflare/pcx-technical-writing
187+
/src/content/docs/radar/ @meddulla @G4brym @tiagoad @andre-j3sus @cloudflare/pcx-technical-writing
188+
/src/content/changelogs/radar.yaml @meddulla @G4brym @tiagoad @andre-j3sus @cloudflare/pcx-technical-writing
185189

186190
# Reference architecture
187191

188-
/src/content/docs/reference-architecture/ @securitypedant @crwaters16 @cloudflare/pcx-technical-writing
189-
/src/assets/images/reference-architecture/ @securitypedant @crwaters16 @cloudflare/pcx-technical-writing
192+
/src/content/docs/reference-architecture/ @securitypedant @haleycode @cloudflare/pcx-technical-writing
193+
/src/assets/images/reference-architecture/ @securitypedant @haleycode @cloudflare/pcx-technical-writing
190194

191195
# Security products
192196

.github/workflows/api-links-crawl.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
compile:
1414
name: Compiles
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-22.04
1616
steps:
1717
- uses: actions/checkout@v4
1818
with:

.github/workflows/publish-preview.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
name: Publish Preview
1616
steps:
1717
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
1820
- uses: actions/setup-node@v4
1921
with:
2022
node-version: 22.x

.github/workflows/publish-production.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
name: Publish Production
1212
steps:
1313
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
1416
- uses: actions/setup-node@v4
1517
with:
1618
node-version: 22.x

.hyperlint/config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
content_dir: /src/content
22
authorized_users:
3-
- crwaters16
43
- dcpena
54
- kodster28
65
- KianNH

.prettierrc.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
22
/** @type {import("prettier").Config} */
33
export default {
4-
plugins: ["prettier-plugin-astro"],
4+
plugins: ["prettier-plugin-astro", "prettier-plugin-tailwindcss"],
55
useTabs: true,
66
overrides: [
77
{

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ If we require more information to address your pull request, the `more-informati
3535

3636
## Wrangler config
3737

38-
If you're adding a code snippet to the docs that represents a Wrangler config file (`wrangler.toml` or `wrangler.json`) make sure you wrap it with the `<WranglerConfig>` component, which ensure it's rendered as both JSON and TOML e.g.
38+
If you're adding a code snippet to the docs that represents a Wrangler config file (`wrangler.toml`, `wrangler.json`, or `wrangler.jsonc`) make sure you wrap it with the `<WranglerConfig>` component, which ensure it's rendered as both JSON and TOML e.g.
3939

4040
````
4141

astro.config.ts

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export default defineConfig({
152152
Footer: "./src/components/overrides/Footer.astro",
153153
Head: "./src/components/overrides/Head.astro",
154154
Hero: "./src/components/overrides/Hero.astro",
155+
LastUpdated: "./src/components/overrides/LastUpdated.astro",
155156
MarkdownContent: "./src/components/overrides/MarkdownContent.astro",
156157
Sidebar: "./src/components/overrides/Sidebar.astro",
157158
PageSidebar: "./src/components/overrides/PageSidebar.astro",
@@ -174,43 +175,41 @@ export default defineConfig({
174175
"./src/tooltips.css",
175176
],
176177
pagination: false,
177-
plugins: runLinkCheck
178-
? [
179-
starlightLinksValidator({
180-
errorOnInvalidHashes: false,
181-
errorOnLocalLinks: false,
182-
exclude: [
183-
"/api/",
184-
"/api/operations/**",
185-
"/changelog/",
186-
"/http/resources/**",
187-
"{props.*}",
188-
"/",
189-
"**/glossary/?term=**",
190-
"/products/?product-group=*",
191-
"/products/",
192-
"/rules/snippets/examples/?operation=*",
193-
"/rules/transform/examples/?operation=*",
194-
"/workers/examples/?languages=*",
195-
"/workers/examples/?tags=*",
196-
"/workers-ai/models/**",
197-
],
198-
}),
199-
starlightDocSearch({
200-
appId: "8MU1G3QO9P",
201-
apiKey: "4edb0a6cef3338ff4bcfbc6b3d2db56b",
202-
indexName: "TEST - Re-dev docs",
203-
}),
204-
starlightImageZoom(),
205-
]
206-
: [
207-
starlightDocSearch({
208-
appId: "8MU1G3QO9P",
209-
apiKey: "4edb0a6cef3338ff4bcfbc6b3d2db56b",
210-
indexName: "TEST - Re-dev docs",
211-
}),
212-
starlightImageZoom(),
213-
],
178+
plugins: [
179+
...(runLinkCheck
180+
? [
181+
starlightLinksValidator({
182+
errorOnInvalidHashes: false,
183+
errorOnLocalLinks: false,
184+
exclude: [
185+
"/api/",
186+
"/api/**",
187+
"/changelog/",
188+
"/http/resources/**",
189+
"{props.*}",
190+
"/",
191+
"**/glossary/?term=**",
192+
"/products/?product-group=*",
193+
"/products/",
194+
"/rules/snippets/examples/?operation=*",
195+
"/rules/transform/examples/?operation=*",
196+
"/ruleset-engine/rules-language/fields/reference/**",
197+
"/workers/examples/?languages=*",
198+
"/workers/examples/?tags=*",
199+
"/workers-ai/models/**",
200+
],
201+
}),
202+
]
203+
: []),
204+
starlightDocSearch({
205+
appId: "D32WIYFTUF",
206+
apiKey: "5cec275adc19dd3bc17617f7d9cf312a",
207+
indexName: "prod_devdocs",
208+
insights: true,
209+
}),
210+
starlightImageZoom(),
211+
],
212+
lastUpdated: true,
214213
}),
215214
tailwind({
216215
applyBaseStyles: false,

bin/crawl-api-links.js

Lines changed: 43 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ async function checkLinks() {
2121
});
2222
const page = await browser.newPage();
2323

24-
const sitemapUrl = "https://developers.cloudflare.com/sitemap.xml";
24+
// skip image requests
25+
await page.setRequestInterception(true);
26+
page.on("request", (request) => {
27+
if (request.resourceType() === "image") request.abort();
28+
else request.continue();
29+
});
30+
31+
const sitemapUrl = "https://developers.cloudflare.com/sitemap-0.xml";
2532
await page.goto(sitemapUrl, { timeout: navigationTimeout });
2633

2734
const sitemapLinks = await page.$$eval("url loc", (elements) =>
@@ -36,10 +43,17 @@ async function checkLinks() {
3643
continue; // Skip if the link is empty
3744
}
3845

39-
await page.goto(link, {
40-
waitUntil: "networkidle0",
41-
timeout: navigationTimeout,
42-
});
46+
try {
47+
await page.goto(link, {
48+
waitUntil: "networkidle0",
49+
timeout: navigationTimeout,
50+
});
51+
} catch (e) {
52+
console.log(
53+
` WARNING: Error loading Dev Docs page: ${e.message}... Skipping.`,
54+
);
55+
continue;
56+
}
4357

4458
const pageLinks = await page.$$eval("a", (elements) =>
4559
elements.map((el) => el.href),
@@ -51,23 +65,32 @@ async function checkLinks() {
5165
}
5266

5367
if (
54-
pageLink.includes("developers.cloudflare.com/api/operations/") ||
55-
pageLink.startsWith("/api/operations/")
68+
pageLink.includes("developers.cloudflare.com/api/resources/") ||
69+
pageLink.startsWith("/api/resources/")
5670
) {
5771
console.log(`Evaluating link: ${pageLink}`);
58-
await page.goto(pageLink, {
59-
waitUntil: "networkidle0",
60-
timeout: navigationTimeout,
61-
});
62-
visitedLinks.push(pageLink);
63-
64-
const statusCode = await page.evaluate(() => {
65-
return {
66-
url: window.location.href,
67-
};
68-
});
69-
if (statusCode.url === "https://developers.cloudflare.com/api/") {
70-
brokenLinks.push(pageLink);
72+
73+
let response = null;
74+
75+
try {
76+
response = await page.goto(pageLink, {
77+
waitUntil: "networkidle0",
78+
timeout: navigationTimeout,
79+
});
80+
visitedLinks.push(pageLink);
81+
} catch (e) {
82+
console.log(
83+
` WARNING: Error loading API page: ${e.message}... Skipping.`,
84+
);
85+
continue;
86+
}
87+
88+
if (response) {
89+
if (response.status() === 404) {
90+
brokenLinks.push(pageLink);
91+
}
92+
} else {
93+
console.log(" WARNING: Didn't receive a response... skipping.");
7194
}
7295
}
7396
}

ec.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import lightTheme from "solarflare-theme/themes/cloudflare-light-color-theme.jso
55
import { definePlugin } from "@expressive-code/core";
66
import { h } from "@expressive-code/core/hast";
77

8+
import { pluginCollapsibleSections } from "@expressive-code/plugin-collapsible-sections";
9+
810
import lzstring from "lz-string";
911

1012
/**
@@ -156,6 +158,7 @@ export default {
156158
workersPlaygroundButton(),
157159
outputCodeblocks(),
158160
defaultLanguageTitles(),
161+
pluginCollapsibleSections(),
159162
],
160163
themes: [darkTheme, lightTheme],
161164
styleOverrides: {

0 commit comments

Comments
 (0)