Skip to content

Commit 529988f

Browse files
authored
Merge branch 'production' into ranbel/ssh-logpush
2 parents 297b66f + 152d8c3 commit 529988f

File tree

68 files changed

+1078
-454
lines changed

Some content is hidden

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

68 files changed

+1078
-454
lines changed

astro.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import react from "@astrojs/react";
1111
import { readdir } from "fs/promises";
1212
import { fileURLToPath } from "url";
1313

14+
import remarkValidateImages from "./src/plugins/remark/validate-images";
15+
1416
import rehypeTitleFigure from "rehype-title-figure";
1517
import rehypeMermaid from "./src/plugins/rehype/mermaid.ts";
1618
import rehypeAutolinkHeadings from "./src/plugins/rehype/autolink-headings.ts";
@@ -61,6 +63,7 @@ export default defineConfig({
6163
site: "https://developers.cloudflare.com",
6264
markdown: {
6365
smartypants: false,
66+
remarkPlugins: [remarkValidateImages],
6467
rehypePlugins: [
6568
rehypeMermaid,
6669
rehypeExternalLinks,

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@astrojs/starlight-docsearch": "0.6.0",
3737
"@astrojs/starlight-tailwind": "4.0.1",
3838
"@cloudflare/vitest-pool-workers": "0.8.32",
39-
"@cloudflare/workers-types": "4.20250522.0",
39+
"@cloudflare/workers-types": "4.20250529.0",
4040
"@codingheads/sticky-header": "1.0.2",
4141
"@expressive-code/plugin-collapsible-sections": "0.41.2",
4242
"@floating-ui/react": "0.27.8",
@@ -49,7 +49,7 @@
4949
"@tailwindcss/postcss": "4.1.4",
5050
"@types/hast": "3.0.4",
5151
"@types/he": "1.2.3",
52-
"@types/node": "22.15.19",
52+
"@types/node": "22.15.29",
5353
"@types/react": "19.0.7",
5454
"@types/react-dom": "19.0.4",
5555
"@typescript-eslint/parser": "8.32.1",
@@ -71,7 +71,7 @@
7171
"fast-glob": "3.3.3",
7272
"fast-xml-parser": "5.2.3",
7373
"github-slugger": "2.0.0",
74-
"globals": "16.1.0",
74+
"globals": "16.2.0",
7575
"hast-util-heading-rank": "3.0.0",
7676
"hast-util-select": "6.0.4",
7777
"hastscript": "9.0.1",

public/__redirects

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
/ssl/changelog/index.xml /changelog/rss/ssl.xml 301
3838

3939
## legacy
40-
/changelog/index.xml /release-notes/index.xml 301
40+
/release-notes/index.xml /changelog/rss/index.xml 301
4141
/release-notes/ /changelog/ 301
4242

4343
# 1dot1_redirect
@@ -711,6 +711,7 @@
711711
/fundamentals/setup/account/customize-account/appearance/ /fundamentals/account/customize-account/ 301
712712
/fundamentals/setup/account/customize-account/communication-preference/ /fundamentals/account/customize-account/ 301
713713
/fundamentals/setup/account/customize-account/language-preference/ /fundamentals/account/customize-account/ 301
714+
/fundamentals/setup/ /fundamentals/account/ 301
714715
/fundamentals/setup/account/* /fundamentals/account/:splat 301
715716
/fundamentals/setup/manage-domains/* /fundamentals//manage-domains/:splat 301
716717
/fundamentals/setup/manage-members/* /fundamentals/manage-members/:splat 301
@@ -1317,7 +1318,7 @@
13171318
/support/account-management-billing/cloudflare-billing-policy/ /billing/billing-policy/ 301
13181319
/support/account-management-billing/billing-add-on-service/ /billing/usage-based-billing/ 301
13191320
/support/account-management-billing/understanding-cloudflare-sales-tax/ /billing/sales-tax/ 301
1320-
/support/account-management-billing/ /support/troubleshooting/general-troubleshooting/cannot-locate-dashboard-account/ 301
1321+
/support/account-management-billing/ /support/troubleshooting/general-troubleshooting/cannot-locate-dashboard-account/ 301
13211322
/support/account-management-billing/cannot-locate-dashboard-account/ /support/troubleshooting/general-troubleshooting/cannot-locate-dashboard-account/ 301
13221323

13231324
# r2
202 KB
Loading
444 KB
Loading

src/assets/privacyoptions.svg

Lines changed: 33 additions & 0 deletions
Loading

src/components/OneTrust.astro

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2+
import { Image } from "astro:assets";
3+
import PrivacyChoicesImage from "~/assets/privacyoptions.svg";
4+
25
const isProduction = import.meta.env.PROD;
36
47
const uuid = isProduction
@@ -17,7 +20,10 @@ const uuid = isProduction
1720
function OptanonWrapper() {}
1821
</script>
1922
<!-- OneTrust Cookies Settings button start -->
20-
<button id="ot-sdk-btn" class="ot-sdk-show-settings">Cookie Settings</button>
23+
<div class="inline-flex items-center gap-2">
24+
<Image src={PrivacyChoicesImage} alt="privacy options" height="12" />
25+
<button id="ot-sdk-btn" class="ot-sdk-show-settings">Cookie Settings</button>
26+
</div>
2127
<!-- OneTrust Cookies Settings button end -->
2228

2329
<style>

src/components/overrides/Footer.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ if (
9090
}
9191
{!splash && <Default />}
9292
<div class="w-full">
93-
<div class="grid grid-cols-2 gap-8 pb-10 pt-6 lg:grid-cols-5">
93+
<div class="grid grid-cols-2 gap-8 pt-6 pb-10 lg:grid-cols-5">
9494
{
9595
groups.map(([title, items]) => (
9696
<ul class="flex w-full list-none flex-col gap-3 pl-0">
@@ -114,15 +114,15 @@ if (
114114
</div>
115115
<div>
116116
<ul
117-
class="flex list-inside flex-wrap items-center justify-center gap-3 gap-y-4 pl-0 text-xs text-cl1-gray-4! dark:text-cl1-gray-7!"
117+
class="text-cl1-gray-4! dark:text-cl1-gray-7! flex list-inside flex-wrap items-center justify-center gap-3 gap-y-4 pl-0 text-xs"
118118
>
119119
<li class="list-none">2025 Cloudflare, Inc.</li>
120120
{
121121
links.map(([text, href]) => (
122122
<li>
123123
<a
124124
href={href}
125-
class="text-cl1-gray-4! no-underline dark:text-cl1-gray-7!"
125+
class="text-cl1-gray-4! dark:text-cl1-gray-7! no-underline"
126126
>
127127
{text}
128128
</a>

src/components/overrides/Head.astro

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type { CollectionEntry } from "astro:content";
99
1010
const DEFAULT_TITLE_DELIMITER = "|";
1111
const NOINDEX_PRODUCTS = ["email-security", "style-guide", "security"];
12+
const CHATBOT_DEPRIORITIZE_PRODUCTS = ["firewall"];
1213
1314
const currentSection = Astro.url.pathname.split("/")[1].replaceAll(".", "");
1415
@@ -22,6 +23,10 @@ const shouldNoIndex =
2223
frontmatter.noindex ||
2324
frontmatter.external_link;
2425
26+
const shouldChatbotDeprioritize =
27+
CHATBOT_DEPRIORITIZE_PRODUCTS.includes(currentSection) ||
28+
frontmatter.chatbot_deprioritize;
29+
2530
if (currentSection) {
2631
const product = await getEntry("products", currentSection);
2732
@@ -83,6 +88,16 @@ if (shouldNoIndex) {
8388
});
8489
}
8590
91+
if (shouldChatbotDeprioritize) {
92+
head.push({
93+
tag: "meta",
94+
attrs: {
95+
name: "pcx_chatbot_deprioritize",
96+
content: true,
97+
},
98+
});
99+
}
100+
86101
if (
87102
frontmatter.description &&
88103
head.findIndex(

0 commit comments

Comments
 (0)