Skip to content

Commit 6996487

Browse files
committed
Merge branch 'production' into ranbel/warp-dns-registration
merge in changelog updates
2 parents b4f03d6 + 1934d74 commit 6996487

File tree

1,669 files changed

+31727
-18160
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,669 files changed

+31727
-18160
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
*.html text eol=lf
55
*.ini text eol=lf
66
*.js text eol=lf
7+
*.jsx text eol=lf
78
*.json text eol=lf
89
*.md text eol=lf
910
*.mdx text eol=lf
1011
*.mjs text eol=lf
1112
*.svg text eol=lf
1213
*.toml text eol=lf
1314
*.ts text eol=lf
15+
*.tsx text eol=lf
1416
*.txt text eol=lf
1517
*.vue text eol=lf
1618
*.xml text eol=lf

.github/CODEOWNERS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@
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+
/src/schemas/tags.ts @kodster28 @KianNH @joslyn-cf
1314
*.js @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
1415
*.ts @cloudflare/developer-advocacy @kristianfreeman @kodster28 @pedrosousa @haleycode @maxvp @marciocloudflare @GregBrimble @KianNH @WalshyDev
1516
/src/content/workers-ai-models/ @craigsdennis @pedrosousa @cloudflare/pcx-technical-writing
1617
/public/_redirects @GregBrimble @KianNH @pedrosousa @WalshyDev @cloudflare/pcx-technical-writing
1718

1819
# AI
1920

20-
/src/content/docs/agents/ @irvinebroque @rita3ko @elithrar @thomasgauvin @threepointone @kodster28 @KianNH
21+
/src/content/docs/agents/ @irvinebroque @rita3ko @elithrar @thomasgauvin @threepointone @harshil1712 @megaconfidence @cloudflare/pcx-technical-writing
2122
/src/content/docs/ai-gateway/ @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2223
/src/content/docs/workers-ai/ @rita3ko @craigsdennis @markdembo @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2324
/src/content/docs/vectorize/ @elithrar @vy-ton @sejoker @mchenco @cloudflare/pcx-technical-writing
@@ -47,6 +48,7 @@
4748

4849
/src/content/changelog/ @cloudflare/pm-changelogs
4950
/src/assets/images/changelog/ @cloudflare/pm-changelogs
51+
/src/assets/images/ @cloudflare/pm-changelogs @cloudflare/pcx-technical-writing
5052

5153
# Cloudflare One
5254

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ name: Anchor link audit
55
# **Who does it impact**: PCX team
66

77
on:
8-
schedule:
9-
- cron: "0 0 * * 0" # Run at 00:00 UTC every Sunday
108
workflow_dispatch:
119

1210
jobs:

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,10 @@ jobs:
5757

5858
- name: Tests
5959
run: npm run test
60+
61+
- name: Post PR CI failure comment
62+
if: always()
63+
continue-on-error: true
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
run: npx tsx bin/post-pr-ci-failure-comment/index.ts

.github/workflows/publish-preview.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ concurrency:
99

1010
jobs:
1111
publish:
12+
if: github.repository == 'cloudflare/cloudflare-docs'
1213
runs-on: ubuntu-22.04
1314
permissions:
1415
contents: read

.hyperlint/config.yaml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
content_dir: /src/content
2-
authorized_users:
3-
- dcpena
4-
- kodster28
5-
- KianNH
6-
- marciocloudflare
7-
- pedrosousa
8-
- ranbel
9-
- RebeccaTamachiro
10-
style_guide:
2+
reviewer:
3+
custom_comment: |-
4+
Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within **two (2) weeks**. If it's been two weeks or longer without any movement, please tag the PR **Assignees** in a comment.
5+
6+
We review internal PRs within **1 week**. If it's something urgent or has been sitting without a comment, start a thread in the *Developer Docs* space internally.
117
enabled: true
12-
openapi:
13-
enabled: true
14-
urls:
15-
- https://raw.githubusercontent.com/cloudflare/api-schemas/main/openapi.json
8+
external_link_validation:
9+
check_status_upon_review_failure: neutral
10+
summarize_pull_request:
11+
enabled: true
12+
vale_style_guide:
13+
check_status_upon_review_failure: neutral
14+
enabled: true
15+
limit_num_reviews: 2
16+
limit_num_comments: 7

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.9.0

astro.config.ts

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ import starlightLinksValidator from "starlight-links-validator";
88
import icon from "astro-icon";
99
import sitemap from "@astrojs/sitemap";
1010
import react from "@astrojs/react";
11+
1112
import { readdir } from "fs/promises";
13+
import { fileURLToPath } from "url";
1214

1315
import rehypeTitleFigure from "rehype-title-figure";
1416
import rehypeMermaid from "./src/plugins/rehype/mermaid.ts";
1517
import rehypeAutolinkHeadings from "./src/plugins/rehype/autolink-headings.ts";
1618
import rehypeExternalLinks from "./src/plugins/rehype/external-links.ts";
1719
import rehypeHeadingSlugs from "./src/plugins/rehype/heading-slugs.ts";
18-
import { fileURLToPath } from "url";
1920

2021
async function autogenSections() {
2122
const sections = (
@@ -36,7 +37,21 @@ async function autogenSections() {
3637
});
3738
}
3839

40+
async function autogenStyles() {
41+
const styles = (
42+
await readdir("./src/styles/", {
43+
withFileTypes: true,
44+
recursive: true,
45+
})
46+
)
47+
.filter((x) => x.isFile())
48+
.map((x) => x.parentPath + x.name);
49+
50+
return styles;
51+
}
52+
3953
const sidebar = await autogenSections();
54+
const customCss = await autogenStyles();
4055

4156
const runLinkCheck = process.env.RUN_LINK_CHECK || false;
4257

@@ -88,26 +103,15 @@ export default defineConfig({
88103
components: {
89104
Footer: "./src/components/overrides/Footer.astro",
90105
Head: "./src/components/overrides/Head.astro",
106+
Header: "./src/components/overrides/Header.astro",
91107
Hero: "./src/components/overrides/Hero.astro",
92108
MarkdownContent: "./src/components/overrides/MarkdownContent.astro",
93109
Sidebar: "./src/components/overrides/Sidebar.astro",
94110
PageTitle: "./src/components/overrides/PageTitle.astro",
95-
SocialIcons: "./src/components/overrides/SocialIcons.astro",
96111
TableOfContents: "./src/components/overrides/TableOfContents.astro",
97112
},
98113
sidebar,
99-
customCss: [
100-
"./src/asides.css",
101-
"./src/badges.css",
102-
"./src/code.css",
103-
"./src/footnotes.css",
104-
"./src/headings.css",
105-
"./src/input.css",
106-
"./src/mermaid.css",
107-
"./src/table.css",
108-
"./src/tailwind.css",
109-
"./src/title.css",
110-
],
114+
customCss,
111115
pagination: false,
112116
plugins: [
113117
...(runLinkCheck
@@ -145,9 +149,7 @@ export default defineConfig({
145149
tailwind({
146150
applyBaseStyles: false,
147151
}),
148-
liveCode({
149-
layout: "~/components/live-code/Layout.astro",
150-
}),
152+
liveCode({}),
151153
icon(),
152154
sitemap({
153155
filter(page) {

bin/fetch-warp-releases.js

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ import fs from "fs";
22
import YAML from "yaml";
33
import { marked } from "marked";
44

5-
const tracks = ["windows/ga", "windows/beta", "macos/ga", "macos/beta"];
5+
const tracks = [
6+
"windows/ga",
7+
"windows/beta",
8+
"macos/ga",
9+
"macos/beta",
10+
"noble-intel/ga",
11+
"noble-intel/beta",
12+
];
613

714
const linesToRemove = [
815
"For related Cloudflare for Teams documentation please see: https://developers.cloudflare.com/cloudflare-one/connections/connect-devices/warp",
@@ -11,12 +18,29 @@ const linesToRemove = [
1118
"For Consumer documentation please see: https://developers.cloudflare.com/warp-client/",
1219
];
1320

14-
for (const track of tracks) {
21+
for (let track of tracks) {
1522
fetch(`https://downloads.cloudflareclient.com/v1/update/json/${track}`)
1623
.then((res) => res.json())
1724
.then((data) => {
25+
if (!data.items) {
26+
console.warn(
27+
`${track} has no releases: ${JSON.stringify(data, null, 2)}`,
28+
);
29+
30+
return;
31+
}
32+
1833
data.items.forEach((item) => {
19-
const path = `./src/content/warp-releases/${track}/${item.version}.yaml`;
34+
if (track.startsWith("noble-intel")) {
35+
track = track.replace("noble-intel", "linux");
36+
}
37+
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+
}
2044

2145
if (fs.existsSync(path)) {
2246
console.log(`${track} ${item.version} already exists.`);
@@ -47,13 +71,16 @@ for (const track of tracks) {
4771
});
4872

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

5178
fs.writeFileSync(
5279
`./src/content/warp-releases/${track}/${item.version}.yaml`,
5380
YAML.stringify({
5481
...item,
5582
releaseNotes,
56-
platformName: data.platformName,
83+
platformName,
5784
}),
5885
"utf-8",
5986
);
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export const GITHUB_ACTIONS_BOT_ID = 41898282;
2+
export const DOCS_BASE_URL = "https://developers.cloudflare.com";
3+
export const CONTENT_BASE_PATH = "src/content";
4+
export const PREVIEW_URL_REGEX = /^\*\*Preview URL:\*\* (.*)$/m;

0 commit comments

Comments
 (0)