From abf3097bde8937daddd33af487df99e0c83d76c6 Mon Sep 17 00:00:00 2001 From: trueberryless Date: Mon, 23 Dec 2024 11:51:15 +0100 Subject: [PATCH] add plugin --- .changeset/weak-donuts-fail.md | 5 +++++ docs/astro.config.ts | 4 ++++ docs/package.json | 3 ++- pnpm-lock.yaml | 13 +++++++++++++ 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .changeset/weak-donuts-fail.md diff --git a/.changeset/weak-donuts-fail.md b/.changeset/weak-donuts-fail.md new file mode 100644 index 0000000..30e852a --- /dev/null +++ b/.changeset/weak-donuts-fail.md @@ -0,0 +1,5 @@ +--- +"@trueberryless-org/starlight-plugins-docs-components-docs": patch +--- + +Add Starlight Plugin Show Latest Version diff --git a/docs/astro.config.ts b/docs/astro.config.ts index b8503c0..6b9e348 100644 --- a/docs/astro.config.ts +++ b/docs/astro.config.ts @@ -2,6 +2,7 @@ import starlight from "@astrojs/starlight"; import { defineConfig } from "astro/config"; import starlightLinksValidator from "starlight-links-validator"; import starlightPluginsDocsComponents from "@trueberryless-org/starlight-plugins-docs-components"; +import starlightPluginShowLatestVersion from "starlight-plugin-show-latest-version"; export default defineConfig({ integrations: [ @@ -42,6 +43,9 @@ export default defineConfig({ ], }, }), + starlightPluginShowLatestVersion({ + repo: "trueberryless-org/starlight-plugins-docs-components", + }), ], expressiveCode: { defaultProps: { diff --git a/docs/package.json b/docs/package.json index 7c24168..4c2c616 100644 --- a/docs/package.json +++ b/docs/package.json @@ -26,7 +26,8 @@ "@trueberryless-org/starlight-plugins-docs-components": "workspace:*", "astro": "^5.1.1", "sharp": "^0.33.5", - "starlight-links-validator": "^0.13.0" + "starlight-links-validator": "^0.13.0", + "starlight-plugin-show-latest-version": "^0.2.0" }, "packageManager": "pnpm@9.3.0", "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 27aaa40..f1f290b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,6 +35,9 @@ importers: starlight-links-validator: specifier: ^0.13.0 version: 0.13.0(@astrojs/starlight@0.30.3(astro@5.1.1(jiti@2.4.2)(rollup@4.24.3)(typescript@5.6.3)))(astro@5.1.1(jiti@2.4.2)(rollup@4.24.3)(typescript@5.6.3)) + starlight-plugin-show-latest-version: + specifier: ^0.2.0 + version: 0.2.0(@astrojs/starlight@0.30.3(astro@5.1.1(jiti@2.4.2)(rollup@4.24.3)(typescript@5.6.3))) packages/starlight-plugins-docs-components: dependencies: @@ -2186,6 +2189,12 @@ packages: '@astrojs/starlight': '>=0.22.0' astro: '>=4.2.7' + starlight-plugin-show-latest-version@0.2.0: + resolution: {integrity: sha512-isJafUbOIL6IjH0YhbWPhEAnKj4Q32hdfd7scUP2RAH0LknejNqk90oChfBQMB6rmlnb6n4qO7b8823LyZpn5Q==} + engines: {node: ^18.17.1 || ^20.3.0 || >=21.0.0} + peerDependencies: + '@astrojs/starlight': '>=0.30' + starlight-showcases@0.1.2: resolution: {integrity: sha512-yj3RjcdWLIWdehTjne9Ethd3ff95vMbuVx/87lU4yilTQewQxjnAyOf1KSnGUgTMQT5WTqhDw8LciPBJox+b8Q==} engines: {node: '>=18'} @@ -5284,6 +5293,10 @@ snapshots: '@astrojs/starlight': 0.30.3(astro@5.1.1(jiti@2.4.2)(rollup@4.24.3)(typescript@5.6.3)) astro: 5.1.1(jiti@2.4.2)(rollup@4.24.3)(typescript@5.6.3) + starlight-plugin-show-latest-version@0.2.0(@astrojs/starlight@0.30.3(astro@5.1.1(jiti@2.4.2)(rollup@4.24.3)(typescript@5.6.3))): + dependencies: + '@astrojs/starlight': 0.30.3(astro@5.1.1(jiti@2.4.2)(rollup@4.24.3)(typescript@5.6.3)) + starlight-showcases@0.1.2(@astrojs/starlight@0.30.3(astro@5.1.1(jiti@2.4.2)(rollup@4.24.3)(typescript@5.6.3)))(astro@5.1.1(jiti@2.4.2)(rollup@4.24.3)(typescript@5.6.3)): dependencies: '@astro-community/astro-embed-twitter': 0.5.8(astro@5.1.1(jiti@2.4.2)(rollup@4.24.3)(typescript@5.6.3))