Skip to content

Commit a5a2281

Browse files
Merge pull request #91 from cloudinary-community/astro-5.3
fix: bump Astro and Starlight in docs
2 parents a031e45 + 3ea7aae commit a5a2281

File tree

6 files changed

+1572
-1609
lines changed

6 files changed

+1572
-1609
lines changed

astro-cloudinary/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@
5050
"astro": "^3.2.0 || ^4.0.0 || ^5.0.0"
5151
},
5252
"devDependencies": {
53-
"astro": "^4.15.6"
53+
"astro": "^5.5.3"
5454
}
5555
}

docs/astro.config.mjs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ import icon from "astro-icon";
77
import vercel from '@astrojs/vercel/serverless';
88

99
export default defineConfig({
10-
output: 'hybrid',
11-
12-
experimental: {
13-
contentLayer: true,
14-
},
1510

1611
integrations: [
1712
starlight({

docs/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13-
"@astrojs/check": "^0.9.3",
14-
"@astrojs/starlight": "^0.28.2",
15-
"@astrojs/starlight-tailwind": "^2.0.3",
16-
"@astrojs/tailwind": "^5.1.1",
17-
"@astrojs/vercel": "^7.8.1",
13+
"@astrojs/check": "^0.9.4",
14+
"@astrojs/starlight": "^0.32.3",
15+
"@astrojs/starlight-tailwind": "^3.0.0",
16+
"@astrojs/tailwind": "^6.0.0",
17+
"@astrojs/vercel": "^8.1.2",
1818
"@vercel/analytics": "^1.3.1",
19-
"astro": "^4.15.9",
19+
"astro": "^5.5.3",
2020
"astro-icon": "^1.1.1",
2121
"cloudinary": "^2.5.0",
2222
"clsx": "^2.1.1",

docs/src/components/Head.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type { Props } from '@astrojs/starlight/props'
33
import Default from '@astrojs/starlight/components/Head.astro'
44
import { CldOgImage } from '../../../astro-cloudinary';
55
6-
const { slug, entry } = Astro.props;
6+
const { slug, entry } = Astro.locals.starlightRoute;
77
const { title, ogImageTitle } = entry.data;
88
---
99
<Default {...Astro.props}><slot /></Default>

docs/src/content/config.ts renamed to docs/src/content.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { defineCollection, z } from 'astro:content';
2+
import { docsLoader } from "@astrojs/starlight/loaders";
23
import { docsSchema } from '@astrojs/starlight/schema';
34

4-
import { cldAssetsLoader } from '../../../astro-cloudinary/loaders';
5+
import { cldAssetsLoader } from '../../astro-cloudinary/loaders';
56

67
export const collections = {
78
assetsSamplesBasic: defineCollection({
@@ -33,6 +34,7 @@ export const collections = {
3334
})
3435
}),
3536
docs: defineCollection({
37+
loader: docsLoader(),
3638
schema: docsSchema({
3739
extend: z.object({
3840
ogImageTitle: z.string().optional(),

0 commit comments

Comments
 (0)