Skip to content

Commit bffff5f

Browse files
committed
Merge branch 'production' into asamborski_more_ssh_enhancements
2 parents 6bec92a + de8de8e commit bffff5f

File tree

457 files changed

+15139
-7855
lines changed

Some content is hidden

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

457 files changed

+15139
-7855
lines changed

.github/CODEOWNERS

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818

1919
# AI
2020

21-
/src/content/docs/ai-gateway/ @kathayl @G4brym @mchenco @pdwittig @daisyfaithauma @cloudflare/pcx-technical-writing
22-
/src/content/docs/workers-ai/ @rita3ko @pdwittig @craigsdennis @markdembo @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
21+
/src/content/docs/ai-gateway/ @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
22+
/src/content/docs/workers-ai/ @rita3ko @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
25-
/src/content/changelogs/workers-ai.yaml @kathayl @G4brym @mchenco @pdwittig @daisyfaithauma @cloudflare/pcx-technical-writing
26-
/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
24+
/src/content/docs/vectorize/ @elithrar @vy-ton @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 @sejoker @cloudflare/pcx-technical-writing
2828

2929
# Analytics & Logs
3030

@@ -97,8 +97,8 @@
9797
/src/content/partials/hyperdrive/ @elithrar @thomasgauvin @sejoker @oxyjun @cloudflare/pcx-technical-writing
9898
/src/content/changelogs/durable-objects.yaml @elithrar @vy-ton @joshthoward @cloudflare/pcx-technical-writing
9999
/src/content/docs/images/ @dcpena @cloudflare/pcx-technical-writing @renandincer @third774
100-
/src/content/docs/pages/ @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @irvinebroque @cloudflare/pcx-technical-writing
101-
/src/assets/images/pages/ @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/pcx-technical-writing
100+
/src/content/docs/pages/ @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @irvinebroque @cloudflare/pcx-technical-writing @ToriLindsay
101+
/src/assets/images/pages/ @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/pcx-technical-writing @ToriLindsay
102102
/src/content/changelogs/pages.yaml @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/pcx-technical-writing
103103
/src/content/docs/kv/ @elithrar @thomasgauvin @rts-rob @oxyjun @cloudflare/pcx-technical-writing
104104
/src/content/changelogs/kv.yaml @elithrar @thomasgauvin @rts-rob @oxyjun @cloudflare/pcx-technical-writing
@@ -110,8 +110,8 @@
110110
/src/content/changelogs/r2.yaml @dcpena @elithrar @cloudflare/workers-docs @cloudflare/pcx-technical-writing
111111
/src/content/docs/stream/ @tsmith512 @dcpena @cloudflare/pcx-technical-writing @renandincer @third774
112112
/src/content/changelogs/stream.yaml @tsmith512 @dcpena @cloudflare/pcx-technical-writing
113-
/src/content/docs/workers/ @cloudflare/workers-docs @GregBrimble @irvinebroque @mikenomitch @WalshyDev @cloudflare/pcx-technical-writing
114-
/src/assets/images/workers/ @cloudflare/workers-docs @GregBrimble @irvinebroque @WalshyDev @cloudflare/pcx-technical-writing
113+
/src/content/docs/workers/ @cloudflare/workers-docs @GregBrimble @irvinebroque @mikenomitch @WalshyDev @cloudflare/pcx-technical-writing @ToriLindsay
114+
/src/assets/images/workers/ @cloudflare/workers-docs @GregBrimble @irvinebroque @WalshyDev @cloudflare/pcx-technical-writing @ToriLindsay
115115
/src/content/changelogs/workers.yaml @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/pcx-technical-writing @irvinebroque
116116
/src/content/docs/zaraz/ @bjesus @jonnyparris @simonabadoiu @cloudflare/pcx-technical-writing
117117
/src/content/changelogs/zaraz.yaml @bjesus @jonnyparris @simonabadoiu @cloudflare/pcx-technical-writing

.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

.github/workflows/semgrep.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@
22
on:
33
pull_request: {}
44
workflow_dispatch: {}
5-
push:
6-
branches:
7-
- main
8-
- master
95
schedule:
10-
- cron: '0 0 * * *'
6+
- cron: '0 4 * * *'
117
name: Semgrep config
128
jobs:
139
semgrep:

astro.config.ts

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import tailwind from "@astrojs/tailwind";
44
import starlightDocSearch from "@astrojs/starlight-docsearch";
55
import starlightImageZoom from "starlight-image-zoom";
66
import liveCode from "astro-live-code";
7-
import rehypeSlug from "rehype-slug";
87
import rehypeMermaid from "rehype-mermaid";
98
import rehypeAutolinkHeadings, {
109
type Options as rehypeAutolinkHeadingsOptions,
@@ -17,6 +16,7 @@ import icon from "astro-icon";
1716
import sitemap from "@astrojs/sitemap";
1817
import react from "@astrojs/react";
1918
import rehypeTitleFigure from "rehype-title-figure";
19+
import rehypeHeadingSlugs from "./plugins/rehype/heading-slugs";
2020

2121
const runLinkCheck = process.env.RUN_LINK_CHECK || false;
2222

@@ -95,7 +95,7 @@ export default defineConfig({
9595
rel: ["noopener"],
9696
},
9797
],
98-
rehypeSlug,
98+
rehypeHeadingSlugs,
9999
[rehypeAutolinkHeadings, autolinkConfig],
100100
// @ts-expect-error TODO: fix types
101101
rehypeTitleFigure,
@@ -104,6 +104,7 @@ export default defineConfig({
104104
experimental: {
105105
contentIntellisense: true,
106106
contentLayer: true,
107+
directRenderScript: true,
107108
},
108109
server: {
109110
port: 1111,
@@ -154,7 +155,6 @@ export default defineConfig({
154155
MarkdownContent: "./src/components/overrides/MarkdownContent.astro",
155156
Sidebar: "./src/components/overrides/Sidebar.astro",
156157
PageSidebar: "./src/components/overrides/PageSidebar.astro",
157-
SiteTitle: "./src/components/overrides/SiteTitle.astro",
158158
PageTitle: "./src/components/overrides/PageTitle.astro",
159159
SocialIcons: "./src/components/overrides/SocialIcons.astro",
160160
SkipLink: "./src/components/overrides/SkipLink.astro",
@@ -169,6 +169,8 @@ export default defineConfig({
169169
"./src/mermaid.css",
170170
"./src/table.css",
171171
"./src/tailwind.css",
172+
"./src/title.css",
173+
"./src/tooltips.css",
172174
],
173175
pagination: false,
174176
plugins: runLinkCheck
@@ -223,13 +225,4 @@ export default defineConfig({
223225
}),
224226
react(),
225227
],
226-
vite: {
227-
build: {
228-
rollupOptions: {
229-
output: {
230-
entryFileNames: "_astro/[name].js",
231-
},
232-
},
233-
},
234-
},
235228
});

0 commit comments

Comments
 (0)