Skip to content

Commit 002e0b8

Browse files
committed
[WIP] Astro and Starlight upgrade
1 parent 1f24a5c commit 002e0b8

File tree

9 files changed

+9194
-9139
lines changed

9 files changed

+9194
-9139
lines changed

astro.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ export default defineConfig({
103103
},
104104
experimental: {
105105
contentIntellisense: true,
106-
contentLayer: true,
107-
directRenderScript: true,
106+
},
107+
legacy: {
108+
collections: true,
108109
},
109110
server: {
110111
port: 1111,

package-lock.json

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

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,19 @@
1717
"format:core:check": "npm run format:core -- --check",
1818
"format:content": "npx prettier --write \"**/*.{md,mdx,astro}\"",
1919
"format:data": "npx prettier --write \"**/*.{json,yaml,yml}\"",
20-
"postinstall": "npx patch-package && npm run sync",
20+
"postinstall": "npm run sync",
2121
"preview": "npx astro preview",
2222
"script:optimize-svgs": "npx tsx scripts/optimize-svgs.ts",
2323
"start": "npx astro dev",
2424
"sync": "npx astro sync",
2525
"test": "npx vitest"
2626
},
2727
"devDependencies": {
28-
"@astro-community/astro-embed-youtube": "^0.5.6",
2928
"@astrojs/check": "^0.9.4",
3029
"@astrojs/react": "^3.6.2",
3130
"@astrojs/rss": "^4.0.9",
3231
"@astrojs/sitemap": "^3.2.1",
33-
"@astrojs/starlight": "^0.29.2",
32+
"@astrojs/starlight": "https://gitpkg.now.sh/HiDeoo/starlight/packages/starlight?hd-astro-v5",
3433
"@astrojs/starlight-docsearch": "^0.3.0",
3534
"@astrojs/starlight-tailwind": "^2.0.3",
3635
"@astrojs/tailwind": "^5.1.2",
@@ -48,7 +47,7 @@
4847
"@types/react": "^18.3.12",
4948
"@types/react-dom": "^18.3.1",
5049
"algoliasearch": "^5.15.0",
51-
"astro": "^4.16.12",
50+
"astro": "^5.0.2",
5251
"astro-breadcrumbs": "^3.2.2",
5352
"astro-icon": "^1.1.2",
5453
"astro-live-code": "^0.0.4",
@@ -68,7 +67,6 @@
6867
"mdast-util-mdx-expression": "^2.0.1",
6968
"mermaid": "^11.4.0",
7069
"node-html-parser": "^6.1.13",
71-
"patch-package": "^8.0.0",
7270
"playwright": "^1.49.0",
7371
"prettier": "^3.4.2",
7472
"prettier-plugin-astro": "^0.14.1",
@@ -96,6 +94,11 @@
9694
"wrangler": "^3.87.0",
9795
"yaml": "^2.6.1"
9896
},
97+
"overrides": {
98+
"astro-breadcrumbs": {
99+
"astro": "$astro"
100+
}
101+
},
99102
"engines": {
100103
"node": ">=22"
101104
},
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
---
2-
_build:
3-
publishResources: false
4-
render: never
5-
list: never
6-
72
name: "Enable `cache: no-store` HTTP standard API"
83
sort_date: "2024-11-11"
94
enable_date: "2024-11-11"
@@ -21,19 +16,20 @@ The only cache option enabled with `cache_option_enabled` is `'no-store'`.
2116
Specifying any other value will cause the Workers runtime to throw a `TypeError` with the message `Unsupported cache mode: <the-mode-you-specified>`.
2217

2318
When `no-store` is specified:
24-
* All requests have the headers `Pragma: no-cache` and `Cache-Control: no-cache` are set on them.
2519

26-
* Subrequests to origins not hosted by Cloudflare bypass Cloudflare's cache.
20+
- All requests have the headers `Pragma: no-cache` and `Cache-Control: no-cache` are set on them.
21+
22+
- Subrequests to origins not hosted by Cloudflare bypass Cloudflare's cache.
2723

2824
Examples using `cache: 'no-store'`:
2925

3026
```js
31-
const response = await fetch("https://example.com", { cache: 'no-store'});
27+
const response = await fetch("https://example.com", { cache: "no-store" });
3228
```
3329

3430
The cache value can also be set on a `Request` object.
3531

3632
```js
37-
const request = new Request("https://example.com", { cache: 'no-store'});
33+
const request = new Request("https://example.com", { cache: "no-store" });
3834
const response = await fetch(request);
39-
```
35+
```

src/content/docs/ai-gateway/reference/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Platform
44
sidebar:
55
group:
66
hideIndex: true
7-
order: 11
7+
order: 11
88
---
99

1010
import { DirectoryListing } from "~/components";

src/content/docs/waf/detections/attack-score.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: WAF attack score
33
pcx_content_type: concept
44
sidebar:
55
order: 2
6-
label: Attack score
6+
label: Attack score
77
---
88

99
import { GlossaryTooltip } from "~/components";

src/content/partials/cloudflare-one/access/short-lived-certs-intro.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
params:
3-
- intro
4-
3+
- intro
54
---
65

76
import { Markdown } from "~/components"

src/content/partials/cloudflare-one/ssh/upload-ssh-key.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
params:
3-
- note
3+
- note
44
---
55

66
import { Markdown } from "~/components"

src/content/partials/cloudflare-one/tunnel/warp-to-tunnel-route-ips.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
params:
3-
- one
3+
- one
44
---
55

66
import { Markdown } from "~/components"

0 commit comments

Comments
 (0)