Skip to content

Commit 95c3bfa

Browse files
committed
Merge commit 'f202b11ff9e6cb29309ec9a2a5b1c5898775fb47' into jun/d1/rr-v2
2 parents 8960586 + f202b11 commit 95c3bfa

File tree

452 files changed

+52113
-3130
lines changed

Some content is hidden

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

452 files changed

+52113
-3130
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
*.js @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
1515
*.ts @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
1616
/src/content/workers-ai-models/ @craigsdennis @pedrosousa @cloudflare/pcx-technical-writing
17-
/public/_redirects @GregBrimble @KianNH @pedrosousa @WalshyDev @cloudflare/pcx-technical-writing
17+
/public/__redirects @GregBrimble @KianNH @pedrosousa @WalshyDev @cloudflare/pcx-technical-writing
1818

1919
# AI
2020

21-
/src/content/docs/agents/ @irvinebroque @rita3ko @elithrar @thomasgauvin @threepointone @harshil1712 @megaconfidence @cloudflare/pcx-technical-writing
21+
/src/content/docs/agents/ @irvinebroque @rita3ko @elithrar @thomasgauvin @threepointone @harshil1712 @cloudflare/pcx-technical-writing
2222
/src/content/docs/ai-gateway/ @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2323
/src/content/docs/workers-ai/ @rita3ko @craigsdennis @markdembo @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2424
/src/content/docs/vectorize/ @elithrar @vy-ton @sejoker @mchenco @cloudflare/pcx-technical-writing
@@ -140,7 +140,7 @@
140140
/src/content/docs/cloudflare-for-platforms/workers-for-platforms/ @irvinebroque @angelampcosta @GregBrimble @cloudflare/deploy-config @cloudflare/pcx-technical-writing
141141
/src/content/docs/workers/observability/ @irvinebroque @mikenomitch @rohinlohe @ToriLindsay @cloudflare/pcx-technical-writing
142142
/src/content/docs/workers/static-assets @irvinebroque @GregBrimble @WalshyDev @ToriLindsay @cloudflare/deploy-config @cloudflare/pcx-technical-writing
143-
/src/content/docs/workflows/ @ToriLindsay @elithrar @celso @sidharthachatterjee @cloudflare/pcx-technical-writing
143+
/src/content/docs/workflows/ @elithrar @celso @sidharthachatterjee @cloudflare/pcx-technical-writing
144144

145145
# DDoS Protection
146146

.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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default defineConfig({
122122
exclude: [
123123
"/api/",
124124
"/api/**",
125-
"/changelog/",
125+
"/changelog/**",
126126
"/http/resources/**",
127127
"{props.*}",
128128
"/",

bin/fetch-ai-models.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from "fs";
33
fetch("https://ai.cloudflare.com/api/models")
44
.then((res) => res.json())
55
.then((data) => {
6-
data.models.forEach((model) => {
6+
data.models.map((model) => {
77
const fileName = model.name.split("/")[2];
88
fs.writeFileSync(
99
`./src/content/workers-ai-models/${fileName}.json`,

bin/fetch-warp-releases.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ for (let track of tracks) {
3535
track = track.replace("noble-intel", "linux");
3636
}
3737

38-
const path = `./src/content/warp-releases/${track}/${item.version}.yaml`;
38+
const folder = `./src/content/warp-releases/${track}`;
39+
const path = `${folder}/${item.version}.yaml`;
40+
41+
if (!fs.existsSync(folder)) {
42+
fs.mkdirSync(folder, { recursive: true });
43+
}
3944

4045
if (fs.existsSync(path)) {
4146
console.log(`${track} ${item.version} already exists.`);
@@ -66,13 +71,16 @@ for (let track of tracks) {
6671
});
6772

6873
const releaseNotes = tokens.reduce((s, t) => s + t.raw, "");
74+
const platformName = data.platformName.startsWith("noble-")
75+
? "Linux"
76+
: data.platformName;
6977

7078
fs.writeFileSync(
7179
`./src/content/warp-releases/${track}/${item.version}.yaml`,
7280
YAML.stringify({
7381
...item,
7482
releaseNotes,
75-
platformName: data.platformName,
83+
platformName,
7684
}),
7785
"utf-8",
7886
);

bin/validate-redirects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { readFile } from "fs/promises";
22

33
async function main() {
4-
const redirects = await readFile("public/_redirects", { encoding: "utf-8" });
4+
const redirects = await readFile("public/__redirects", { encoding: "utf-8" });
55

66
let numInfiniteRedirects = 0;
77
let numUrlsWithFragment = 0;

0 commit comments

Comments
 (0)