Skip to content

Commit

Permalink
build(docs): migrate to astro v5
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-berlin committed Dec 18, 2024
1 parent 3ef4edf commit a3ceb2a
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 689 deletions.
8 changes: 4 additions & 4 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"preinstall": "npx only-allow pnpm"
},
"dependencies": {
"@astrojs/mdx": "^4.0.1",
"astro": "^5.0.2",
"astro-breadcrumbs": "^3.2.2"
"@astrojs/mdx": "^4.0.2",
"astro": "^5.0.9",
"astro-breadcrumbs": "^3.3.1"
},
"devDependencies": {
"sass": "^1.82.0"
"sass": "^1.83.0"
},
"packageManager": "[email protected]"
}
10 changes: 5 additions & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/starlight": "^0.29.2",
"astro": "^4.16.16",
"astro-breadcrumbs": "^3.2.2",
"astro-matomo": "^1.6.0",
"@astrojs/starlight": "^0.30.2",
"astro": "^5.0.9",
"astro-breadcrumbs": "^3.3.1",
"astro-matomo": "^1.7.0",
"sharp": "^0.33.5",
"starlight-links-validator": "^0.13.4"
},
"devDependencies": {
"sass": "^1.82.0"
"sass": "^1.83.0"
},
"packageManager": "[email protected]"
}
8 changes: 8 additions & 0 deletions docs/src/content.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineCollection } from "astro:content";
import { docsSchema, i18nSchema } from "@astrojs/starlight/schema";
import { docsLoader, i18nLoader } from "@astrojs/starlight/loaders";

export const collections = {
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
i18n: defineCollection({ loader: i18nLoader(), schema: i18nSchema() }),
};
7 changes: 0 additions & 7 deletions docs/src/content/config.ts

This file was deleted.

Loading

0 comments on commit a3ceb2a

Please sign in to comment.