Skip to content

Commit b3f2add

Browse files
committed
Merge branch 'production' into ranbel/remotely-managed-tunnel
merge in production
2 parents 6fe91c7 + 472f835 commit b3f2add

File tree

672 files changed

+43476
-9232
lines changed

Some content is hidden

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

672 files changed

+43476
-9232
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# AI
1919

20-
/src/content/docs/agents/ @irvinebroque @rita3ko @elithrar @thomasgauvin @threepointone @kodster28 @KianNH
20+
/src/content/docs/agents/ @irvinebroque @rita3ko @elithrar @thomasgauvin @threepointone @harshil1712 @megaconfidence @cloudflare/pcx-technical-writing
2121
/src/content/docs/ai-gateway/ @kathayl @G4brym @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2222
/src/content/docs/workers-ai/ @rita3ko @craigsdennis @markdembo @mchenco @daisyfaithauma @cloudflare/pcx-technical-writing
2323
/src/content/docs/vectorize/ @elithrar @vy-ton @sejoker @mchenco @cloudflare/pcx-technical-writing
@@ -47,6 +47,7 @@
4747

4848
/src/content/changelog/ @cloudflare/pm-changelogs
4949
/src/assets/images/changelog/ @cloudflare/pm-changelogs
50+
/src/assets/images/ @cloudflare/pm-changelogs @cloudflare/pcx-technical-writing
5051

5152
# Cloudflare One
5253

.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/pr.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,27 @@ jobs:
1818
- uses: ./.github/actions/assign-pr
1919
with:
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
22+
review_comment:
23+
name: Add review comment
24+
runs-on: ubuntu-latest
25+
steps:
26+
- id: check_if_contributor_is_external
27+
name: Check if contributor is external
28+
run: 'curl --write-out ''%{http_code}'' --silent --output /dev/null -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ env.GH_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/orgs/cloudflare/members/${{ github.event.pull_request.user.login }} | grep -q ''204'' && echo "is_external=false" >> $GITHUB_OUTPUT || echo "is_external=true" >> $GITHUB_OUTPUT'
29+
env:
30+
GH_TOKEN: ${{ secrets.HOLOPIN_LABELER }}
31+
- name: External comment
32+
run: gh pr comment "$NUMBER" --body "Howdy and thanks for contributing to our repo. We review new, external PRs within **2 weeks**. If it's been longer than then without any movement, tag the PR **Assignees** in a comment."
33+
if: steps.check_if_contributor_is_external.outputs.is_external == 'true'
34+
env:
35+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
GH_REPO: ${{ github.repository }}
37+
NUMBER: ${{ github.event.pull_request.number }}
38+
- name: Internal comment
39+
run: gh pr comment "$NUMBER" --body "Howdy and thanks for contributing to our repo. 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."
40+
if: steps.check_if_contributor_is_external.outputs.is_external == 'false'
41+
env:
42+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
GH_REPO: ${{ github.repository }}
44+
NUMBER: ${{ github.event.pull_request.number }}

.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: 2 additions & 1 deletion
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 = (

bin/fetch-warp-releases.js

Lines changed: 21 additions & 2 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,11 +18,23 @@ 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) => {
34+
if (track.startsWith("noble-intel")) {
35+
track = track.replace("noble-intel", "linux");
36+
}
37+
1938
const path = `./src/content/warp-releases/${track}/${item.version}.yaml`;
2039

2140
if (fs.existsSync(path)) {

0 commit comments

Comments
 (0)