Skip to content

Commit 608f380

Browse files
Merge branch 'production' into dependabot/npm_and_yarn/prettier-3.5.2
2 parents 64342f3 + 132bd1e commit 608f380

File tree

1,542 files changed

+74899
-15224
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,542 files changed

+74899
-15224
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*.xml text eol=lf
1919
*.yaml text eol=lf
2020
*.yml text eol=lf
21-
_redirects text eol=lf
21+
__redirects text eol=lf
2222
.editorconfig text eol=lf
2323
.gitattributes text eol=lf
2424
.prettierignore text eol=lf

.github/CODEOWNERS

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@
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-
*.js @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
14-
*.ts @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
13+
*.js @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @GregBrimble @KianNH @WalshyDev
14+
*.ts @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @GregBrimble @KianNH @WalshyDev
15+
*.astro @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @GregBrimble @KianNH @WalshyDev
16+
/src/schemas/tags.ts @kodster28 @KianNH @joslyn-cf
1517
/src/content/workers-ai-models/ @craigsdennis @pedrosousa @cloudflare/pcx-technical-writing
16-
/public/_redirects @GregBrimble @KianNH @pedrosousa @WalshyDev @cloudflare/pcx-technical-writing
18+
/public/__redirects @GregBrimble @KianNH @pedrosousa @WalshyDev @cloudflare/pcx-technical-writing
19+
1720

1821
# AI
1922

20-
/src/content/docs/agents/ @irvinebroque @rita3ko @elithrar @thomasgauvin @threepointone @kodster28 @KianNH
23+
/src/content/docs/agents/ @irvinebroque @rita3ko @elithrar @thomasgauvin @threepointone @cloudflare/pcx-technical-writing
2124
/src/content/docs/ai-gateway/ @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2225
/src/content/docs/workers-ai/ @rita3ko @craigsdennis @markdembo @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2326
/src/content/docs/vectorize/ @elithrar @vy-ton @sejoker @mchenco @cloudflare/pcx-technical-writing
@@ -92,10 +95,10 @@
9295
/src/content/docs/calls/ @cloudflare/pcx-technical-writing @cloudflare/calls
9396
/src/assets/images/calls/ @cloudflare/pcx-technical-writing @cloudflare/calls
9497
/public/calls/ @cloudflare/pcx-technical-writing @cloudflare/calls
95-
/src/content/docs/d1/ @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
98+
/src/content/docs/d1/ @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @harshil1712 @cloudflare/pcx-technical-writing
9699
/src/content/release-notes/d1.yaml @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
97-
/src/content/partials/d1/ @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
98-
/src/content/docs/durable-objects/ @elithrar @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
100+
/src/content/partials/d1/ @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @harshil1712 @cloudflare/pcx-technical-writing
101+
/src/content/docs/durable-objects/ @elithrar @vy-ton @joshthoward @oxyjun @harshil1712 @cloudflare/pcx-technical-writing
99102
/src/content/release-notes/durable-objects.yaml @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
100103
/src/content/docs/email-routing/ @cloudflare/pcx-technical-writing
101104
/src/content/docs/hyperdrive/ @elithrar @thomasgauvin @sejoker @oxyjun @cloudflare/pcx-technical-writing
@@ -110,9 +113,9 @@
110113
/src/content/release-notes/kv.yaml @elithrar @thomasgauvin @rts-rob @oxyjun @cloudflare/pcx-technical-writing
111114
/src/content/partials/kv/ @elithrar @thomasgauvin @rts-rob @oxyjun @cloudflare/pcx-technical-writing
112115
/src/content/docs/pub-sub/ @elithrar @dcpena @cloudflare/pcx-technical-writing
113-
/src/content/docs/queues/ @elithrar @toddmantell @maheshwarip @cloudflare/pcx-technical-writing
116+
/src/content/docs/queues/ @elithrar @toddmantell @maheshwarip @harshil1712 @cloudflare/pcx-technical-writing
114117
/src/content/release-notes/queues.yaml @elithrar @toddmantell @maheshwarip @cloudflare/pcx-technical-writing
115-
/src/content/docs/r2/ @oxyjun @elithrar @jonesphillip @cloudflare/workers-docs @cloudflare/pcx-technical-writing
118+
/src/content/docs/r2/ @oxyjun @elithrar @jonesphillip @harshil1712 @cloudflare/workers-docs @cloudflare/pcx-technical-writing
116119
/src/content/release-notes/r2.yaml @oxyjun @elithrar @cloudflare/workers-docs @cloudflare/pcx-technical-writing
117120
/src/content/docs/stream/ @tsmith512 @dcpena @cloudflare/pcx-technical-writing @renandincer @third774
118121
/src/content/release-notes/stream.yaml @tsmith512 @dcpena @cloudflare/pcx-technical-writing
@@ -133,13 +136,13 @@
133136
/src/content/docs/workers/reference/security-model.mdx @irvinebroque @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
134137
/src/content/compatibility-flags/ @irvinebroque @mikenomitch @GregBrimble @cloudflare/pcx-technical-writing
135138
/src/content/docs/workers/wrangler/ @cloudflare/wrangler @cloudflare/wrangler-friends @irvinebroque @ToriLindsay @cloudflare/pcx-technical-writing
136-
/src/content/docs/workers/frameworks/ @igorminar @dario-piotrowicz @jculvey @aninibread @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
137-
/src/content/docs/pages/framework-guides/ @igorminar @dario-piotrowicz @jculvey @aninibread @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
139+
/src/content/docs/workers/frameworks/ @igorminar @cloudflare/wrangler @aninibread @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
140+
/src/content/docs/pages/framework-guides/ @igorminar @cloudflare/wrangler @aninibread @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
138141
/src/content/docs/analytics/analytics-engine/ @irvinebroque @elithrar @cloudflare/pcx-technical-writing
139142
/src/content/docs/cloudflare-for-platforms/workers-for-platforms/ @irvinebroque @angelampcosta @GregBrimble @cloudflare/deploy-config @cloudflare/pcx-technical-writing
140143
/src/content/docs/workers/observability/ @irvinebroque @mikenomitch @rohinlohe @ToriLindsay @cloudflare/pcx-technical-writing
141144
/src/content/docs/workers/static-assets @irvinebroque @GregBrimble @WalshyDev @ToriLindsay @cloudflare/deploy-config @cloudflare/pcx-technical-writing
142-
/src/content/docs/workflows/ @ToriLindsay @elithrar @celso @sidharthachatterjee @cloudflare/pcx-technical-writing
145+
/src/content/docs/workflows/ @elithrar @celso @sidharthachatterjee @cloudflare/pcx-technical-writing
143146

144147
# DDoS Protection
145148

.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: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,3 @@ 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 **2 weeks**. If it's been longer than then without any movement, 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: 1 addition & 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

.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

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ dist
22
# generated actions JS
33
.github/**/*/index.js
44
.github/CODEOWNERS
5-
public/_redirects
5+
public/__redirects
66
public/analytics/static/downloads/main.css
77
src/content/workers-ai-models/*.json

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"editor.formatOnSave": true,
44
"editor.defaultFormatter": "esbenp.prettier-vscode",
55
"typescript.tsdk": "node_modules/typescript/lib",
6-
"cSpell.enableFiletypes": ["mdx"]
6+
"cSpell.enableFiletypes": ["mdx"],
7+
"files.associations": { "__redirects": "plaintext", "_headers": "plaintext" }
78
}

astro.config.ts

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,21 @@ async function autogenSections() {
3737
});
3838
}
3939

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+
4053
const sidebar = await autogenSections();
54+
const customCss = await autogenStyles();
4155

4256
const runLinkCheck = process.env.RUN_LINK_CHECK || false;
4357

@@ -55,6 +69,14 @@ export default defineConfig({
5569
rehypeTitleFigure,
5670
],
5771
},
72+
image: {
73+
service: {
74+
entrypoint: "astro/assets/services/sharp",
75+
config: {
76+
limitInputPixels: false,
77+
},
78+
},
79+
},
5880
experimental: {
5981
contentIntellisense: true,
6082
},
@@ -89,26 +111,15 @@ export default defineConfig({
89111
components: {
90112
Footer: "./src/components/overrides/Footer.astro",
91113
Head: "./src/components/overrides/Head.astro",
114+
Header: "./src/components/overrides/Header.astro",
92115
Hero: "./src/components/overrides/Hero.astro",
93116
MarkdownContent: "./src/components/overrides/MarkdownContent.astro",
94117
Sidebar: "./src/components/overrides/Sidebar.astro",
95118
PageTitle: "./src/components/overrides/PageTitle.astro",
96-
SocialIcons: "./src/components/overrides/SocialIcons.astro",
97119
TableOfContents: "./src/components/overrides/TableOfContents.astro",
98120
},
99121
sidebar,
100-
customCss: [
101-
"./src/asides.css",
102-
"./src/badges.css",
103-
"./src/code.css",
104-
"./src/footnotes.css",
105-
"./src/headings.css",
106-
"./src/input.css",
107-
"./src/mermaid.css",
108-
"./src/table.css",
109-
"./src/tailwind.css",
110-
"./src/title.css",
111-
],
122+
customCss,
112123
pagination: false,
113124
plugins: [
114125
...(runLinkCheck
@@ -119,7 +130,7 @@ export default defineConfig({
119130
exclude: [
120131
"/api/",
121132
"/api/**",
122-
"/changelog/",
133+
"/changelog/**",
123134
"/http/resources/**",
124135
"{props.*}",
125136
"/",
@@ -146,9 +157,7 @@ export default defineConfig({
146157
tailwind({
147158
applyBaseStyles: false,
148159
}),
149-
liveCode({
150-
layout: "~/components/live-code/Layout.astro",
151-
}),
160+
liveCode({}),
152161
icon(),
153162
sitemap({
154163
filter(page) {

0 commit comments

Comments
 (0)