Skip to content

Commit fddc1a7

Browse files
Merge branch 'production' into rebecca/internal-dns-initial-docs
2 parents 9f839a9 + ae65018 commit fddc1a7

File tree

256 files changed

+8727
-6550
lines changed

Some content is hidden

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

256 files changed

+8727
-6550
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/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 with **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 }}

.github/workflows/publish-preview.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
env:
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4747
run: npx tsx bin/post-preview-url-comment/index.ts
48+
continue-on-error: true
4849
- uses: actions/cache/save@v4
4950
if: always()
5051
with:

bin/post-preview-url-comment/index.node.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ describe("filenameToPath", () => {
6363

6464
test("changelog", () => {
6565
expect(
66-
filenameToPath("src/content/changelogs-next/2025-02-05-title.mdx"),
66+
filenameToPath("src/content/changelog/workers/2025-02-05-title.mdx"),
6767
).toEqual("changelog/2025-02-05-title/");
6868
});
6969

7070
test("changelog base", () => {
7171
expect(
72-
`${DOCS_BASE_URL}/${filenameToPath("src/content/changelogs-next/2025-02-05-title.mdx")}`,
72+
`${DOCS_BASE_URL}/${filenameToPath("src/content/changelog/workers/2025-02-05-title.mdx")}`,
7373
).toEqual("https://developers.cloudflare.com/changelog/2025-02-05-title/");
7474
});
7575
});

bin/post-preview-url-comment/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async function run(): Promise<void> {
7777
(file) =>
7878
file.filename.endsWith(".mdx") &&
7979
(file.filename.startsWith(`${CONTENT_BASE_PATH}/docs/`) ||
80-
file.filename.startsWith(`${CONTENT_BASE_PATH}/changelogs-next/`)),
80+
file.filename.startsWith(`${CONTENT_BASE_PATH}/changelog/`)),
8181
)
8282
.sort((a, b) => b.changes - a.changes)
8383
.slice(0, 15) // Limit to 15 entries

bin/post-preview-url-comment/util.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,24 @@ import { execSync } from "node:child_process";
33
import { CONTENT_BASE_PATH } from "./constants";
44

55
export const filenameToPath = (filename: string) => {
6-
return filename
6+
const segments = filename
77
.replace(CONTENT_BASE_PATH, "")
88
.replace(".mdx", "")
99
.split("/")
10-
.filter(Boolean)
10+
.filter(Boolean);
11+
12+
const changelogIdx = segments.findIndex((s) => s === "changelog");
13+
14+
if (changelogIdx !== -1) {
15+
segments.splice(changelogIdx + 1, 1);
16+
}
17+
18+
return segments
1119
.flatMap((segment) => {
1220
if (segment === "docs") {
1321
return [];
1422
}
1523

16-
if (segment === "changelogs-next") {
17-
segment = "changelog";
18-
}
19-
2024
const slugified = slug(segment);
2125

2226
if (slugified === "1111") {

package-lock.json

Lines changed: 118 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
"check:astro": "npx astro check",
1111
"check:worker": "npx tsc --noEmit -p ./worker/tsconfig.json",
1212
"dev": "npx astro dev",
13-
"format": "npm run format:core && npm run format:data",
14-
"format:core": "npx prettier --write \"**/*.{js,jsx,ts,tsx,mjs,css}\"",
13+
"format": "npm run format:core:fix && npm run format:data",
14+
"format:core": "npx prettier \"**/*.{js,jsx,ts,tsx,mjs,css}\"",
1515
"format:core:check": "npm run format:core -- --check",
16+
"format:core:fix": "npm run format:core -- --write",
1617
"format:content": "npx prettier --write \"**/*.{md,mdx,astro}\"",
1718
"format:data": "npx prettier --write \"**/*.{json,yaml,yml}\"",
1819
"postinstall": "npm run sync",
@@ -46,7 +47,7 @@
4647
"@types/node": "22.13.2",
4748
"@types/react": "19.0.7",
4849
"@types/react-dom": "19.0.3",
49-
"@typescript-eslint/parser": "8.24.0",
50+
"@typescript-eslint/parser": "8.24.1",
5051
"algoliasearch": "5.20.2",
5152
"astro": "5.2.1",
5253
"astro-breadcrumbs": "3.3.1",
@@ -74,7 +75,7 @@
7475
"mdast-util-mdx-expression": "2.0.1",
7576
"mermaid": "11.4.1",
7677
"node-html-parser": "7.0.1",
77-
"prettier": "3.5.0",
78+
"prettier": "3.5.1",
7879
"prettier-plugin-astro": "0.14.1",
7980
"prettier-plugin-tailwindcss": "0.6.9",
8081
"pretty-bytes": "6.1.1",
@@ -91,7 +92,7 @@
9192
"rehype-title-figure": "0.1.2",
9293
"remark": "15.0.1",
9394
"sharp": "0.33.5",
94-
"solarflare-theme": "0.0.2",
95+
"solarflare-theme": "0.0.4",
9596
"starlight-image-zoom": "0.10.1",
9697
"starlight-links-validator": "0.14.2",
9798
"starlight-package-managers": "0.10.0",

public/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,6 +1761,7 @@
17611761
/cloudflare-one/identity/devices/require-warp/ /cloudflare-one/identity/devices/warp-client-checks/require-warp/ 301
17621762
/cloudflare-one/identity/devices/sentinel-one/ /cloudflare-one/identity/devices/warp-client-checks/sentinel-one/ 301
17631763
/cloudflare-one/identity/idp-integration/azuread/ /cloudflare-one/identity/entra-id/ 301
1764+
/cloudflare-one/identity/entra-id/ /cloudflare-one/identity/idp-integration/entra-id/ 301
17641765
/cloudflare-one/identity/idp-integration/one-time-pin/ /cloudflare-one/identity/one-time-pin/ 301
17651766
/cloudflare-one/identity/idp-integration/saml-centrify/ /cloudflare-one/identity/idp-integration/centrify-saml/ 301
17661767
/cloudflare-one/identity/idp-integration/ping-saml/ /cloudflare-one/identity/idp-integration/pingfederate-saml/ 301

0 commit comments

Comments
 (0)