Skip to content

Commit 296b6b1

Browse files
committed
add image zoom
1 parent 1cd284c commit 296b6b1

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

astro.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import starlight from '@astrojs/starlight';
44
import starlightUtils from '@lorenzo_lewis/starlight-utils';
55
import starlightDocSearch from '@astrojs/starlight-docsearch';
66
import starlightLinksValidator from 'starlight-links-validator'
7+
import starlightImageZoom from 'starlight-image-zoom'
78

89
import markdoc from '@astrojs/markdoc';
910

@@ -94,6 +95,9 @@ export default defineConfig({
9495
alt: 'LocalStack',
9596
},
9697
plugins: [
98+
starlightImageZoom({
99+
showCaptions: true,
100+
}),
97101
starlightLinksValidator({
98102
errorOnRelativeLinks: false,
99103
errorOnLocalLinks: false,

package-lock.json

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"react": "^19.1.0",
3030
"react-dom": "^19.1.0",
3131
"sharp": "^0.32.5",
32+
"starlight-image-zoom": "^0.12.0",
3233
"starlight-links-validator": "^0.17.0",
3334
"tailwind-merge": "^3.2.0",
3435
"tailwindcss": "^4.1.6"

0 commit comments

Comments
 (0)