Skip to content

Commit 535efef

Browse files
committed
Merge branch 'production' into ranbel/tunnel-onoma
1 parent 4d7f7b4 commit 535efef

File tree

505 files changed

+7592
-2903
lines changed

Some content is hidden

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

505 files changed

+7592
-2903
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# AI
2222

2323
/src/content/docs/agents/ @irvinebroque @rita3ko @elithrar @thomasgauvin @threepointone @cloudflare/pcx-technical-writing
24-
/src/content/docs/ai-gateway/ @kathayl @mchenco @kodster28 @cloudflare/pcx-technical-writing
24+
/src/content/docs/ai-gateway/ @palashgo @thebongy @kathayl @mchenco @kodster28 @cloudflare/pcx-technical-writing
2525
/src/content/docs/workers-ai/ @rita3ko @craigsdennis @markdembo @mchenco @kodster28 @cloudflare/pcx-technical-writing
2626
/src/content/docs/vectorize/ @elithrar @vy-ton @sejoker @mchenco @cloudflare/pcx-technical-writing
2727
/src/content/partials/vectorize/ @elithrar @mchenco @sejoker @cloudflare/pcx-technical-writing

astro.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export default defineConfig({
142142
"{props.*}",
143143
"/",
144144
"/glossary/",
145-
"/products/",
145+
"/directory/",
146146
"/rules/snippets/examples/?operation=*",
147147
"/rules/transform/examples/?operation=*",
148148
"/ruleset-engine/rules-language/fields/reference/**",

public/__redirects

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# homepage
22
/api /api/ 301
3-
/docs/ /products/ 301
3+
/docs/ /directory/ 301
4+
/products/ /directory/ 301
45
/zero-trust/ /products/?product-group=Cloudflare+One 301
56
/dashboard-landing/ / 301
67
/tutorials/ /search/?content_type%5B0%5D=Tutorial 301
@@ -2356,4 +2357,8 @@
23562357
/realtime/demos /realtime/sfu/demos/ 302
23572358
/realtime/example-architecture /realtime/sfu/example-architecture/ 302
23582359
/realtime/pricing /realtime/sfu/pricing/ 302
2359-
/realtime/changelog /realtime/sfu/changelog/ 302
2360+
/realtime/changelog /realtime/sfu/changelog/ 302
2361+
2362+
/realtime/realtimekit/get-started /realtime/realtimekit/getting-started/ 302
2363+
/realtime/introduction /realtime/realtimekit/introduction 302
2364+
/realtime/concepts /realtime/realtimekit/concepts 302

public/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ Disallow: /constellation
66
Disallow: /cdn-cgi/
77
Disallow: /email-security/
88

9+
Content-Usage: tdm=y
10+
911
Sitemap: https://developers.cloudflare.com/sitemap-index.xml
237 KB
Loading

src/components/Checkbox.astro

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
import { z } from "astro:schema";
3+
4+
const props = z.object({
5+
label: z.string(),
6+
});
7+
8+
const { label } = props.parse(Astro.props);
9+
---
10+
11+
<check-box>
12+
<label class="block">
13+
<input type="checkbox" />
14+
{label}
15+
</label>
16+
</check-box>
17+
18+
<script>
19+
function getStorage() {
20+
const raw = localStorage.getItem("checkboxes");
21+
22+
if (!raw) return [];
23+
24+
let json;
25+
try {
26+
json = JSON.parse(raw);
27+
} catch {
28+
localStorage.removeItem("checkboxes");
29+
return [];
30+
}
31+
32+
return json;
33+
}
34+
35+
function updateStorage(label: string, checked: boolean) {
36+
const key = `${window.location.pathname}${label}`;
37+
const storage = getStorage();
38+
39+
if (checked) {
40+
storage.push(key);
41+
} else {
42+
storage.splice(storage.indexOf(key), 1);
43+
}
44+
45+
localStorage.setItem("checkboxes", JSON.stringify(storage));
46+
}
47+
48+
class Checkbox extends HTMLElement {
49+
connectedCallback() {
50+
const input = this.querySelector("input") as HTMLInputElement;
51+
const label = (
52+
this.querySelector("label") as HTMLLabelElement
53+
).innerText.trim();
54+
55+
input.checked = getStorage().includes(
56+
`${window.location.pathname}${label}`,
57+
);
58+
59+
input.addEventListener("change", () => {
60+
updateStorage(label, input.checked);
61+
});
62+
}
63+
}
64+
65+
customElements.define("check-box", Checkbox);
66+
</script>

src/components/ProductCatalog.tsx renamed to src/components/DirectoryCatalog.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type Filters = {
1313
groups: string[];
1414
};
1515

16-
const ProductCatalog = ({ products }: { products: ProductData[] }) => {
16+
const DirectoryCatalog = ({ products }: { products: ProductData[] }) => {
1717
const [filters, setFilters] = useState<Filters>({
1818
search: "",
1919
groups: [],
@@ -74,7 +74,7 @@ const ProductCatalog = ({ products }: { products: ProductData[] }) => {
7474
<input
7575
type="text"
7676
className="mb-8 w-full rounded-md border-2 border-gray-200 bg-white px-2 py-2 dark:border-gray-700 dark:bg-gray-800"
77-
placeholder="Search products"
77+
placeholder="Search folders"
7878
value={filters.search}
7979
onChange={(e) => setFilters({ ...filters, search: e.target.value })}
8080
/>
@@ -116,7 +116,7 @@ const ProductCatalog = ({ products }: { products: ProductData[] }) => {
116116
<div className="mt-0! grid w-full grid-cols-1 items-stretch gap-2 self-start md:grid-cols-2 lg:w-3/4 lg:grid-cols-3 lg:gap-4">
117117
{productList.length === 0 && (
118118
<div className="flex w-full flex-col justify-center rounded-md border bg-gray-50 py-6 text-center align-middle md:col-span-2 lg:col-span-3 dark:border-gray-500 dark:bg-gray-800">
119-
<span className="text-lg font-bold!">No products found</span>
119+
<span className="text-lg font-bold!">No folders found</span>
120120
<p>
121121
Try a different search term, or broaden your search by removing
122122
filters.
@@ -163,4 +163,4 @@ const ProductCatalog = ({ products }: { products: ProductData[] }) => {
163163
);
164164
};
165165

166-
export default ProductCatalog;
166+
export default DirectoryCatalog;

src/components/HeaderDropdowns.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { useState } from "react";
1111
import { PiCaretDownBold } from "react-icons/pi";
1212

1313
const links = [
14-
{ label: "Docs Directory", href: "/products/" },
14+
{ label: "Docs Directory", href: "/directory/" },
1515
{
1616
label: "APIs",
1717
href: "https://developers.cloudflare.com/api/",

src/components/HomepageHero.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ if (image) {
4545
<div class="sl-flex stack">
4646
<div class="sl-flex copy">
4747
<div class="sl-flex copy links space-x-4">
48-
<a href="/products/">Products</a>
48+
<a href="/directory/">Directory</a>
4949
<a href="/billing/">Subscriptions and billing</a>
5050
<a href="/api/">API</a>
5151
<a href="/changelog/">Changelog</a>

src/components/ProductReleaseNotes.astro

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,6 @@ if (!releaseNotes) {
9494
<AnchorHeading depth={2} title={page.data.title} />
9595
</a>
9696
<p class="text-xs">{entry.date}</p>
97-
{page.data.release_notes_product_area_name && (
98-
<h3 class="mt-4!">
99-
<a href={entry.productLink}>{entry.product}</a>
100-
</h3>
101-
)}
10297
{<Fragment set:html={description} />}
10398
</div>
10499
);
@@ -108,11 +103,6 @@ if (!releaseNotes) {
108103
<>
109104
<AnchorHeading depth={2} title={date} />
110105
<div data-product={entry.product.toLowerCase()}>
111-
{page.data.release_notes_product_area_name && (
112-
<h3 class="mt-4!">
113-
<a href={entry.productLink}>{entry.product}</a>
114-
</h3>
115-
)}
116106
{entry.title && <strong>{entry.title}</strong>}
117107
{<Fragment set:html={description} />}
118108
</div>

0 commit comments

Comments
 (0)