Skip to content

Commit 8de727a

Browse files
Merge 'production'
2 parents 3c15ce5 + ebee572 commit 8de727a

File tree

677 files changed

+18194
-11150
lines changed

Some content is hidden

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

677 files changed

+18194
-11150
lines changed

.github/CODEOWNERS

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

55
# More dev-specific files
66

7-
/.github/ @kodster28 @pedrosousa @haleycode @kristianfreeman @GregBrimble @KianNH @maxvp @marciocloudflare @WalshyDev
7+
/.github/ @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 @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
16-
/src/content/workers-ai-models/ @kodster28 @craigsdennis @pedrosousa @cloudflare/pcx-technical-writing
17-
/public/_redirects @GregBrimble @KianNH @kodster28 @pedrosousa @WalshyDev @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
16+
/src/content/workers-ai-models/ @craigsdennis @pedrosousa @cloudflare/pcx-technical-writing
17+
/public/_redirects @GregBrimble @KianNH @pedrosousa @WalshyDev @cloudflare/pcx-technical-writing
1818

1919
# AI
2020

2121
/src/content/docs/ai-gateway/ @kathayl @G4brym @mchenco @pdwittig @daisyfaithauma @cloudflare/pcx-technical-writing
2222
/src/content/docs/workers-ai/ @rita3ko @pdwittig @craigsdennis @markdembo @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2323
/src/content/docs/workers-ai/static @mchenco @craigsdennis @cloudflare/pcx-technical-writing
24-
/src/content/docs/vectorize/ @elithrar @vy-ton @pdwittig @kodster28 @cloudflare/pcx-technical-writing
24+
/src/content/docs/vectorize/ @elithrar @vy-ton @pdwittig @cloudflare/pcx-technical-writing
2525
/src/content/changelogs/workers-ai.yaml @kathayl @G4brym @mchenco @pdwittig @daisyfaithauma @cloudflare/pcx-technical-writing
2626
/src/content/changelogs/ai-gateway.yaml @kathayl @G4brym @mchenco @pdwittig @daisyfaithauma @cloudflare/pcx-technical-writing
27-
/src/content/changelogs/vectorize.yaml @elithrar @pdwittig @kodster28 @cloudflare/pcx-technical-writing
27+
/src/content/changelogs/vectorize.yaml @elithrar @pdwittig @cloudflare/pcx-technical-writing
2828

2929
# Analytics & Logs
3030

@@ -34,14 +34,14 @@
3434

3535
# API & Zones
3636

37-
/src/content/docs/pulumi/ @kodster28 @cloudflare/pcx-technical-writing
37+
/src/content/docs/pulumi/ @cloudflare/pcx-technical-writing
3838
/src/content/docs/tenant/ @patriciasantaana @cloudflare/pcx-technical-writing
3939
/src/content/docs/terraform/ @ranbel @cloudflare/pcx-technical-writing
4040
/src/content/docs/version-management/ @patriciasantaana @cloudflare/pcx-technical-writing
4141

4242
# Browser Rendering API
4343

44-
/src/content/docs/browser-rendering/ @tanushree-sharma @mchenco @kodster28 @cloudflare/pcx-technical-writing @celso @meddulla
44+
/src/content/docs/browser-rendering/ @tanushree-sharma @mchenco @cloudflare/pcx-technical-writing @celso @meddulla
4545

4646
# Cloudflare One
4747

@@ -89,42 +89,42 @@
8989
/src/content/docs/d1/ @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
9090
/src/content/changelogs/d1.yaml @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
9191
/src/content/partials/d1/ @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
92-
/src/content/docs/durable-objects/ @elithrar @vy-ton @joshthoward @kodster28 @cloudflare/pcx-technical-writing
93-
/src/content/changelogs/durable-objects.yaml @elithrar @rozenmd @vy-ton @joshthoward @kodster28 @cloudflare/pcx-technical-writing
94-
/src/content/docs/email-routing/ @kodster28 @cloudflare/pcx-technical-writing
92+
/src/content/docs/durable-objects/ @elithrar @vy-ton @joshthoward @cloudflare/pcx-technical-writing
93+
/src/content/changelogs/durable-objects.yaml @elithrar @rozenmd @vy-ton @joshthoward @cloudflare/pcx-technical-writing
94+
/src/content/docs/email-routing/ @cloudflare/pcx-technical-writing
9595
/src/content/docs/hyperdrive/ @elithrar @thomasgauvin @sejoker @oxyjun @cloudflare/pcx-technical-writing
9696
/src/content/changelogs/hyperdrive.yaml @elithrar @thomasgauvin @sejoker @oxyjun @cloudflare/pcx-technical-writing
9797
/src/content/partials/hyperdrive/ @elithrar @thomasgauvin @sejoker @oxyjun @cloudflare/pcx-technical-writing
98-
/src/content/changelogs/durable-objects.yaml @elithrar @vy-ton @joshthoward @kodster28 @cloudflare/pcx-technical-writing
98+
/src/content/changelogs/durable-objects.yaml @elithrar @vy-ton @joshthoward @cloudflare/pcx-technical-writing
9999
/src/content/docs/images/ @dcpena @cloudflare/pcx-technical-writing @renandincer @third774
100-
/src/content/docs/pages/ @cloudflare/workers-docs @GregBrimble @WalshyDev @kodster28 @aninibread @cloudflare/pcx-technical-writing
101-
/src/assets/images/pages/ @cloudflare/workers-docs @GregBrimble @WalshyDev @kodster28 @aninibread @cloudflare/pcx-technical-writing
102-
/src/content/changelogs/pages.yaml @cloudflare/workers-docs @GregBrimble @WalshyDev @kodster28 @aninibread @cloudflare/pcx-technical-writing
100+
/src/content/docs/pages/ @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @irvinebroque @cloudflare/pcx-technical-writing
101+
/src/assets/images/pages/ @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/pcx-technical-writing
102+
/src/content/changelogs/pages.yaml @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/pcx-technical-writing
103103
/src/content/docs/kv/ @elithrar @thomasgauvin @rts-rob @oxyjun @cloudflare/pcx-technical-writing
104104
/src/content/changelogs/kv.yaml @elithrar @thomasgauvin @rts-rob @oxyjun @cloudflare/pcx-technical-writing
105105
/src/content/partials/kv/ @elithrar @thomasgauvin @rts-rob @oxyjun @cloudflare/pcx-technical-writing
106-
/src/content/docs/pub-sub/ @elithrar @kodster28 @dcpena @cloudflare/pcx-technical-writing
107-
/src/content/docs/queues/ @elithrar @toddmantell @maheshwarip @kodster28 @cloudflare/pcx-technical-writing
108-
/src/content/changelogs/queues.yaml @elithrar @toddmantell @maheshwarip @kodster28 @cloudflare/pcx-technical-writing
106+
/src/content/docs/pub-sub/ @elithrar @dcpena @cloudflare/pcx-technical-writing
107+
/src/content/docs/queues/ @elithrar @toddmantell @maheshwarip @cloudflare/pcx-technical-writing
108+
/src/content/changelogs/queues.yaml @elithrar @toddmantell @maheshwarip @cloudflare/pcx-technical-writing
109109
/src/content/docs/r2/ @dcpena @elithrar @jonesphillip @cloudflare/workers-docs @cloudflare/pcx-technical-writing
110110
/src/content/changelogs/r2.yaml @dcpena @elithrar @cloudflare/workers-docs @cloudflare/pcx-technical-writing
111111
/src/content/docs/stream/ @tsmith512 @dcpena @cloudflare/pcx-technical-writing @renandincer @third774
112112
/src/content/changelogs/stream.yaml @tsmith512 @dcpena @cloudflare/pcx-technical-writing
113-
/src/content/docs/workers/ @cloudflare/workers-docs @GregBrimble @irvinebroque @mikenomitch @WalshyDev @kodster28 @cloudflare/pcx-technical-writing
114-
/src/assets/images/workers/ @cloudflare/workers-docs @GregBrimble @irvinebroque @WalshyDev @kodster28 @cloudflare/pcx-technical-writing
115-
/src/content/changelogs/workers.yaml @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @kodster28 @cloudflare/pcx-technical-writing @irvinebroque
113+
/src/content/docs/workers/ @cloudflare/workers-docs @GregBrimble @irvinebroque @mikenomitch @WalshyDev @cloudflare/pcx-technical-writing
114+
/src/assets/images/workers/ @cloudflare/workers-docs @GregBrimble @irvinebroque @WalshyDev @cloudflare/pcx-technical-writing
115+
/src/content/changelogs/workers.yaml @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/pcx-technical-writing @irvinebroque
116116
/src/content/docs/zaraz/ @bjesus @jonnyparris @simonabadoiu @cloudflare/pcx-technical-writing
117117
/src/content/changelogs/zaraz.yaml @bjesus @jonnyparris @simonabadoiu @cloudflare/pcx-technical-writing
118-
/src/content/docs/workers/ci-cd/ @irvinebroque @aninibread @GregBrimble @kodster28 @cloudflare/pcx-technical-writing
119-
/src/content/docs/workers/runtime-apis/ @irvinebroque @jasnell @mikenomitch @kodster28 @GregBrimble @cloudflare/pcx-technical-writing
120-
/src/content/docs/workers/runtime-apis/bindings/ @irvinebroque @mikenomitch @kodster28 @GregBrimble @cloudflare/pcx-technical-writing
121-
/src/content/docs/workers/platform/ @irvinebroque @tanushree-sharma @kodster28 @GregBrimble @cloudflare/pcx-technical-writing
122-
/src/content/docs/workers/configuration/compatibility-dates/ @irvinebroque @kodster28 @mikenomitch @GregBrimble @cloudflare/pcx-technical-writing
123-
/src/content/docs/workers/reference/migrate-to-module-workers/ @irvinebroque @kodster28 @GregBrimble @cloudflare/pcx-technical-writing
124-
/src/content/docs/workers/reference/security-model/ @irvinebroque @kodster28 @GregBrimble @cloudflare/pcx-technical-writing
118+
/src/content/docs/workers/ci-cd/ @irvinebroque @aninibread @GregBrimble @cloudflare/pcx-technical-writing
119+
/src/content/docs/workers/runtime-apis/ @irvinebroque @jasnell @mikenomitch @GregBrimble @cloudflare/pcx-technical-writing
120+
/src/content/docs/workers/runtime-apis/bindings/ @irvinebroque @mikenomitch @GregBrimble @cloudflare/pcx-technical-writing
121+
/src/content/docs/workers/platform/ @irvinebroque @tanushree-sharma @GregBrimble @cloudflare/pcx-technical-writing
122+
/src/content/docs/workers/configuration/compatibility-dates/ @irvinebroque @mikenomitch @GregBrimble @cloudflare/pcx-technical-writing
123+
/src/content/docs/workers/reference/migrate-to-module-workers/ @irvinebroque @GregBrimble @cloudflare/pcx-technical-writing
124+
/src/content/docs/workers/reference/security-model/ @irvinebroque @GregBrimble @cloudflare/pcx-technical-writing
125125
/src/content/compatibility-dates/ @irvinebroque @kflansburg @mikenomitch @GregBrimble @cloudflare/pcx-technical-writing
126126
/src/content/docs/workers/wrangler/ @penalosa @petebacondarwin @dario-piotrowicz @irvinebroque @GregBrimble @cloudflare/pcx-technical-writing
127-
/src/content/docs/pages/framework-guides/ @igorminar @dario-piotrowicz @jculvey @aninibread @GregBrimble @kodster28 @cloudflare/pcx-technical-writing
127+
/src/content/docs/pages/framework-guides/ @igorminar @dario-piotrowicz @jculvey @aninibread @GregBrimble @cloudflare/pcx-technical-writing
128128
/src/content/docs/analytics/analytics-engine/ @irvinebroque @elithrar @cloudflare/pcx-technical-writing
129129
/cloudflare-for-platforms/workers-for-platforms/ @irvinebroque @tanushree-sharma @angelampcosta @GregBrimble @cloudflare/pcx-technical-writing
130130
/src/content/docs/workers/observability/ @irvinebroque @mikenomitch @rohinlohe @cloudflare/pcx-technical-writing
@@ -138,8 +138,8 @@
138138

139139
# Docs team areas
140140

141-
/src/content/docs/docs-guide/ @kodster28 @crwaters16 @cloudflare/pcx-technical-writing
142-
/src/content/docs/style-guide/ @kodster28 @crwaters16 @cloudflare/pcx-technical-writing
141+
/src/content/docs/docs-guide/ @crwaters16 @cloudflare/pcx-technical-writing
142+
/src/content/docs/style-guide/ @crwaters16 @cloudflare/pcx-technical-writing
143143

144144
# Magic products
145145

@@ -165,6 +165,11 @@
165165
/src/content/docs/speed/ @angelampcosta @cloudflare/pcx-technical-writing
166166
/src/content/docs/web3/ @cloudflare/pcx-technical-writing
167167

168+
# Privacy
169+
170+
/src/content/docs/key-transparency/ @cloudflare/privacy @cloudflare/pcx-technical-writing
171+
/src/content/docs/privacy-gateway/ @cloudflare/privacy @cloudflare/pcx-technical-writing
172+
168173
# Radar
169174

170175
/src/content/docs/radar/ @meddulla @G4brym @tiagoad @cloudflare/pcx-technical-writing

.github/styles/config/vocabularies/cloudflare/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ WordPress
3737
Worker
3838
Workers
3939
[wW]rangler
40+
wrangler.toml
4041
VMware
4142
VPN
4243
YubiKey

astro.config.mjs

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { h } from "hastscript";
1313
import { readdir } from "fs/promises";
1414
import icon from "astro-icon";
1515
import sitemap from "@astrojs/sitemap";
16+
import react from "@astrojs/react";
1617
import rehypeTitleFigure from "rehype-title-figure";
1718

1819
const runLinkCheck = process.env.RUN_LINK_CHECK || false;
@@ -35,25 +36,35 @@ async function autogenSections() {
3536
};
3637
});
3738
}
38-
3939
const AnchorLinkIcon = h(
4040
"span",
41-
{ ariaHidden: "true", class: "anchor-icon" },
41+
{
42+
ariaHidden: "true",
43+
class: "anchor-icon",
44+
},
4245
h(
4346
"svg",
44-
{ width: 16, height: 16, viewBox: "0 0 24 24" },
47+
{
48+
width: 16,
49+
height: 16,
50+
viewBox: "0 0 24 24",
51+
},
4552
h("path", {
4653
fill: "currentcolor",
4754
d: "m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 0 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 1 0-1.42-1.42Zm8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 0 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 1 0 1.42 1.42l3.88-3.89a4.49 4.49 0 0 0 0-6.33ZM8.83 15.17a1 1 0 0 0 1.1.22 1 1 0 0 0 .32-.22l4.92-4.92a1 1 0 0 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42Z",
4855
}),
4956
),
5057
);
51-
5258
const autolinkConfig = {
53-
properties: { class: "anchor-link" },
59+
properties: {
60+
class: "anchor-link",
61+
},
5462
behavior: "after",
5563
group: ({ tagName }) =>
56-
h("div", { tabIndex: -1, class: `heading-wrapper level-${tagName}` }),
64+
h("div", {
65+
tabIndex: -1,
66+
class: `heading-wrapper level-${tagName}`,
67+
}),
5768
content: () => [AnchorLinkIcon],
5869
};
5970

@@ -89,6 +100,7 @@ export default defineConfig({
89100
},
90101
experimental: {
91102
contentIntellisense: true,
103+
contentLayer: true,
92104
},
93105
server: {
94106
port: 1111,
@@ -125,7 +137,7 @@ export default defineConfig({
125137
],
126138
social: {
127139
github: "https://github.com/cloudflare/cloudflare-docs",
128-
twitter: "https://twitter.com/cloudflare",
140+
"x.com": "https://x.com/cloudflare",
129141
youtube: "https://www.youtube.com/cloudflare",
130142
},
131143
editLink: {
@@ -196,14 +208,17 @@ export default defineConfig({
196208
tailwind({
197209
applyBaseStyles: false,
198210
}),
199-
liveCode({ layout: "~/components/live-code/Layout.astro" }),
211+
liveCode({
212+
layout: "~/components/live-code/Layout.astro",
213+
}),
200214
icon(),
201215
sitemap({
202216
serialize(item) {
203217
item.lastmod = new Date();
204218
return item;
205219
},
206220
}),
221+
react(),
207222
],
208223
vite: {
209224
build: {

bin/fetch-ai-models.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import fs from "fs";
2+
3+
fetch("https://ai.cloudflare.com/api/models")
4+
.then((res) => res.json())
5+
.then((data) => {
6+
data.models.forEach((model) => {
7+
const fileName = model.name.split("/")[2];
8+
fs.writeFileSync(
9+
`./src/content/workers-ai-models/${fileName}.json`,
10+
JSON.stringify(model),
11+
"utf-8",
12+
);
13+
});
14+
});

ec.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,7 @@ export default {
153153
defaultLuminance: ["32%", "88%"],
154154
},
155155
},
156+
frames: {
157+
extractFileNameFromCode: false,
158+
},
156159
};

functions/schema.js renamed to functions/schema.ts

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
export async function onRequestGet(context) {
2-
const cachedSchema = await context.env.API_DOCS_KV.get("schema", "json");
1+
interface Environment {
2+
API_DOCS_KV: KVNamespace;
3+
}
4+
5+
export const onRequestGet: PagesFunction<Environment> = async (context) => {
6+
const cachedSchema = await context.env.API_DOCS_KV?.get("schema", "json");
37
if (cachedSchema) {
48
return new Response(JSON.stringify(cachedSchema), {
59
headers: { "Content-type": "application/json" },
@@ -17,16 +21,16 @@ export async function onRequestGet(context) {
1721
try {
1822
if (!response) {
1923
response = await fetch(req);
20-
let schema = await response.json();
24+
const schema = await response.json<any>();
2125

22-
const pathsByTag = {};
26+
const pathsByTag: Record<string, any> = {};
2327

2428
Object.keys(schema.paths).forEach((key) => {
2529
const path = schema.paths[key];
26-
const tag = Object.values(path).find((endpoint) => {
30+
const tag = Object.values(path).find((endpoint: any) => {
2731
const tags = endpoint.tags;
2832
return tags && tags.length && tags[0];
29-
});
33+
}) as string;
3034
if (tag) {
3135
if (!pathsByTag[tag]) pathsByTag[tag] = [];
3236
pathsByTag[tag].push({ path, key });
@@ -67,17 +71,17 @@ export async function onRequestGet(context) {
6771
return obj;
6872
}, {});
6973

70-
let sortedSchema = Object.assign({}, schema, { paths: sortedPaths });
74+
const sortedSchema = Object.assign({}, schema, { paths: sortedPaths });
7175

7276
response = new Response(JSON.stringify(sortedSchema), {
7377
headers: { "Content-type": "application/json" },
7478
});
7579

7680
const expirationTtl = 60 * 60;
77-
await context.env.API_DOCS_KV.put(
78-
"schema",
79-
JSON.stringify(sortedSchema),
80-
{ expirationTtl },
81+
context.waitUntil(
82+
context.env.API_DOCS_KV.put("schema", JSON.stringify(sortedSchema), {
83+
expirationTtl,
84+
}),
8185
);
8286
}
8387

@@ -86,4 +90,4 @@ export async function onRequestGet(context) {
8690
console.log(err);
8791
return fetch(req);
8892
}
89-
}
93+
};

0 commit comments

Comments
 (0)