Skip to content

Commit 86ddd1a

Browse files
Merge branch 'production'
2 parents 09985b5 + 4ab45e9 commit 86ddd1a

File tree

184 files changed

+6051
-1573
lines changed

Some content is hidden

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

184 files changed

+6051
-1573
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
/src/content/docs/ai-gateway/ @kathayl @G4brym @mchenco @pdwittig @daisyfaithauma @cloudflare/pcx-technical-writing
2222
/src/content/docs/workers-ai/ @rita3ko @pdwittig @craigsdennis @markdembo @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2323
/src/content/docs/workers-ai/static @mchenco @craigsdennis @cloudflare/pcx-technical-writing
24-
/src/content/docs/vectorize/ @elithrar @vy-ton @pdwittig @cloudflare/pcx-technical-writing
24+
/src/content/docs/vectorize/ @elithrar @vy-ton @pdwittig @sejoker @cloudflare/pcx-technical-writing
2525
/src/content/changelogs/workers-ai.yaml @kathayl @G4brym @mchenco @pdwittig @daisyfaithauma @cloudflare/pcx-technical-writing
2626
/src/content/changelogs/ai-gateway.yaml @kathayl @G4brym @mchenco @pdwittig @daisyfaithauma @cloudflare/pcx-technical-writing
27-
/src/content/changelogs/vectorize.yaml @elithrar @pdwittig @cloudflare/pcx-technical-writing
27+
/src/content/changelogs/vectorize.yaml @elithrar @pdwittig @sejoker @cloudflare/pcx-technical-writing
2828

2929
# Analytics & Logs
3030

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
versioning-strategy: "increase"
6+
commit-message:
7+
prefix: "[Docs Site] "
8+
schedule:
9+
interval: "daily"
10+
assignees:
11+
- "KianNH"
12+
reviewers:
13+
- "KianNH"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
3737
- run: npm ci
3838

39-
- run: npx astro build
39+
- run: npm run build
4040
env:
4141
NODE_OPTIONS: "--max-old-space-size=4192"
4242

.github/workflows/ci.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,12 @@ jobs:
2020
- uses: actions/setup-node@v4
2121
with:
2222
node-version: 22
23-
24-
- name: Get npm cache directory
25-
id: npm-cache-dir
26-
shell: bash
27-
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
28-
29-
- uses: actions/cache@v4
30-
id: npm-cache
23+
cache: "npm"
24+
- uses: actions/cache/restore@v4
3125
with:
32-
path: ${{ steps.npm-cache-dir.outputs.dir }}
33-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
34-
restore-keys: |
35-
${{ runner.os }}-node-
26+
path: |
27+
node_modules/.astro
28+
key: static
3629

3730
- run: npm ci
3831
- run: npm run check
@@ -44,5 +37,14 @@ jobs:
4437
NODE_OPTIONS: "--max-old-space-size=4192"
4538
RUN_LINK_CHECK: true
4639

40+
- uses: actions/cache/save@v4
41+
with:
42+
path: |
43+
node_modules/.astro
44+
key: static
45+
4746
- name: Check - Validate redirects (infinite loops, sources with fragment)
4847
run: npx tsm bin/validate-redirects.ts
48+
49+
- name: Tests
50+
run: npm run test

.github/workflows/publish-preview.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-22.04
1313
permissions:
1414
contents: read
15-
name: Publish to Cloudflare Pages (Preview)
15+
name: Publish Preview
1616
steps:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-node@v4
@@ -23,25 +23,24 @@ jobs:
2323
- uses: actions/cache/restore@v4
2424
with:
2525
path: |
26-
node_modules/.astro/_astro
27-
node_modules/.astro/assets
26+
node_modules/.astro
2827
key: static
29-
- run: npx astro build
28+
- run: npm run build
29+
name: Build
3030
env:
3131
NODE_OPTIONS: --max-old-space-size=4096
3232
- run: npx wrangler pages deploy --project-name cloudflare-docs dist
3333
name: Deploy to Cloudflare Pages
3434
env:
3535
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3636
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
37-
- run: npm run build:worker && npx wrangler versions upload -c ./wrangler-workers.toml
38-
name: Deploy to Cloudflare Workers [preview]
37+
- run: npx wrangler versions upload -c ./wrangler-workers.toml
38+
name: Deploy to Cloudflare Workers
3939
env:
4040
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4141
- uses: actions/cache/save@v4
4242
if: always()
4343
with:
4444
path: |
45-
node_modules/.astro/_astro
46-
node_modules/.astro/assets
45+
node_modules/.astro
4746
key: static

.github/workflows/publish-production.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-22.04
99
permissions:
1010
contents: read
11-
name: Publish to Cloudflare Pages (Production)
11+
name: Publish Production
1212
steps:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-node@v4
@@ -19,21 +19,24 @@ jobs:
1919
- uses: actions/cache/restore@v4
2020
with:
2121
path: |
22-
node_modules/.astro/_astro
23-
node_modules/.astro/assets
22+
node_modules/.astro
2423
key: static
25-
- run: npx astro build
24+
- run: npm run build
25+
name: Build
2626
env:
2727
NODE_OPTIONS: --max-old-space-size=4096
2828
- run: npx wrangler pages deploy --project-name cloudflare-docs dist
2929
name: Deploy to Cloudflare Pages
3030
env:
3131
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3232
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
33+
- run: npx wrangler deploy -c ./wrangler-workers.toml
34+
name: Deploy to Cloudflare Workers
35+
env:
36+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
3337
- uses: actions/cache/save@v4
3438
if: always()
3539
with:
3640
path: |
37-
node_modules/.astro/_astro
38-
node_modules/.astro/assets
41+
node_modules/.astro
3942
key: static

0 commit comments

Comments
 (0)