Skip to content

Commit df743b4

Browse files
Merge branch 'production' of github.com:cloudflare/cloudflare-docs into production
2 parents bb5b2e0 + de82c48 commit df743b4

File tree

46 files changed

+549
-353
lines changed

Some content is hidden

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

46 files changed

+549
-353
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444

4545
/src/content/docs/browser-rendering/ @mchenco @cloudflare/pcx-technical-writing @celso @meddulla
4646

47+
# Changelogs
48+
49+
/src/content/changelogs-next/ @elithrar @irvinebroque @jonesphillip @rita3ko @zaidf
50+
4751
# Cloudflare One
4852

4953
/src/content/docs/cloudflare-one/ @ranbel @cloudflare/pcx-technical-writing

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ If we require more information to address your pull request, the `more-informati
3535

3636
## Wrangler config
3737

38-
If you're adding a code snippet to the docs that represents a Wrangler config file (`wrangler.toml` or `wrangler.json`) make sure you wrap it with the `<WranglerConfig>` component, which ensure it's rendered as both JSON and TOML e.g.
38+
If you're adding a code snippet to the docs that represents a Wrangler config file (`wrangler.toml`, `wrangler.json`, or `wrangler.jsonc`) make sure you wrap it with the `<WranglerConfig>` component, which ensure it's rendered as both JSON and TOML e.g.
3939

4040
````
4141

astro.config.ts

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -177,27 +177,27 @@ export default defineConfig({
177177
plugins: [
178178
...(runLinkCheck
179179
? [
180-
starlightLinksValidator({
181-
errorOnInvalidHashes: false,
182-
errorOnLocalLinks: false,
183-
exclude: [
184-
"/api/",
185-
"/api/**",
186-
"/changelog/",
187-
"/http/resources/**",
188-
"{props.*}",
189-
"/",
190-
"**/glossary/?term=**",
191-
"/products/?product-group=*",
192-
"/products/",
193-
"/rules/snippets/examples/?operation=*",
194-
"/rules/transform/examples/?operation=*",
195-
"/workers/examples/?languages=*",
196-
"/workers/examples/?tags=*",
197-
"/workers-ai/models/**",
198-
],
199-
}),
200-
]
180+
starlightLinksValidator({
181+
errorOnInvalidHashes: false,
182+
errorOnLocalLinks: false,
183+
exclude: [
184+
"/api/",
185+
"/api/**",
186+
"/changelog/",
187+
"/http/resources/**",
188+
"{props.*}",
189+
"/",
190+
"**/glossary/?term=**",
191+
"/products/?product-group=*",
192+
"/products/",
193+
"/rules/snippets/examples/?operation=*",
194+
"/rules/transform/examples/?operation=*",
195+
"/workers/examples/?languages=*",
196+
"/workers/examples/?tags=*",
197+
"/workers-ai/models/**",
198+
],
199+
}),
200+
]
201201
: []),
202202
starlightDocSearch({
203203
appId: "D32WIYFTUF",
@@ -207,6 +207,7 @@ export default defineConfig({
207207
}),
208208
starlightImageZoom(),
209209
],
210+
lastUpdated: true,
210211
}),
211212
tailwind({
212213
applyBaseStyles: false,

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"astro-icon": "^1.1.2",
5353
"astro-live-code": "^0.0.4",
5454
"date-fns": "^4.1.0",
55+
"dedent": "^1.5.3",
5556
"detype": "1.0.12",
5657
"dompurify": "3.2.3",
5758
"dot-prop": "^9.0.0",

public/_redirects

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,12 @@
308308
/d1/reference/database-commands/ /d1/reference/sql-statements/ 301
309309
/d1/reference/sql-statements/ /d1/sql-api/sql-statements/ 301
310310

311+
# Data Localization Suite
312+
/data-localization/key-management/ /data-localization/key-management/geo-key-manager/ 301
313+
/data-localization/key-management/geo-key-manager/ /data-localization/geo-key-manager/ 301
314+
/data-localization/key-management/keyless-ssl/ /ssl/keyless-ssl/ 301
315+
316+
311317
# data loss prevention (dlp)
312318
/cloudflare-one/policies/data-loss-prevention/integration-profiles/ /cloudflare-one/policies/data-loss-prevention/dlp-profiles/integration-profiles/ 301
313319
/cloudflare-one/policies/data-loss-prevention/dlp-logs/ /cloudflare-one/policies/data-loss-prevention/dlp-policies/ 301
@@ -1023,7 +1029,6 @@
10231029
/ssl/reference/cipher-suites/matching-on-origin/ /ssl/origin-configuration/cipher-suites/#match-on-origin 301
10241030
/ssl/reference/migration-guides/lets-encrypt-chain/ /ssl/reference/certificate-authorities/#lets-encrypt 301
10251031
/ssl/reference/migration-guides/dcv-update/ /ssl/reference/migration-guides/ 301
1026-
/ssl/reference/migration-guides/digicert-update/ /ssl/reference/migration-guides/ 301
10271032
/ssl/reference/validation-backoff-schedule/ /ssl/edge-certificates/changing-dcv-method/validation-backoff-schedule/ 301
10281033
/ssl/universal-ssl/changing-dcv-method/ /ssl/edge-certificates/changing-dcv-method/ 301
10291034
/support/dns/how-to/certification-authority-authorization-caa-faq/ /ssl/edge-certificates/troubleshooting/caa-records/ 301

src/components/ModelCatalog.jsx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -80,22 +80,22 @@ const ModelCatalog = ({ models }) => {
8080

8181
return (
8282
<div className="md:flex">
83-
<div className="md:w-1/4 w-full mr-8">
83+
<div className="mr-8 w-full md:w-1/4">
8484
<input
8585
type="text"
86-
className="w-full mb-8 rounded-md bg-white dark:bg-black border-2 border-gray-200 dark:border-gray-700 px-2 py-2"
86+
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"
8787
placeholder="Search models"
8888
value={filters.search}
8989
onChange={(e) => setFilters({ ...filters, search: e.target.value })}
9090
/>
9191

92-
<div className="!mb-8 md:block hidden">
93-
<span className="uppercase text-gray-600 dark:text-gray-200 text-sm font-bold">
92+
<div className="!mb-8 hidden md:block">
93+
<span className="text-sm font-bold uppercase text-gray-600 dark:text-gray-200">
9494
▼ Model Types
9595
</span>
9696

9797
{tasks.map((task) => (
98-
<label key={task} className="block !my-2">
98+
<label key={task} className="!my-2 block">
9999
<input
100100
type="checkbox"
101101
className="mr-2"
@@ -119,13 +119,13 @@ const ModelCatalog = ({ models }) => {
119119
))}
120120
</div>
121121

122-
<div className="!mb-8 md:block hidden">
123-
<span className="uppercase text-gray-600 dark:text-gray-200 text-sm font-bold">
122+
<div className="!mb-8 hidden md:block">
123+
<span className="text-sm font-bold uppercase text-gray-600 dark:text-gray-200">
124124
▼ Capabilities
125125
</span>
126126

127127
{capabilities.map((capability) => (
128-
<label key={capability} className="block !my-2">
128+
<label key={capability} className="!my-2 block">
129129
<input
130130
type="checkbox"
131131
value={capability}
@@ -151,13 +151,13 @@ const ModelCatalog = ({ models }) => {
151151
))}
152152
</div>
153153

154-
<div className="md:block hidden">
155-
<span className="uppercase text-gray-600 dark:text-gray-200 text-sm font-bold">
154+
<div className="hidden md:block">
155+
<span className="text-sm font-bold uppercase text-gray-600 dark:text-gray-200">
156156
▼ Authors
157157
</span>
158158

159159
{authors.map((author) => (
160-
<label key={author} className="block !my-2">
160+
<label key={author} className="!my-2 block">
161161
<input
162162
type="checkbox"
163163
className="mr-2"
@@ -183,9 +183,9 @@ const ModelCatalog = ({ models }) => {
183183
))}
184184
</div>
185185
</div>
186-
<div className="flex md:w-3/4 w-full gap-[1%] items-stretch self-start flex-wrap !mt-0">
186+
<div className="!mt-0 flex w-full flex-wrap items-stretch gap-[1%] self-start md:w-3/4">
187187
{modelList.length === 0 && (
188-
<div className="border bg-gray-50 dark:bg-gray-800 dark:border-gray-500 rounded-md w-full flex-col flex align-middle justify-center text-center py-6">
188+
<div className="flex w-full flex-col justify-center rounded-md border bg-gray-50 py-6 text-center align-middle dark:border-gray-500 dark:bg-gray-800">
189189
<span className="text-lg !font-bold">No models found</span>
190190
<p>
191191
Try a different search term, or broaden your search by removing
@@ -206,36 +206,36 @@ const ModelCatalog = ({ models }) => {
206206
return (
207207
<a
208208
key={model.model.id}
209-
className="p-3 border-gray-200 dark:border-gray-700 border-solid border rounded-md lg:w-[48%] w-full block !text-inherit no-underline self-start hover:bg-gray-50 dark:hover:bg-black mb-3"
209+
className="mb-3 block w-full self-start rounded-md border border-solid border-gray-200 p-3 !text-inherit no-underline hover:bg-gray-50 dark:border-gray-700 dark:hover:bg-gray-800 lg:w-[48%]"
210210
href={`/workers-ai/models/${model.model_display_name}`}
211211
>
212212
<div className="-mb-1 flex items-center">
213213
{authorData[model.model.name.split("/")[1]]?.logo ? (
214214
<img
215-
className="block w-6 mr-2"
215+
className="mr-2 block w-6"
216216
src={authorData[model.model.name.split("/")[1]]?.logo}
217217
/>
218218
) : (
219-
<div className="w-6 h-6 rounded-md bg-gray-100 text-gray-400 uppercase text-sm font-black flex justify-center items-center mr-2">
219+
<div className="mr-2 flex h-6 w-6 items-center justify-center rounded-md bg-gray-100 text-sm font-black uppercase text-gray-400">
220220
{author.substr(0, 1)}
221221
</div>
222222
)}
223-
<span className="font-semibold text-lg text-ellipsis overflow-hidden whitespace-nowrap">
223+
<span className="overflow-hidden text-ellipsis whitespace-nowrap text-lg font-semibold">
224224
{model.model_display_name}
225225
</span>
226226
{isBeta && (
227-
<span className="ml-1 bg-orange-200 text-orange-900 rounded-full px-2 py-0.5 text-xs">
227+
<span className="ml-1 rounded-full bg-orange-200 px-2 py-0.5 text-xs text-orange-900">
228228
Beta
229229
</span>
230230
)}
231231
</div>
232-
<div className="text-xs !m-0">
232+
<div className="!m-0 text-xs">
233233
<ModelInfo model={model.model} />
234234
</div>
235235
<p className="!mt-2 line-clamp-2 text-sm leading-6">
236236
{model.model.description}
237237
</p>
238-
<div className="text-xs !mt-2">
238+
<div className="!mt-2 text-xs">
239239
<ModelBadges model={model.model} />
240240
</div>
241241
</a>

src/components/ProductCatalog.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,22 @@ const ProductCatalog = ({ products }: { products: ProductData[] }) => {
5454

5555
return (
5656
<div className="md:flex">
57-
<div className="md:w-1/4 w-full mr-8">
57+
<div className="mr-8 w-full md:w-1/4">
5858
<input
5959
type="text"
60-
className="w-full mb-8 rounded-md bg-white dark:bg-black border-2 border-gray-200 dark:border-gray-700 px-2 py-2"
60+
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"
6161
placeholder="Search products"
6262
value={filters.search}
6363
onChange={(e) => setFilters({ ...filters, search: e.target.value })}
6464
/>
6565

66-
<div className="!mb-8 md:block hidden">
67-
<span className="uppercase text-gray-600 dark:text-gray-200 text-sm font-bold">
66+
<div className="!mb-8 hidden md:block">
67+
<span className="text-sm font-bold uppercase text-gray-600 dark:text-gray-200">
6868
Groups
6969
</span>
7070

7171
{groups.map((group) => (
72-
<label key={group} className="block !my-2">
72+
<label key={group} className="!my-2 block">
7373
<input
7474
type="checkbox"
7575
className="mr-2"
@@ -97,9 +97,9 @@ const ProductCatalog = ({ products }: { products: ProductData[] }) => {
9797
</div>
9898
</div>
9999

100-
<div className="grid lg:grid-cols-3 md:grid-cols-2 grid-cols-1 gap-2 lg:gap-4 lg:w-3/4 w-full items-stretch self-start !mt-0">
100+
<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">
101101
{productList.length === 0 && (
102-
<div className="border lg:col-span-3 md:col-span-2 bg-gray-50 dark:bg-gray-800 dark:border-gray-500 rounded-md w-full flex-col flex align-middle justify-center text-center py-6">
102+
<div className="flex w-full flex-col justify-center rounded-md border bg-gray-50 py-6 text-center align-middle dark:border-gray-500 dark:bg-gray-800 md:col-span-2 lg:col-span-3">
103103
<span className="text-lg !font-bold">No products found</span>
104104
<p>
105105
Try a different search term, or broaden your search by removing
@@ -111,11 +111,11 @@ const ProductCatalog = ({ products }: { products: ProductData[] }) => {
111111
return (
112112
<a
113113
href={product.data.product.url}
114-
className="self-stretch p-3 border-gray-200 dark:border-gray-700 border-solid border rounded-md block !text-inherit no-underline hover:bg-gray-50 dark:hover:bg-black"
114+
className="block self-stretch rounded-md border border-solid border-gray-200 p-3 !text-inherit no-underline hover:bg-gray-50 dark:border-gray-700 dark:hover:bg-gray-800"
115115
>
116116
<div className="flex items-start">
117117
{product.icon && (
118-
<div className="rounded-full p-1 bg-orange-50 mr-2 text-orange-500 dark:bg-orange-950">
118+
<div className="mr-2 rounded-full bg-orange-50 p-1 text-orange-500 dark:bg-orange-950">
119119
<svg
120120
{...product.icon.attributes}
121121
width={24}
@@ -125,11 +125,11 @@ const ProductCatalog = ({ products }: { products: ProductData[] }) => {
125125
</div>
126126
)}
127127
{!product.icon && (
128-
<div className="flex items-center justify-center leading-none rounded-full p-1 bg-orange-50 dark:bg-orange-950 mr-2 text-[color:var(--orange-accent-200)] text-lg font-bold w-8 h-8">
128+
<div className="mr-2 flex h-8 w-8 items-center justify-center rounded-full bg-orange-50 p-1 text-lg font-bold leading-none text-[color:var(--orange-accent-200)] dark:bg-orange-950">
129129
{product.data.name.substr(0, 1)}
130130
</div>
131131
)}
132-
<span className="font-semibold text-md mt-0.5">
132+
<span className="text-md mt-0.5 font-semibold">
133133
{product.data.name}
134134
</span>
135135
</div>

src/components/overrides/Head.astro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,17 @@ if (currentSection) {
126126
});
127127
}
128128
}
129+
130+
if (currentSection === "style-guide") {
131+
Astro.props.entry.data.head.push({
132+
tag: "meta",
133+
attrs: {
134+
name: "robots",
135+
content: "noindex",
136+
},
137+
content: "",
138+
});
139+
}
129140
}
130141
131142
Astro.props.entry.data.description ??= await getPageDescription(

src/content/changelogs/ai-gateway.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ productLink: "/ai-gateway/"
55
productArea: Developer platform
66
productAreaLink: /workers/platform/changelog/platform/
77
entries:
8+
- publish_date: "2025-01-02"
9+
title: DeepSeek
10+
description: |-
11+
* **Configuration**: Added [DeepSeek](/ai-gateway/providers/deepseek/) as a new provider.
12+
813
- publish_date: "2024-12-17"
914
title: AI Gateway Dashboard
1015
description: |-

0 commit comments

Comments
 (0)