diff --git a/astro.config.mjs b/astro.config.mjs index fc31c62a..7a012d0b 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -19,6 +19,7 @@ import react from "@astrojs/react"; import starlightLlmsTxt from "starlight-llms-txt"; import favicons from "astro-favicons"; import icon from "astro-icon"; +import starlightImageZoom from "starlight-image-zoom"; import { sidebar } from "./astro.sidebar.ts"; import { ENV } from "./src/lib/env"; import { ogImagesIntegration } from "./src/integrations/ogImages"; @@ -128,6 +129,7 @@ export default defineConfig({ TwoColumnContent: "./src/starlight-overrides/TwoColumnContent.astro", }, plugins: [ + starlightImageZoom(), starlightLinksValidator({ errorOnFallbackPages: false, errorOnInconsistentLocale: true, diff --git a/package.json b/package.json index 86ed75ad..c3535cf9 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "react-dom": "^19.2.0", "react-markdown": "^10.1.0", "react-syntax-highlighter": "^15.6.6", + "starlight-image-zoom": "^0.13.0", "starlight-links-validator": "^0.19.0", "tailwindcss": "^4.1.14" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4db25b1c..9ad322f3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -124,6 +124,9 @@ importers: react-syntax-highlighter: specifier: ^15.6.6 version: 15.6.6(react@19.2.0) + starlight-image-zoom: + specifier: ^0.13.0 + version: 0.13.0(@astrojs/starlight@0.35.3(astro@5.13.7(patch_hash=2ca2f7001eeda6def10073a7e027fbe45196b762d139fb275c585006fd222b2c)(@types/node@24.4.0)(@vercel/functions@2.2.12)(jiti@2.4.2)(lightningcss@1.30.1)(rollup@4.50.1)(tsx@4.20.3)(typescript@5.9.2)(yaml@2.8.0))) starlight-links-validator: specifier: ^0.19.0 version: 0.19.0(@astrojs/starlight@0.36.1(astro@5.14.6(patch_hash=2ca2f7001eeda6def10073a7e027fbe45196b762d139fb275c585006fd222b2c)(@types/node@24.8.1)(@vercel/functions@2.2.13)(jiti@2.6.1)(lightningcss@1.30.1)(rollup@4.52.5)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1))) @@ -6930,6 +6933,12 @@ packages: resolution: {integrity: sha512-o3yWv49B/o4QZk5ZcsALc6t0+eCelPc44zZsLtCQnZPDwFpDYSWcDnrv2TtMmMbQ7uKo3J0HTURCqckw23czNQ==} engines: {node: '>=12.0.0'} + starlight-image-zoom@0.13.0: + resolution: {integrity: sha512-7K/7gshnKooYd4ePy5vtyv1jFoFVNUb8IoXWDcnY69+nxvmLATNrmOzD2M4TJ/aKynPSBSM6j9ia4s/PPy/JGA==} + engines: {node: '>=18'} + peerDependencies: + '@astrojs/starlight': '>=0.32.0' + starlight-links-validator@0.19.0: resolution: {integrity: sha512-wsqVL/vL6A4wvnM0m1A9Rwu8WuKS4rZerg1Dw5p8Xq4MquJco2F68LNt5lm9kYa3G9dUi4jMZbUAUuzzczQyJQ==} engines: {node: '>=18.17.1'} @@ -16296,6 +16305,16 @@ snapshots: stable-hash-x@0.2.0: {} + starlight-image-zoom@0.13.0(@astrojs/starlight@0.35.3(astro@5.13.7(patch_hash=2ca2f7001eeda6def10073a7e027fbe45196b762d139fb275c585006fd222b2c)(@types/node@24.4.0)(@vercel/functions@2.2.12)(jiti@2.4.2)(lightningcss@1.30.1)(rollup@4.50.1)(tsx@4.20.3)(typescript@5.9.2)(yaml@2.8.0))): + dependencies: + '@astrojs/starlight': 0.35.3(astro@5.13.7(patch_hash=2ca2f7001eeda6def10073a7e027fbe45196b762d139fb275c585006fd222b2c)(@types/node@24.4.0)(@vercel/functions@2.2.12)(jiti@2.4.2)(lightningcss@1.30.1)(rollup@4.50.1)(tsx@4.20.3)(typescript@5.9.2)(yaml@2.8.0)) + mdast-util-mdx-jsx: 3.2.0 + rehype-raw: 7.0.0 + unist-util-visit: 5.0.0 + unist-util-visit-parents: 6.0.1 + transitivePeerDependencies: + - supports-color + starlight-links-validator@0.19.0(@astrojs/starlight@0.36.1(astro@5.14.6(patch_hash=2ca2f7001eeda6def10073a7e027fbe45196b762d139fb275c585006fd222b2c)(@types/node@24.8.1)(@vercel/functions@2.2.13)(jiti@2.6.1)(lightningcss@1.30.1)(rollup@4.52.5)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1))): dependencies: '@astrojs/starlight': 0.36.1(astro@5.14.6(patch_hash=2ca2f7001eeda6def10073a7e027fbe45196b762d139fb275c585006fd222b2c)(@types/node@24.8.1)(@vercel/functions@2.2.13)(jiti@2.6.1)(lightningcss@1.30.1)(rollup@4.52.5)(tsx@4.20.6)(typescript@5.9.3)(yaml@2.8.1))