Skip to content

Commit 7b31fed

Browse files
Merge branch 'cloudflare:production' into codespace-psychic-waddle-q7x9g5v49r9g2jw6
2 parents 66a4a4b + 00ea0a5 commit 7b31fed

File tree

1,584 files changed

+20542
-33235
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,584 files changed

+20542
-33235
lines changed

.github/CODEOWNERS

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,8 @@
9494

9595
# Developer Platform
9696

97-
/src/content/docs/realtime/ @cloudflare/pcx-technical-writing @cloudflare/calls
98-
/src/assets/images/realtime/ @cloudflare/pcx-technical-writing @cloudflare/calls
99-
/public/realtime/ @cloudflare/pcx-technical-writing @cloudflare/calls
97+
/src/content/containers/ @mikenomitch @th0m @cloudflare/pcx-technical-writing
98+
/src/content/release-notes/containers.yaml @mikenomitch @th0m @cloudflare/pcx-technical-writing
10099
/src/content/docs/d1/ @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @harshil1712 @cloudflare/pcx-technical-writing
101100
/src/content/release-notes/d1.yaml @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
102101
/src/content/partials/d1/ @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @harshil1712 @cloudflare/pcx-technical-writing
@@ -120,6 +119,9 @@
120119
/src/content/release-notes/queues.yaml @elithrar @maheshwarip @cloudflare/pcx-technical-writing
121120
/src/content/docs/r2/ @oxyjun @elithrar @jonesphillip @aninibread @harshil1712 @cloudflare/workers-docs @cloudflare/pcx-technical-writing
122121
/src/content/release-notes/r2.yaml @oxyjun @elithrar @aninibread @cloudflare/workers-docs @cloudflare/pcx-technical-writing
122+
/src/content/docs/realtime/ @cloudflare/pcx-technical-writing @cloudflare/calls
123+
/src/assets/images/realtime/ @cloudflare/pcx-technical-writing @cloudflare/calls
124+
/public/realtime/ @cloudflare/pcx-technical-writing @cloudflare/calls
123125
/src/content/docs/stream/ @tsmith512 @ToriLindsay @cloudflare/pcx-technical-writing @renandincer @third774
124126
/src/content/release-notes/stream.yaml @tsmith512 @ToriLindsay @cloudflare/pcx-technical-writing
125127
/src/content/docs/workers/ @cloudflare/workers-docs @GregBrimble @irvinebroque @mikenomitch @korinne @WalshyDev @cloudflare/deploy-config @cloudflare/pcx-technical-writing @kodster28 @cloudflare/wrangler @cloudflare/workers-runtime-1 @cloudflare/wrangler
@@ -148,7 +150,6 @@
148150

149151
# Docs team areas
150152

151-
/src/content/docs/docs-guide/ @dcpena @cloudflare/pcx-technical-writing
152153
/src/content/docs/style-guide/ @dcpena @cloudflare/pcx-technical-writing
153154

154155
# Google tag gateway

.github/workflows/comment-changed-filenames.yml renamed to .github/workflows/potential-redirects-or-partials.yml

Lines changed: 45 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Flag changed filenames
1+
name: Potential redirects or partials
22

33
# **What it does**: Adds or removes a comment if a PR renames or removes a file.
44
# **Why we have it**: Highlights when we need redirects covering certain file paths.
@@ -22,7 +22,7 @@ jobs:
2222
- name: Checkout Repository
2323
uses: actions/checkout@v4
2424

25-
- name: Get Renamed or Removed Files from Pull Request
25+
- name: Potential redirects
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828
run: |
@@ -37,17 +37,32 @@ jobs:
3737
echo "${files}" >> "$GITHUB_ENV"
3838
echo "${delimiter}" >> "$GITHUB_ENV"
3939
40+
- name: Updated partial files
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
run: |
44+
files=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
45+
-H "Accept: application/vnd.github.v3+json" \
46+
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files" | \
47+
jq -r '.[] | select(.status=="modified") | select (.filename | startswith("src/content/partials")) | select(.filename | endswith(".mdx")) | .filename' | \
48+
sed -e 's|^src/content/partials||' -e 's|\.mdx$|/|')
49+
# Use random delimiter for security reasons
50+
delimiter="$(openssl rand -hex 8)"
51+
echo "PARTIAL_FILES<<${delimiter}" >> "$GITHUB_ENV"
52+
echo "${files}" >> "$GITHUB_ENV"
53+
echo "${delimiter}" >> "$GITHUB_ENV"
54+
4055
- name: Comment or Update Comment on PR based on changed files
4156
env:
4257
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4358
run: |
4459
# If there are no changed files
45-
if [ -z "$CHANGED_FILES" ]; then
60+
if [ -z "$CHANGED_FILES" ] && [ -z "$PARTIAL_FILES" ]; then
4661
# Fetch the ID of the existing comment, if it exists
4762
existing_comment_id=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
4863
-H "Accept: application/vnd.github.v3+json" \
4964
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments" | \
50-
jq '.[] | select(.user.id == 41898282) | select(.body | contains("This PR changes current filenames or deletes current files")) | .id')
65+
jq '.[] | select(.user.id == 41898282) | select(.body | contains("This PR requires additional review attention because it affects the following areas")) | .id')
5166
5267
# If the comment exists, delete it
5368
if [ ! -z "$existing_comment_id" ]; then
@@ -58,18 +73,39 @@ jobs:
5873
fi
5974
else
6075
# Construct the comment body for changed files
61-
comment_body="This PR changes current filenames or deletes current files. Make sure you have [redirects](https://developers.cloudflare.com/pages/configuration/redirects/) set up to cover the following paths:"
62-
for path in $CHANGED_FILES; do
63-
clean_path=$(echo $path | sed 's/"//g') # Remove quotation marks
76+
comment_body="This PR requires additional review attention because it affects the following areas:"
77+
78+
# Add CHANGED_FILES logic
79+
if [ -n "$CHANGED_FILES" ]; then
6480
comment_body="$comment_body
81+
82+
### Redirects
83+
This PR changes current filenames or deletes current files. Make sure you have [redirects](https://developers.cloudflare.com/pages/configuration/redirects/) set up to cover the following paths:"
84+
for path in $CHANGED_FILES; do
85+
clean_path=$(echo "$path" | sed 's/"//g') # Remove quotation marks
86+
comment_body="$comment_body
6587
- [ ] \`$clean_path\`"
66-
done
88+
done
89+
fi
90+
91+
# Conditional bit for PARTIAL_FILES
92+
if [ -n "$PARTIAL_FILES" ]; then
93+
comment_body="$comment_body
94+
95+
### Partials
96+
This PR updates partial files, which are pieces of content used across multiple files in our [Render component](https://developers.cloudflare.com/style-guide/components/render/)."
97+
for path in $PARTIAL_FILES; do
98+
updated_path=$(echo "$path" | sed -e 's/"//g' -e 's/^\///' -e 's/\/$//')
99+
comment_body="$comment_body
100+
- [ ] \`$updated_path\` - [view affected files](https://developers.cloudflare.com/style-guide/components/render/?partial=$updated_path)"
101+
done
102+
fi
67103
68104
# Check if a comment already exists
69105
existing_comment_id=$(curl -s -H "Authorization: Bearer $GITHUB_TOKEN" \
70106
-H "Accept: application/vnd.github.v3+json" \
71107
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments" | \
72-
jq '.[] | select(.user.id == 41898282) | select(.body | contains("This PR changes current filenames or deletes current files")) | .id')
108+
jq '.[] | select(.user.id == 41898282) | select(.body | contains("This PR requires additional review attention because it affects the following areas")) | .id')
73109
74110
comment_payload=$(echo '{}' | jq --arg body "$comment_body" '.body = $body')
75111

.github/workflows/publish-production.yml

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,49 @@ jobs:
3333
name: Deploy to Cloudflare Workers
3434
env:
3535
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
36-
- name: Build vendored Markdown archive
36+
- name: Install rclone
37+
run: sudo -v ; curl https://rclone.org/install.sh | sudo bash
38+
- name: Build vendored Markdown
39+
run: npx tsx bin/generate-index-md.ts
40+
- name: Upload vendored Markdown archives to Vendored Markdown bucket
3741
env:
38-
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
42+
AWS_ACCESS_KEY_ID: ${{ secrets.VENDORED_DEVDOCS_ACCESS_KEY_ID }}
43+
AWS_SECRET_ACCESS_KEY: ${{ secrets.VENDORED_DEVDOCS_SECRET_ACCESS_KEY }}
3944
run: |
40-
npx tsx bin/generate-index-md.ts
4145
cd distmd && zip -r markdown.zip .
42-
npx wrangler r2 object put vendored-markdown/markdown.zip --file=markdown.zip --remote
46+
rclone copy \
47+
--config ../bin/rclone.conf \
48+
./markdown.zip \
49+
devdocs:vendored-markdown
50+
rm markdown.zip
51+
cd ..
52+
53+
cd distllms
54+
for file in $(find . -type f); do
55+
rclone copy \
56+
--config ../bin/rclone.conf \
57+
$file \
58+
devdocs:vendored-markdown
59+
done
60+
cd ..
61+
- name: Upload vendored Markdown files to ZT DevDocs bucket
62+
env:
63+
AWS_ACCESS_KEY_ID: ${{ secrets.ZT_DEVDOCS_ACCESS_KEY_ID }}
64+
AWS_SECRET_ACCESS_KEY: ${{ secrets.ZT_DEVDOCS_SECRET_ACCESS_KEY }}
65+
run: |
66+
rclone sync \
67+
--config bin/rclone.conf \
68+
distmd \
69+
zt:zt-dashboard-dev-docs
70+
- name: Upload vendored Markdown files to AutoRAG DevDocs bucket
71+
env:
72+
AWS_ACCESS_KEY_ID: ${{ secrets.AUTORAG_DEVDOCS_ACCESS_KEY_ID }}
73+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AUTORAG_DEVDOCS_SECRET_ACCESS_KEY }}
74+
run: |
75+
rclone sync \
76+
--config bin/rclone.conf \
77+
distmd \
78+
autorag:developer-docs-full
4379
- uses: actions/cache/save@v4
4480
if: always()
4581
with:

.github/workflows/update-api-schemas.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Update api-schemas pinned commit
22

33
on:
44
schedule:
5-
- cron: "0 0 * * *"
5+
- cron: "0 0 * * 0"
66
workflow_dispatch:
77

88
jobs:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# build output
22
dist/
33
distmd/
4+
distllms/
45
# generated types
56
.astro/
67

.hyperlint/automations/styles/cloudflare/Contractions.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.hyperlint/automations/styles/cloudflare/ExclamationMarks.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.hyperlint/automations/styles/cloudflare/HeadingPunctuation.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.hyperlint/automations/styles/cloudflare/Repetition.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.hyperlint/automations/styles/plain-text-style-checks/casing.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)