Skip to content

Commit

Permalink
Add support for Astro 5 (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
HiDeoo authored Dec 16, 2024
1 parent ca1b665 commit 5ea2109
Show file tree
Hide file tree
Showing 14 changed files with 2,496 additions and 1,828 deletions.
9 changes: 9 additions & 0 deletions .changeset/two-plums-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'starlight-theme-rapide': minor
---

Adds support for Astro v5, drops support for Astro v4.

⚠️ **BREAKING CHANGE:** The minimum supported version of Starlight is now `0.30.0`.

Please follow the [upgrade guide](https://github.com/withastro/starlight/releases/tag/%40astrojs/starlight%400.30.0) to update your project.
12 changes: 0 additions & 12 deletions docs/.prettierignore

This file was deleted.

11 changes: 5 additions & 6 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"lint": "eslint . --cache --max-warnings=0",
"format": "prettier -w --cache --ignore-unknown ."
"lint": "eslint . --cache --max-warnings=0"
},
"dependencies": {
"@astrojs/starlight": "^0.28.2",
"@hideoo/starlight-plugins-docs-components": "^0.2.2",
"astro": "^4.15.8",
"sharp": "^0.33.4",
"@astrojs/starlight": "^0.30.1",
"@hideoo/starlight-plugins-docs-components": "^0.3.0",
"astro": "^5.0.5",
"sharp": "^0.33.5",
"starlight-theme-rapide": "workspace:*"
},
"engines": {
Expand Down
3 changes: 2 additions & 1 deletion docs/src/content/config.ts → docs/src/content.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { docsLoader } from '@astrojs/starlight/loaders'
import { docsSchema } from '@astrojs/starlight/schema'
import { defineCollection } from 'astro:content'

export const collections = {
docs: defineCollection({ schema: docsSchema() }),
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
}
2 changes: 1 addition & 1 deletion docs/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ hero:
icon: rocket
- text: Examples
link: /examples/asides/
icon: external
icon: right-arrow
variant: minimal
---

Expand Down
File renamed without changes.
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@
"author": "HiDeoo <github@hideoo.dev> (https://hideoo.dev)",
"type": "module",
"scripts": {
"lint": "pnpm -r lint",
"format": "pnpm -r format",
"lint": "astro check --noSync && pnpm -r lint",
"format": "prettier -w --cache --ignore-unknown .",
"version": "pnpm changeset version && pnpm i --no-frozen-lockfile"
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.10",
"@hideoo/eslint-config": "^3.0.1",
"@astrojs/check": "^0.9.4",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.10",
"@hideoo/eslint-config": "^4.0.0",
"@hideoo/prettier-config": "^2.0.0",
"@hideoo/tsconfig": "^2.0.1",
"astro": "^4.15.8",
"eslint": "^8.57.0",
"prettier": "^3.3.1",
"prettier-plugin-astro": "^0.14.0",
"typescript": "^5.4.5"
"@types/node": "^18.19.68",
"astro": "^5.0.5",
"eslint": "^9.17.0",
"prettier": "^3.4.2",
"prettier-plugin-astro": "^0.14.1",
"typescript": "^5.7.2"
},
"engines": {
"node": ">=18"
Expand Down
2 changes: 1 addition & 1 deletion packages/starlight-theme-rapide/.npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.eslintcache
.prettierignore
eslint.config.mjs
tsconfig.json
tsconfig.tsbuildinfo
12 changes: 0 additions & 12 deletions packages/starlight-theme-rapide/.prettierignore

This file was deleted.

10 changes: 10 additions & 0 deletions packages/starlight-theme-rapide/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import hideoo from '@hideoo/eslint-config'

export default hideoo({
ignores: ['eslint.config.mjs'],
languageOptions: {
parserOptions: {
project: ['../../tsconfig.json'],
},
},
})
5 changes: 2 additions & 3 deletions packages/starlight-theme-rapide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
"./package.json": "./package.json"
},
"scripts": {
"lint": "eslint . --cache --max-warnings=0",
"format": "prettier -w --cache --ignore-unknown ."
"lint": "eslint . --cache --max-warnings=0"
},
"peerDependencies": {
"@astrojs/starlight": ">=0.28.0"
"@astrojs/starlight": ">=0.30.0"
},
"engines": {
"node": ">=18"
Expand Down
3 changes: 0 additions & 3 deletions packages/starlight-theme-rapide/tsconfig.json

This file was deleted.

Loading

0 comments on commit 5ea2109

Please sign in to comment.