Skip to content

Commit 7991ecf

Browse files
authored
Merge branch 'production' into tori/pcx14775-workers-overview-revamp
2 parents 17305dc + 15ebff5 commit 7991ecf

File tree

2,398 files changed

+88797
-23837
lines changed

Some content is hidden

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

2,398 files changed

+88797
-23837
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
*.html text eol=lf
55
*.ini text eol=lf
66
*.js text eol=lf
7+
*.jsx text eol=lf
78
*.json text eol=lf
89
*.md text eol=lf
910
*.mdx text eol=lf
1011
*.mjs text eol=lf
1112
*.svg text eol=lf
1213
*.toml text eol=lf
1314
*.ts text eol=lf
15+
*.tsx text eol=lf
1416
*.txt text eol=lf
1517
*.vue text eol=lf
1618
*.xml text eol=lf

.github/CODEOWNERS

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,28 @@
1010
/.github/actions/assign-pr/index.js @cloudflare/pcx-technical-writing
1111
/.github/styles/cloudflare/spelling-exceptions.txt @cloudflare/pcx-technical-writing
1212
/src/components/ @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @marciocloudflare @haleycode @maxvp @GregBrimble @KianNH @WalshyDev
13+
/src/schemas/tags.ts @kodster28 @KianNH @joslyn-cf
1314
*.js @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
1415
*.ts @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
1516
/src/content/workers-ai-models/ @craigsdennis @pedrosousa @cloudflare/pcx-technical-writing
1617
/public/_redirects @GregBrimble @KianNH @pedrosousa @WalshyDev @cloudflare/pcx-technical-writing
1718

1819
# AI
1920

20-
/src/content/docs/agents/ @irvinebroque @rita3ko @elithrar @thomasgauvin @threepointone
21+
/src/content/docs/agents/ @irvinebroque @rita3ko @elithrar @thomasgauvin @threepointone @harshil1712 @megaconfidence @cloudflare/pcx-technical-writing
2122
/src/content/docs/ai-gateway/ @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2223
/src/content/docs/workers-ai/ @rita3ko @craigsdennis @markdembo @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2324
/src/content/docs/vectorize/ @elithrar @vy-ton @sejoker @mchenco @cloudflare/pcx-technical-writing
2425
/src/content/partials/vectorize/ @elithrar @mchenco @sejoker @cloudflare/pcx-technical-writing
25-
/src/content/changelogs/workers-ai.yaml @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
26-
/src/content/changelogs/ai-gateway.yaml @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
27-
/src/content/changelogs/vectorize.yaml @elithrar @mchenco @sejoker @cloudflare/pcx-technical-writing
26+
/src/content/release-notes/workers-ai.yaml @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
27+
/src/content/release-notes/ai-gateway.yaml @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
28+
/src/content/release-notes/vectorize.yaml @elithrar @mchenco @sejoker @cloudflare/pcx-technical-writing
2829

2930
# Analytics & Logs
3031

3132
/src/content/docs/analytics/ @46bit @jherre @jimhawkridge @soheiokamoto @victor-perov @angelampcosta @cloudflare/pcx-technical-writing
3233
/src/content/docs/data-localization/ @soheiokamoto @angelampcosta @cloudflare/pcx-technical-writing
33-
/src/content/docs/logs/ @cmackenzie1 @jherre @soheiokamoto @victor-perov @angelampcosta @cloudflare/pcx-technical-writing
34+
/src/content/docs/logs/ @jherre @soheiokamoto @victor-perov @angelampcosta @cloudflare/pcx-technical-writing
3435

3536
# API & Zones
3637

@@ -41,12 +42,13 @@
4142

4243
# Browser Rendering API
4344

44-
/src/content/docs/browser-rendering/ @mchenco @cloudflare/pcx-technical-writing @celso @meddulla
45+
/src/content/docs/browser-rendering/ @mchenco @cloudflare/pcx-technical-writing @celso @meddulla @danielgek
4546

4647
# Changelogs
4748

48-
/src/content/changelogs-next/ @cloudflare/pm-changelogs
49-
/src/assets/images/changelog-next/ @cloudflare/pm-changelogs
49+
/src/content/changelog/ @cloudflare/pm-changelogs
50+
/src/assets/images/changelog/ @cloudflare/pm-changelogs
51+
/src/assets/images/ @cloudflare/pm-changelogs @cloudflare/pcx-technical-writing
5052

5153
# Cloudflare One
5254

@@ -62,8 +64,8 @@
6264
/src/content/docs/cloudflare-one/policies/data-loss-prevention/ @maxvp @cloudflare/pcx-technical-writing
6365
/src/content/docs/cloudflare-one/insights/dex/ @deadlypants1973 @cloudflare/pcx-technical-writing
6466
/src/content/docs/email-security/ @Maddy-Cloudflare @cloudflare/pcx-technical-writing
65-
/src/content/changelogs/access.yaml @ranbel @kennyj42 @cloudflare/pcx-technical-writing
66-
/src/content/changelogs/warp.yaml @kokolocomotion1 @ranbel @cloudflare/pcx-technical-writing
67+
/src/content/release-notes/access.yaml @ranbel @kennyj42 @cloudflare/pcx-technical-writing
68+
/src/content/release-notes/warp.yaml @kokolocomotion1 @ranbel @cloudflare/pcx-technical-writing
6769

6870
# Consumer products
6971

@@ -92,35 +94,35 @@
9294
/src/assets/images/calls/ @cloudflare/pcx-technical-writing @cloudflare/calls
9395
/public/calls/ @cloudflare/pcx-technical-writing @cloudflare/calls
9496
/src/content/docs/d1/ @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
95-
/src/content/changelogs/d1.yaml @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
97+
/src/content/release-notes/d1.yaml @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
9698
/src/content/partials/d1/ @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
9799
/src/content/docs/durable-objects/ @elithrar @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
98-
/src/content/changelogs/durable-objects.yaml @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
100+
/src/content/release-notes/durable-objects.yaml @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
99101
/src/content/docs/email-routing/ @cloudflare/pcx-technical-writing
100102
/src/content/docs/hyperdrive/ @elithrar @thomasgauvin @sejoker @oxyjun @cloudflare/pcx-technical-writing
101-
/src/content/changelogs/hyperdrive.yaml @elithrar @thomasgauvin @sejoker @oxyjun @cloudflare/pcx-technical-writing
103+
/src/content/release-notes/hyperdrive.yaml @elithrar @thomasgauvin @sejoker @oxyjun @cloudflare/pcx-technical-writing
102104
/src/content/partials/hyperdrive/ @elithrar @thomasgauvin @sejoker @oxyjun @cloudflare/pcx-technical-writing
103-
/src/content/changelogs/durable-objects.yaml @elithrar @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
105+
/src/content/release-notes/durable-objects.yaml @elithrar @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
104106
/src/content/docs/images/ @dcpena @cloudflare/pcx-technical-writing @renandincer @third774
105107
/src/content/docs/pages/ @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @irvinebroque @cloudflare/pcx-technical-writing @ToriLindsay
106108
/src/assets/images/pages/ @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/pcx-technical-writing @ToriLindsay
107-
/src/content/changelogs/pages.yaml @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/pcx-technical-writing
109+
/src/content/release-notes/pages.yaml @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/pcx-technical-writing
108110
/src/content/docs/kv/ @elithrar @thomasgauvin @rts-rob @oxyjun @cloudflare/pcx-technical-writing
109-
/src/content/changelogs/kv.yaml @elithrar @thomasgauvin @rts-rob @oxyjun @cloudflare/pcx-technical-writing
111+
/src/content/release-notes/kv.yaml @elithrar @thomasgauvin @rts-rob @oxyjun @cloudflare/pcx-technical-writing
110112
/src/content/partials/kv/ @elithrar @thomasgauvin @rts-rob @oxyjun @cloudflare/pcx-technical-writing
111113
/src/content/docs/pub-sub/ @elithrar @dcpena @cloudflare/pcx-technical-writing
112114
/src/content/docs/queues/ @elithrar @toddmantell @maheshwarip @cloudflare/pcx-technical-writing
113-
/src/content/changelogs/queues.yaml @elithrar @toddmantell @maheshwarip @cloudflare/pcx-technical-writing
115+
/src/content/release-notes/queues.yaml @elithrar @toddmantell @maheshwarip @cloudflare/pcx-technical-writing
114116
/src/content/docs/r2/ @oxyjun @elithrar @jonesphillip @cloudflare/workers-docs @cloudflare/pcx-technical-writing
115-
/src/content/changelogs/r2.yaml @oxyjun @elithrar @cloudflare/workers-docs @cloudflare/pcx-technical-writing
117+
/src/content/release-notes/r2.yaml @oxyjun @elithrar @cloudflare/workers-docs @cloudflare/pcx-technical-writing
116118
/src/content/docs/stream/ @tsmith512 @dcpena @cloudflare/pcx-technical-writing @renandincer @third774
117-
/src/content/changelogs/stream.yaml @tsmith512 @dcpena @cloudflare/pcx-technical-writing
119+
/src/content/release-notes/stream.yaml @tsmith512 @dcpena @cloudflare/pcx-technical-writing
118120
/src/content/docs/workers/ @cloudflare/workers-docs @GregBrimble @irvinebroque @mikenomitch @WalshyDev @cloudflare/deploy-config @cloudflare/pcx-technical-writing @ToriLindsay
119121
/src/content/partials/workers/ @cloudflare/workers-docs @GregBrimble @irvinebroque @mikenomitch @WalshyDev @cloudflare/deploy-config @cloudflare/pcx-technical-writing @ToriLindsay
120122
/src/assets/images/workers/ @cloudflare/workers-docs @GregBrimble @irvinebroque @WalshyDev @cloudflare/deploy-config @cloudflare/pcx-technical-writing @ToriLindsay
121-
/src/content/changelogs/workers.yaml @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/deploy-config @cloudflare/pcx-technical-writing @irvinebroque @mikenomitch
123+
/src/content/release-notes/workers.yaml @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/deploy-config @cloudflare/pcx-technical-writing @irvinebroque @mikenomitch
122124
/src/content/docs/zaraz/ @bjesus @jonnyparris @simonabadoiu @cloudflare/pcx-technical-writing
123-
/src/content/changelogs/zaraz.yaml @bjesus @jonnyparris @simonabadoiu @cloudflare/pcx-technical-writing
125+
/src/content/release-notes/zaraz.yaml @bjesus @jonnyparris @simonabadoiu @cloudflare/pcx-technical-writing
124126
/src/content/docs/workers/ci-cd/ @irvinebroque @aninibread @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
125127
/src/content/docs/workers/runtime-apis/ @irvinebroque @jasnell @mikenomitch @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
126128
/src/content/docs/workers/runtime-apis/bindings/ @irvinebroque @mikenomitch @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
@@ -138,14 +140,14 @@
138140
/src/content/docs/cloudflare-for-platforms/workers-for-platforms/ @irvinebroque @angelampcosta @GregBrimble @cloudflare/deploy-config @cloudflare/pcx-technical-writing
139141
/src/content/docs/workers/observability/ @irvinebroque @mikenomitch @rohinlohe @ToriLindsay @cloudflare/pcx-technical-writing
140142
/src/content/docs/workers/static-assets @irvinebroque @GregBrimble @WalshyDev @ToriLindsay @cloudflare/deploy-config @cloudflare/pcx-technical-writing
141-
/src/content/docs/workflows/ @ToriLindsay @elithrar @celso @sidharthachatterjee @cloudflare/pcx-technical-writing
143+
/src/content/docs/workflows/ @elithrar @celso @sidharthachatterjee @cloudflare/pcx-technical-writing
142144

143145
# DDoS Protection
144146

145147
/src/content/docs/ddos-protection/ @patriciasantaana @cloudflare/pcx-technical-writing
146148
/src/content/docs/ddos-protection/change-log/ @antoinecordelle @patriciasantaana @cloudflare/pcx-technical-writing
147-
/src/content/changelogs/ddos-http.yaml @antoinecordelle @patriciasantaana @cloudflare/pcx-technical-writing
148-
/src/content/changelogs/ddos-network.yaml @antoinecordelle @patriciasantaana @cloudflare/pcx-technical-writing
149+
/src/content/release-notes/ddos-http.yaml @antoinecordelle @patriciasantaana @cloudflare/pcx-technical-writing
150+
/src/content/release-notes/ddos-network.yaml @antoinecordelle @patriciasantaana @cloudflare/pcx-technical-writing
149151

150152
# Docs team areas
151153

@@ -184,7 +186,7 @@
184186
# Radar
185187

186188
/src/content/docs/radar/ @meddulla @G4brym @tiagoad @andre-j3sus @cloudflare/pcx-technical-writing
187-
/src/content/changelogs/radar.yaml @meddulla @G4brym @tiagoad @andre-j3sus @cloudflare/pcx-technical-writing
189+
/src/content/release-notes/radar.yaml @meddulla @G4brym @tiagoad @andre-j3sus @cloudflare/pcx-technical-writing
188190

189191
# Reference architecture
190192

@@ -202,7 +204,7 @@
202204
/src/content/docs/ssl/ @RebeccaTamachiro @cloudflare/pcx-technical-writing
203205
/src/content/docs/waf/ @pedrosousa @cloudflare/firewall @cloudflare/pcx-technical-writing
204206
/src/content/docs/waf/change-log/ @pedrosousa @cloudflare/firewall @vs-mg @cloudflare/pcx-technical-writing
205-
/src/content/changelogs/waf.yaml @pedrosousa @cloudflare/firewall @vs-mg @cloudflare/pcx-technical-writing
207+
/src/content/release-notes/waf.yaml @pedrosousa @cloudflare/firewall @vs-mg @cloudflare/pcx-technical-writing
206208

207209
# Support
208210

@@ -216,7 +218,7 @@
216218
# Waiting Room
217219

218220
/src/content/docs/waiting-room/ @angelampcosta @cloudflare/pcx-technical-writing
219-
/src/content/changelogs/waiting-room.yaml @angelampcosta @cloudflare/pcx-technical-writing
221+
/src/content/release-notes/waiting-room.yaml @angelampcosta @cloudflare/pcx-technical-writing
220222

221223
# Web Analytics
222224

.github/workflows/anchor-link-audit.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ name: Anchor link audit
55
# **Who does it impact**: PCX team
66

77
on:
8-
schedule:
9-
- cron: "0 0 * * 0" # Run at 00:00 UTC every Sunday
108
workflow_dispatch:
119

1210
jobs:

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,10 @@ jobs:
5757

5858
- name: Tests
5959
run: npm run test
60+
61+
- name: Post PR CI failure comment
62+
if: always()
63+
continue-on-error: true
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
run: npx tsx bin/post-pr-ci-failure-comment/index.ts

.github/workflows/publish-preview.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ concurrency:
99

1010
jobs:
1111
publish:
12+
if: github.repository == 'cloudflare/cloudflare-docs'
1213
runs-on: ubuntu-22.04
1314
permissions:
1415
contents: read
@@ -45,6 +46,7 @@ jobs:
4546
env:
4647
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4748
run: npx tsx bin/post-preview-url-comment/index.ts
49+
continue-on-error: true
4850
- uses: actions/cache/save@v4
4951
if: always()
5052
with:

.hyperlint/config.yaml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
content_dir: /src/content
2-
authorized_users:
3-
- dcpena
4-
- kodster28
5-
- KianNH
6-
- marciocloudflare
7-
- pedrosousa
8-
- ranbel
9-
- RebeccaTamachiro
10-
style_guide:
2+
reviewer:
3+
custom_comment: |-
4+
Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within **two (2) weeks**. If it's been two weeks or longer without any movement, please tag the PR **Assignees** in a comment.
5+
6+
We review internal PRs within **1 week**. If it's something urgent or has been sitting without a comment, start a thread in the *Developer Docs* space internally.
117
enabled: true
12-
openapi:
13-
enabled: true
14-
urls:
15-
- https://raw.githubusercontent.com/cloudflare/api-schemas/main/openapi.json
8+
external_link_validation:
9+
check_status_upon_review_failure: neutral
10+
summarize_pull_request:
11+
enabled: true
12+
vale_style_guide:
13+
check_status_upon_review_failure: neutral
14+
enabled: true
15+
limit_num_reviews: 2
16+
limit_num_comments: 7

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.9.0

astro.config.ts

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ import starlightLinksValidator from "starlight-links-validator";
88
import icon from "astro-icon";
99
import sitemap from "@astrojs/sitemap";
1010
import react from "@astrojs/react";
11+
1112
import { readdir } from "fs/promises";
13+
import { fileURLToPath } from "url";
1214

1315
import rehypeTitleFigure from "rehype-title-figure";
1416
import rehypeMermaid from "./src/plugins/rehype/mermaid.ts";
1517
import rehypeAutolinkHeadings from "./src/plugins/rehype/autolink-headings.ts";
1618
import rehypeExternalLinks from "./src/plugins/rehype/external-links.ts";
1719
import rehypeHeadingSlugs from "./src/plugins/rehype/heading-slugs.ts";
18-
import { fileURLToPath } from "url";
1920

2021
async function autogenSections() {
2122
const sections = (
@@ -36,7 +37,21 @@ async function autogenSections() {
3637
});
3738
}
3839

40+
async function autogenStyles() {
41+
const styles = (
42+
await readdir("./src/styles/", {
43+
withFileTypes: true,
44+
recursive: true,
45+
})
46+
)
47+
.filter((x) => x.isFile())
48+
.map((x) => x.parentPath + x.name);
49+
50+
return styles;
51+
}
52+
3953
const sidebar = await autogenSections();
54+
const customCss = await autogenStyles();
4055

4156
const runLinkCheck = process.env.RUN_LINK_CHECK || false;
4257

@@ -88,26 +103,15 @@ export default defineConfig({
88103
components: {
89104
Footer: "./src/components/overrides/Footer.astro",
90105
Head: "./src/components/overrides/Head.astro",
106+
Header: "./src/components/overrides/Header.astro",
91107
Hero: "./src/components/overrides/Hero.astro",
92108
MarkdownContent: "./src/components/overrides/MarkdownContent.astro",
93109
Sidebar: "./src/components/overrides/Sidebar.astro",
94110
PageTitle: "./src/components/overrides/PageTitle.astro",
95-
SocialIcons: "./src/components/overrides/SocialIcons.astro",
96111
TableOfContents: "./src/components/overrides/TableOfContents.astro",
97112
},
98113
sidebar,
99-
customCss: [
100-
"./src/asides.css",
101-
"./src/badges.css",
102-
"./src/code.css",
103-
"./src/footnotes.css",
104-
"./src/headings.css",
105-
"./src/input.css",
106-
"./src/mermaid.css",
107-
"./src/table.css",
108-
"./src/tailwind.css",
109-
"./src/title.css",
110-
],
114+
customCss,
111115
pagination: false,
112116
plugins: [
113117
...(runLinkCheck
@@ -118,7 +122,7 @@ export default defineConfig({
118122
exclude: [
119123
"/api/",
120124
"/api/**",
121-
"/changelog/",
125+
"/changelog/**",
122126
"/http/resources/**",
123127
"{props.*}",
124128
"/",
@@ -145,9 +149,7 @@ export default defineConfig({
145149
tailwind({
146150
applyBaseStyles: false,
147151
}),
148-
liveCode({
149-
layout: "~/components/live-code/Layout.astro",
150-
}),
152+
liveCode({}),
151153
icon(),
152154
sitemap({
153155
filter(page) {

bin/fetch-ai-models.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from "fs";
33
fetch("https://ai.cloudflare.com/api/models")
44
.then((res) => res.json())
55
.then((data) => {
6-
data.models.forEach((model) => {
6+
data.models.map((model) => {
77
const fileName = model.name.split("/")[2];
88
fs.writeFileSync(
99
`./src/content/workers-ai-models/${fileName}.json`,

0 commit comments

Comments
 (0)