Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Starlight version 0.32.0 #22

Merged
merged 2 commits into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/six-wasps-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@trueberryless-org/starlight-plugins-docs-components": minor
---

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

Please use the `@astrojs/upgrade` command to upgrade your project:

```sh
npx @astrojs/upgrade
```
11 changes: 10 additions & 1 deletion docs/astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import starlightLinksValidator from "starlight-links-validator";
import starlightPluginsDocsComponents from "@trueberryless-org/starlight-plugins-docs-components";
import starlightPluginShowLatestVersion from "starlight-plugin-show-latest-version";

import node from "@astrojs/node";

export default defineConfig({
integrations: [
starlight({
Expand Down Expand Up @@ -44,7 +46,11 @@ export default defineConfig({
},
}),
starlightPluginShowLatestVersion({
repo: "trueberryless-org/starlight-plugins-docs-components",
source: {
type: "github",
slug: "trueberryless-org/starlight-plugins-docs-components",
},
showInSiteTitle: "deferred",
}),
],
expressiveCode: {
Expand All @@ -68,4 +74,7 @@ export default defineConfig({
},
}),
],
adapter: node({
mode: "standalone",
}),
});
11 changes: 6 additions & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@
"start": "astro dev"
},
"dependencies": {
"@astrojs/starlight": "^0.30.3",
"@hideoo/starlight-plugins-docs-components": "^0.2.2",
"@astrojs/node": "^9.1.0",
"@astrojs/starlight": "^0.32.0",
"@hideoo/starlight-plugins-docs-components": "^0.4.0",
"@trueberryless-org/starlight-plugins-docs-components": "workspace:*",
"astro": "^5.1.1",
"astro": "^5.3.0",
"sharp": "^0.33.5",
"starlight-links-validator": "^0.13.0",
"starlight-plugin-show-latest-version": "^0.2.0"
"starlight-links-validator": "^0.14.3",
"starlight-plugin-show-latest-version": "^0.3.1"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
16 changes: 1 addition & 15 deletions packages/starlight-plugins-docs-components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,11 @@ export default function starlightPluginsDocsComponents(
return {
name: "@trueberryless-org/starlight-plugins-docs-components",
hooks: {
setup({
"config:setup"({
addIntegration,
logger,
config: starlightConfig,
updateConfig: updateStarlightConfig,
}) {
/**
* This is the entry point of your Starlight plugin.
* The `setup` hook is called when Starlight is initialized (during the Astro `astro:config:setup` integration
* hook).
* To learn more about the Starlight plugin API and all available options in this hook, check the Starlight
* plugins reference.
*
* @see https://starlight.astro.build/reference/plugins/
*/
logger.info(
"Hello from the @trueberryless-org/starlight-plugins-docs-components plugin!"
);

const resourceItems = [
{ label: "Showcase", link: "resources/sites" },
{ label: "Plugins", link: "resources/plugins" },
Expand Down
8 changes: 4 additions & 4 deletions packages/starlight-plugins-docs-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
"./package.json": "./package.json"
},
"dependencies": {
"@hideoo/starlight-plugins-docs-components": "^0.2.2",
"@hideoo/starlight-plugins-docs-components": "^0.4.0",
"change-case": "^5.4.4",
"starlight-showcases": "^0.2.0"
},
"devDependencies": {
"@astrojs/starlight": "^0.30.3",
"astro": "^5.1.1"
"@astrojs/starlight": "^0.32.0",
"astro": "^5.3.0"
},
"peerDependencies": {
"@astrojs/starlight": ">=0.30"
"@astrojs/starlight": ">=0.32"
},
"engines": {
"node": "^18.17.1 || ^20.3.0 || >=21.0.0"
Expand Down
Loading
Loading