Skip to content

Commit ce3e697

Browse files
authored
add image zoom (#37)
1 parent 4d7d283 commit ce3e697

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
import sitemap from '@astrojs/sitemap';
89
import starlightFullViewMode from 'starlight-fullview-mode'
910
import starlightTocOverviewCustomizer from 'starlight-toc-overview-customizer'
@@ -108,6 +109,9 @@ export default defineConfig({
108109
alt: 'LocalStack',
109110
},
110111
plugins: [
112+
starlightImageZoom({
113+
showCaptions: true,
114+
}),
111115
starlightTocOverviewCustomizer({
112116
overviewTitle: "Back to top",
113117
}),

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
@@ -30,6 +30,7 @@
3030
"react": "^19.1.0",
3131
"react-dom": "^19.1.0",
3232
"sharp": "^0.32.5",
33+
"starlight-image-zoom": "^0.12.0",
3334
"starlight-fullview-mode": "^0.2.3",
3435
"starlight-links-validator": "^0.17.0",
3536
"starlight-toc-overview-customizer": "^0.1.0",

0 commit comments

Comments
 (0)