Skip to content

Commit f888bee

Browse files
committed
Merge branch 'production' of github.com:cloudflare/cloudflare-docs into korinne-vite-plugin-docs
2 parents 7255613 + 244442f commit f888bee

File tree

1,127 files changed

+78075
-9627
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,127 files changed

+78075
-9627
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: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +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 @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
1316
/src/schemas/tags.ts @kodster28 @KianNH @joslyn-cf
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
1617
/src/content/workers-ai-models/ @craigsdennis @pedrosousa @cloudflare/pcx-technical-writing
17-
/public/_redirects @GregBrimble @KianNH @pedrosousa @WalshyDev @cloudflare/pcx-technical-writing
18+
/public/__redirects @GregBrimble @KianNH @pedrosousa @WalshyDev @cloudflare/pcx-technical-writing
19+
1820

1921
# AI
2022

21-
/src/content/docs/agents/ @irvinebroque @rita3ko @elithrar @thomasgauvin @threepointone @harshil1712 @megaconfidence @cloudflare/pcx-technical-writing
23+
/src/content/docs/agents/ @irvinebroque @rita3ko @elithrar @thomasgauvin @threepointone @cloudflare/pcx-technical-writing
2224
/src/content/docs/ai-gateway/ @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2325
/src/content/docs/workers-ai/ @rita3ko @craigsdennis @markdembo @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2426
/src/content/docs/vectorize/ @elithrar @vy-ton @sejoker @mchenco @cloudflare/pcx-technical-writing
@@ -42,7 +44,7 @@
4244

4345
# Browser Rendering API
4446

45-
/src/content/docs/browser-rendering/ @mchenco @cloudflare/pcx-technical-writing @celso @meddulla @danielgek
47+
/src/content/docs/browser-rendering/ @mchenco @cloudflare/pcx-technical-writing @celso @meddulla @danielgek @kathayl
4648

4749
# Changelogs
4850

@@ -93,10 +95,10 @@
9395
/src/content/docs/calls/ @cloudflare/pcx-technical-writing @cloudflare/calls
9496
/src/assets/images/calls/ @cloudflare/pcx-technical-writing @cloudflare/calls
9597
/public/calls/ @cloudflare/pcx-technical-writing @cloudflare/calls
96-
/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
9799
/src/content/release-notes/d1.yaml @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
98-
/src/content/partials/d1/ @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
99-
/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
100102
/src/content/release-notes/durable-objects.yaml @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
101103
/src/content/docs/email-routing/ @cloudflare/pcx-technical-writing
102104
/src/content/docs/hyperdrive/ @elithrar @thomasgauvin @sejoker @oxyjun @cloudflare/pcx-technical-writing
@@ -111,9 +113,9 @@
111113
/src/content/release-notes/kv.yaml @elithrar @thomasgauvin @rts-rob @oxyjun @cloudflare/pcx-technical-writing
112114
/src/content/partials/kv/ @elithrar @thomasgauvin @rts-rob @oxyjun @cloudflare/pcx-technical-writing
113115
/src/content/docs/pub-sub/ @elithrar @dcpena @cloudflare/pcx-technical-writing
114-
/src/content/docs/queues/ @elithrar @toddmantell @maheshwarip @cloudflare/pcx-technical-writing
116+
/src/content/docs/queues/ @elithrar @toddmantell @maheshwarip @harshil1712 @cloudflare/pcx-technical-writing
115117
/src/content/release-notes/queues.yaml @elithrar @toddmantell @maheshwarip @cloudflare/pcx-technical-writing
116-
/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
117119
/src/content/release-notes/r2.yaml @oxyjun @elithrar @cloudflare/workers-docs @cloudflare/pcx-technical-writing
118120
/src/content/docs/stream/ @tsmith512 @dcpena @cloudflare/pcx-technical-writing @renandincer @third774
119121
/src/content/release-notes/stream.yaml @tsmith512 @dcpena @cloudflare/pcx-technical-writing
@@ -134,8 +136,8 @@
134136
/src/content/docs/workers/reference/security-model.mdx @irvinebroque @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
135137
/src/content/compatibility-flags/ @irvinebroque @mikenomitch @GregBrimble @cloudflare/pcx-technical-writing
136138
/src/content/docs/workers/wrangler/ @cloudflare/wrangler @cloudflare/wrangler-friends @irvinebroque @ToriLindsay @cloudflare/pcx-technical-writing
137-
/src/content/docs/workers/frameworks/ @igorminar @dario-piotrowicz @jculvey @aninibread @GregBrimble @ToriLindsay @cloudflare/pcx-technical-writing
138-
/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
139141
/src/content/docs/analytics/analytics-engine/ @irvinebroque @elithrar @cloudflare/pcx-technical-writing
140142
/src/content/docs/cloudflare-for-platforms/workers-for-platforms/ @irvinebroque @angelampcosta @GregBrimble @cloudflare/deploy-config @cloudflare/pcx-technical-writing
141143
/src/content/docs/workers/observability/ @irvinebroque @mikenomitch @rohinlohe @ToriLindsay @cloudflare/pcx-technical-writing

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/cache/restore@v4
2525
with:
2626
path: |
27-
node_modules/.astro
27+
node_modules/.astro/assets
2828
key: static
2929

3030
- run: npm ci
@@ -49,7 +49,7 @@ jobs:
4949
- uses: actions/cache/save@v4
5050
with:
5151
path: |
52-
node_modules/.astro
52+
node_modules/.astro/assets
5353
key: static
5454

5555
- name: Check - Validate redirects (infinite loops, sources with fragment)

.github/workflows/image-audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
id: find-files
2222
run: |
2323
# Find all .png and .svg files, but only look in the ./src/assets/images directory
24-
FILES=$(find . -type f \( -name "*.png" -o -name "*.svg" \) -path "./src/assets/images/*" -not -path "./src/assets/images/workers-ai/*.svg" -not -path "./src/assets/images/workers/ai/*.png" -not -path "./src/assets/images/changelog-next/*")
24+
FILES=$(find . -type f \( -name "*.png" -o -name "*.svg" \) -path "./src/assets/images/*" -not -path "./src/assets/images/workers-ai/*.svg" -not -path "./src/assets/images/workers/ai/*.png" -not -path "./src/assets/images/changelog/*")
2525
2626
# Check if files are referenced in any markdown file
2727
UNUSED_FILES=""

.github/workflows/publish-preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/cache/restore@v4
2828
with:
2929
path: |
30-
node_modules/.astro
30+
node_modules/.astro/assets
3131
key: static
3232
- run: npm run build
3333
name: Build
@@ -51,5 +51,5 @@ jobs:
5151
if: always()
5252
with:
5353
path: |
54-
node_modules/.astro
54+
node_modules/.astro/assets
5555
key: static

.github/workflows/publish-production.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- uses: actions/cache/restore@v4
2323
with:
2424
path: |
25-
node_modules/.astro
25+
node_modules/.astro/assets
2626
key: static
2727
- run: npm run build
2828
name: Build
@@ -36,5 +36,5 @@ jobs:
3636
if: always()
3737
with:
3838
path: |
39-
node_modules/.astro
39+
node_modules/.astro/assets
4040
key: static
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Update api-schemas pinned commit
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
check-and-update:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
15+
steps:
16+
- name: Checkout docs repository
17+
uses: actions/checkout@v4
18+
19+
- name: Get latest api-schemas commit
20+
id: get-commit
21+
run: |
22+
LATEST_COMMIT=$(curl -s -H "Accept: application/vnd.github.v3+json" \
23+
https://api.github.com/repos/cloudflare/api-schemas/commits/main | \
24+
jq -r '.sha')
25+
echo "latest_commit=$LATEST_COMMIT" >> $GITHUB_OUTPUT
26+
27+
- name: Check current commit reference
28+
id: check-current
29+
run: |
30+
CURRENT_COMMIT=$(grep 'const COMMIT = ' src/util/api.ts | sed 's/.*"\(.*\)".*/\1/')
31+
echo "current_commit=$CURRENT_COMMIT" >> $GITHUB_OUTPUT
32+
33+
- name: Create PR if needed
34+
if: steps.get-commit.outputs.latest_commit != steps.check-current.outputs.current_commit
35+
run: |
36+
# Set up git config
37+
git config --global user.name 'github-actions[bot]'
38+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
39+
NEW_COMMIT="${{ steps.get-commit.outputs.latest_commit }}"
40+
BRANCH_NAME="update-api-schemas-$NEW_COMMIT"
41+
42+
# Check if PR already exists
43+
EXISTING_PR=$(gh pr list --head "$BRANCH_NAME" --json number --jq '.[0].number')
44+
if [ -n "$EXISTING_PR" ]; then
45+
echo "PR already exists for branch $BRANCH_NAME. Skipping PR creation."
46+
exit 0
47+
fi
48+
49+
# Create a new branch
50+
git checkout -b $BRANCH_NAME
51+
52+
# Update the commit reference
53+
sed -i "s/const COMMIT = \".*\"/const COMMIT = \"$NEW_COMMIT\"/" src/util/api.ts
54+
55+
# Commit and push changes
56+
git add src/util/api.ts
57+
git commit -m "[Docs Site] Update pinned api-schemas commit to $NEW_COMMIT"
58+
git push origin $BRANCH_NAME
59+
60+
# Create pull request
61+
gh pr create \
62+
--title "[Docs Site] Update pinned api-schemas commit" \
63+
--body "This PR updates the api-schemas commit reference to the latest version ($NEW_COMMIT)." \
64+
--base production \
65+
--head $BRANCH_NAME
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,6 @@ $ npm run dev
3333

3434
This spawns a server that will be accessible via `http://localhost:1111` in your browser. Additionally, any changes made within the project – including `content/**` changes – will automatically reload your browser tab(s), allowing you to instantly preview your changes.
3535

36-
### Recommendations
37-
38-
Part of our application accesses the GitHub API (to populate the [Wrangler changelog](https://developers.cloudflare.com/workers/platform/changelog/wrangler/)).
39-
40-
<!--
41-
Since GitHub gives a higher request limit to authenticated requests, you may want to add a [classic token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#personal-access-tokens-classic) with permissions for `repos:public_repo` to `/assets/secrets/github_token.txt`. The token value should be the only thing in your file.
42-
-->
43-
4436
## Deployment
4537

4638
Our docs are deployed using [Cloudflare Pages](https://pages.cloudflare.com). Every commit pushed to production will automatically deploy to [developers.cloudflare.com](https://developers.cloudflare.com), and any pull requests opened will have a corresponding staging URL available in the pull request comments.

0 commit comments

Comments
 (0)