Skip to content

Commit 54e1de8

Browse files
committed
Merge branch 'production' into generate-description-util
2 parents 406f2ed + c6639da commit 54e1de8

File tree

188 files changed

+16739
-706
lines changed

Some content is hidden

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

188 files changed

+16739
-706
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
# Developer Platform
9393

9494
/src/content/docs/containers/ @mikenomitch @th0m @cloudflare/pcx-technical-writing @cloudflare/cloudchamber
95+
/src/content/partials/containers/ @mikenomitch @th0m @cloudflare/pcx-technical-writing @cloudflare/cloudchamber
9596
/src/content/docs/d1/ @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @harshil1712 @cloudflare/pcx-technical-writing
9697
/src/content/release-notes/d1.yaml @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
9798
/src/content/partials/d1/ @elithrar @rozenmd @vy-ton @joshthoward @oxyjun @harshil1712 @cloudflare/pcx-technical-writing
@@ -103,7 +104,7 @@
103104
/src/content/release-notes/hyperdrive.yaml @elithrar @thomasgauvin @sejoker @oxyjun @cloudflare/pcx-technical-writing
104105
/src/content/partials/hyperdrive/ @elithrar @thomasgauvin @sejoker @oxyjun @cloudflare/pcx-technical-writing
105106
/src/content/release-notes/durable-objects.yaml @elithrar @vy-ton @joshthoward @oxyjun @cloudflare/pcx-technical-writing
106-
/src/content/docs/images/ @ToriLindsay @cloudflare/pcx-technical-writing @renandincer @third774
107+
/src/content/docs/images/ @ToriLindsay @cloudflare/pcx-technical-writing @renandincer @third774 @deanna-cf
107108
/src/content/docs/pages/ @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @irvinebroque @cloudflare/pcx-technical-writing @kodster28
108109
/src/assets/images/pages/ @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/pcx-technical-writing @kodster28
109110
/src/content/release-notes/pages.yaml @cloudflare/workers-docs @GregBrimble @WalshyDev @aninibread @cloudflare/pcx-technical-writing

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
<!-- Remove items that do not apply -->
1212

1313
- [ ] Is there a [changelog](https://developers.cloudflare.com/changelog/) entry ([guidelines](https://developers.cloudflare.com/style-guide/documentation-content-strategy/content-types/changelog/))? If you don't add one for something awesome and new (however small) — how will our customers find out? Changelogs are automatically posted to [RSS feeds](https://developers.cloudflare.com/fundamentals/new-features/available-rss-feeds/), the [Discord](https://discord.com/channels/595317990191398933/1040420029080018945), and [X](https://x.com/CFchangelog).
14-
- [ ] The [documentation style guide](https://developers.cloudflare.com/style-guide/) has been adhered to.
14+
- [ ] The change adheres to the [documentation style guide](https://developers.cloudflare.com/style-guide/).
1515
- [ ] If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
1616
- [ ] Files which have changed name or location have been allocated [redirects](https://developers.cloudflare.com/pages/configuration/redirects/#per-file).

bin/validate-redirects.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ async function main() {
66
let numInfiniteRedirects = 0;
77
let numUrlsWithFragment = 0;
88
let numDuplicateRedirects = 0;
9+
let numNonSlashedRedirects = 0;
10+
11+
const validEndings = ["/", "*", ".xml", ".md", ".json", ".html"];
912

1013
const redirectSourceUrls: string[] = [];
1114

@@ -24,6 +27,11 @@ async function main() {
2427
numUrlsWithFragment++;
2528
}
2629

30+
if (!validEndings.some((ending) => from.endsWith(ending))) {
31+
console.log(`✘ Found unslashed source URLs:\n ${from}`);
32+
numNonSlashedRedirects++;
33+
}
34+
2735
if (redirectSourceUrls.includes(from)) {
2836
console.log(`✘ Found repeated source URL:\n ${from}`);
2937
numDuplicateRedirects++;
@@ -32,7 +40,12 @@ async function main() {
3240
}
3341
}
3442

35-
if (numInfiniteRedirects || numUrlsWithFragment || numDuplicateRedirects) {
43+
if (
44+
numInfiniteRedirects ||
45+
numUrlsWithFragment ||
46+
numDuplicateRedirects ||
47+
numNonSlashedRedirects
48+
) {
3649
console.log("\nDetected errors:");
3750

3851
if (numInfiniteRedirects > 0) {
@@ -47,6 +60,12 @@ async function main() {
4760
console.log(`- ${numDuplicateRedirects} repeated source URL(s)`);
4861
}
4962

63+
if (numNonSlashedRedirects > 0) {
64+
console.log(
65+
`- ${numNonSlashedRedirects} need slashes at the end of the source URL`,
66+
);
67+
}
68+
5069
console.log("\nPlease fix the errors above before merging :)");
5170
process.exit(1);
5271
} else {

0 commit comments

Comments
 (0)