Skip to content

Commit f840551

Browse files
committed
Merge branch 'production' into erin/china-network-update
2 parents 252c2e9 + 34c97b1 commit f840551

File tree

1,417 files changed

+26368
-14588
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,417 files changed

+26368
-14588
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: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717

1818
# AI
1919

20-
/src/content/docs/agents/ @irvinebroque @rita3ko @elithrar @thomasgauvin @threepointone @kodster28 @KianNH
20+
/src/content/docs/agents/ @irvinebroque @rita3ko @elithrar @thomasgauvin @threepointone @harshil1712 @megaconfidence @cloudflare/pcx-technical-writing
2121
/src/content/docs/ai-gateway/ @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2222
/src/content/docs/workers-ai/ @rita3ko @craigsdennis @markdembo @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2323
/src/content/docs/vectorize/ @elithrar @vy-ton @sejoker @mchenco @cloudflare/pcx-technical-writing
2424
/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
25+
/src/content/release-notes/workers-ai.yaml @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
26+
/src/content/release-notes/ai-gateway.yaml @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
27+
/src/content/release-notes/vectorize.yaml @elithrar @mchenco @sejoker @cloudflare/pcx-technical-writing
2828

2929
# Analytics & Logs
3030

@@ -45,8 +45,9 @@
4545

4646
# Changelogs
4747

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

5152
# Cloudflare One
5253

@@ -62,8 +63,8 @@
6263
/src/content/docs/cloudflare-one/policies/data-loss-prevention/ @maxvp @cloudflare/pcx-technical-writing
6364
/src/content/docs/cloudflare-one/insights/dex/ @deadlypants1973 @cloudflare/pcx-technical-writing
6465
/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
66+
/src/content/release-notes/access.yaml @ranbel @kennyj42 @cloudflare/pcx-technical-writing
67+
/src/content/release-notes/warp.yaml @kokolocomotion1 @ranbel @cloudflare/pcx-technical-writing
6768

6869
# Consumer products
6970

@@ -92,35 +93,35 @@
9293
/src/assets/images/calls/ @cloudflare/pcx-technical-writing @cloudflare/calls
9394
/public/calls/ @cloudflare/pcx-technical-writing @cloudflare/calls
9495
/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
96+
/src/content/release-notes/d1.yaml @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
9697
/src/content/partials/d1/ @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
9798
/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
99+
/src/content/release-notes/durable-objects.yaml @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
99100
/src/content/docs/email-routing/ @cloudflare/pcx-technical-writing
100101
/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
102+
/src/content/release-notes/hyperdrive.yaml @elithrar @thomasgauvin @sejoker @oxyjun @cloudflare/pcx-technical-writing
102103
/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
104+
/src/content/release-notes/durable-objects.yaml @elithrar @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
104105
/src/content/docs/images/ @dcpena @cloudflare/pcx-technical-writing @renandincer @third774
105106
/src/content/docs/pages/ @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @irvinebroque @cloudflare/pcx-technical-writing @ToriLindsay
106107
/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
108+
/src/content/release-notes/pages.yaml @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/pcx-technical-writing
108109
/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
110+
/src/content/release-notes/kv.yaml @elithrar @thomasgauvin @rts-rob @oxyjun @cloudflare/pcx-technical-writing
110111
/src/content/partials/kv/ @elithrar @thomasgauvin @rts-rob @oxyjun @cloudflare/pcx-technical-writing
111112
/src/content/docs/pub-sub/ @elithrar @dcpena @cloudflare/pcx-technical-writing
112113
/src/content/docs/queues/ @elithrar @toddmantell @maheshwarip @cloudflare/pcx-technical-writing
113-
/src/content/changelogs/queues.yaml @elithrar @toddmantell @maheshwarip @cloudflare/pcx-technical-writing
114+
/src/content/release-notes/queues.yaml @elithrar @toddmantell @maheshwarip @cloudflare/pcx-technical-writing
114115
/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
116+
/src/content/release-notes/r2.yaml @oxyjun @elithrar @cloudflare/workers-docs @cloudflare/pcx-technical-writing
116117
/src/content/docs/stream/ @tsmith512 @dcpena @cloudflare/pcx-technical-writing @renandincer @third774
117-
/src/content/changelogs/stream.yaml @tsmith512 @dcpena @cloudflare/pcx-technical-writing
118+
/src/content/release-notes/stream.yaml @tsmith512 @dcpena @cloudflare/pcx-technical-writing
118119
/src/content/docs/workers/ @cloudflare/workers-docs @GregBrimble @irvinebroque @mikenomitch @WalshyDev @cloudflare/deploy-config @cloudflare/pcx-technical-writing @ToriLindsay
119120
/src/content/partials/workers/ @cloudflare/workers-docs @GregBrimble @irvinebroque @mikenomitch @WalshyDev @cloudflare/deploy-config @cloudflare/pcx-technical-writing @ToriLindsay
120121
/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
122+
/src/content/release-notes/workers.yaml @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/deploy-config @cloudflare/pcx-technical-writing @irvinebroque @mikenomitch
122123
/src/content/docs/zaraz/ @bjesus @jonnyparris @simonabadoiu @cloudflare/pcx-technical-writing
123-
/src/content/changelogs/zaraz.yaml @bjesus @jonnyparris @simonabadoiu @cloudflare/pcx-technical-writing
124+
/src/content/release-notes/zaraz.yaml @bjesus @jonnyparris @simonabadoiu @cloudflare/pcx-technical-writing
124125
/src/content/docs/workers/ci-cd/ @irvinebroque @aninibread @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
125126
/src/content/docs/workers/runtime-apis/ @irvinebroque @jasnell @mikenomitch @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
126127
/src/content/docs/workers/runtime-apis/bindings/ @irvinebroque @mikenomitch @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
@@ -144,8 +145,8 @@
144145

145146
/src/content/docs/ddos-protection/ @patriciasantaana @cloudflare/pcx-technical-writing
146147
/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
148+
/src/content/release-notes/ddos-http.yaml @antoinecordelle @patriciasantaana @cloudflare/pcx-technical-writing
149+
/src/content/release-notes/ddos-network.yaml @antoinecordelle @patriciasantaana @cloudflare/pcx-technical-writing
149150

150151
# Docs team areas
151152

@@ -184,7 +185,7 @@
184185
# Radar
185186

186187
/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
188+
/src/content/release-notes/radar.yaml @meddulla @G4brym @tiagoad @andre-j3sus @cloudflare/pcx-technical-writing
188189

189190
# Reference architecture
190191

@@ -202,7 +203,7 @@
202203
/src/content/docs/ssl/ @RebeccaTamachiro @cloudflare/pcx-technical-writing
203204
/src/content/docs/waf/ @pedrosousa @cloudflare/firewall @cloudflare/pcx-technical-writing
204205
/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
206+
/src/content/release-notes/waf.yaml @pedrosousa @cloudflare/firewall @vs-mg @cloudflare/pcx-technical-writing
206207

207208
# Support
208209

@@ -216,7 +217,7 @@
216217
# Waiting Room
217218

218219
/src/content/docs/waiting-room/ @angelampcosta @cloudflare/pcx-technical-writing
219-
/src/content/changelogs/waiting-room.yaml @angelampcosta @cloudflare/pcx-technical-writing
220+
/src/content/release-notes/waiting-room.yaml @angelampcosta @cloudflare/pcx-technical-writing
220221

221222
# Web Analytics
222223

.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/pr.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,27 @@ jobs:
1818
- uses: ./.github/actions/assign-pr
1919
with:
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
22+
review_comment:
23+
name: Add review comment
24+
runs-on: ubuntu-latest
25+
steps:
26+
- id: check_if_contributor_is_external
27+
name: Check if contributor is external
28+
run: 'curl --write-out ''%{http_code}'' --silent --output /dev/null -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ env.GH_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/orgs/cloudflare/members/${{ github.event.pull_request.user.login }} | grep -q ''204'' && echo "is_external=false" >> $GITHUB_OUTPUT || echo "is_external=true" >> $GITHUB_OUTPUT'
29+
env:
30+
GH_TOKEN: ${{ secrets.HOLOPIN_LABELER }}
31+
- name: External comment
32+
run: gh pr comment "$NUMBER" --body "Howdy and thanks for contributing to our repo. We review 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."
33+
if: steps.check_if_contributor_is_external.outputs.is_external == 'true'
34+
env:
35+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
GH_REPO: ${{ github.repository }}
37+
NUMBER: ${{ github.event.pull_request.number }}
38+
- name: Internal comment
39+
run: gh pr comment "$NUMBER" --body "Howdy and thanks for contributing to our repo. 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."
40+
if: steps.check_if_contributor_is_external.outputs.is_external == 'false'
41+
env:
42+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
GH_REPO: ${{ github.repository }}
44+
NUMBER: ${{ github.event.pull_request.number }}

.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:

.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: 18 additions & 16 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

@@ -96,18 +111,7 @@ export default defineConfig({
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
@@ -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-warp-releases.js

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ import fs from "fs";
22
import YAML from "yaml";
33
import { marked } from "marked";
44

5-
const tracks = ["windows/ga", "windows/beta", "macos/ga", "macos/beta"];
5+
const tracks = [
6+
"windows/ga",
7+
"windows/beta",
8+
"macos/ga",
9+
"macos/beta",
10+
"noble-intel/ga",
11+
"noble-intel/beta",
12+
];
613

714
const linesToRemove = [
815
"For related Cloudflare for Teams documentation please see: https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp",
@@ -11,11 +18,23 @@ const linesToRemove = [
1118
"For Consumer documentation please see: https://developers.cloudflare.com/warp-client/",
1219
];
1320

14-
for (const track of tracks) {
21+
for (let track of tracks) {
1522
fetch(`https://downloads.cloudflareclient.com/v1/update/json/${track}`)
1623
.then((res) => res.json())
1724
.then((data) => {
25+
if (!data.items) {
26+
console.warn(
27+
`${track} has no releases: ${JSON.stringify(data, null, 2)}`,
28+
);
29+
30+
return;
31+
}
32+
1833
data.items.forEach((item) => {
34+
if (track.startsWith("noble-intel")) {
35+
track = track.replace("noble-intel", "linux");
36+
}
37+
1938
const path = `./src/content/warp-releases/${track}/${item.version}.yaml`;
2039

2140
if (fs.existsSync(path)) {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export const GITHUB_ACTIONS_BOT_ID = 41898282;
2+
export const DOCS_BASE_URL = "https://developers.cloudflare.com";
3+
export const CONTENT_BASE_PATH = "src/content";
4+
export const PREVIEW_URL_REGEX = /^\*\*Preview URL:\*\* (.*)$/m;

0 commit comments

Comments
 (0)