Skip to content

Commit f500d94

Browse files
committed
Add image zoom plugin
1 parent caedfce commit f500d94

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

astro.config.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { defineConfig } from "astro/config";
33
import starlight from "@astrojs/starlight";
44
import { pluginLineNumbers } from "@expressive-code/plugin-line-numbers";
5+
import starlightImageZoom from "starlight-image-zoom";
56

67
const analytics = `
78
(function(window, document, dataLayerName, id) {
@@ -32,8 +33,8 @@ export default defineConfig({
3233
tag: "meta",
3334
attrs: {
3435
name: "google-site-verification",
35-
content: "xQEXVaL5aIe6GfMlfVDFzRqf0f4_XgL4son-Lk9RPQM"
36-
}
36+
content: "xQEXVaL5aIe6GfMlfVDFzRqf0f4_XgL4son-Lk9RPQM",
37+
},
3738
},
3839
{
3940
tag: "script",
@@ -160,6 +161,7 @@ export default defineConfig({
160161
"./src/styles/restore-defaults.css",
161162
"./src/styles/custom.css",
162163
],
164+
plugins: [starlightImageZoom()],
163165
}),
164166
],
165167
});

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
@@ -19,6 +19,7 @@
1919
"astro": "^5.2.5",
2020
"marked": "^15.0.6",
2121
"sharp": "^0.33.5",
22+
"starlight-image-zoom": "^0.10.1",
2223
"typescript": "^5.7.3"
2324
},
2425
"devDependencies": {

0 commit comments

Comments
 (0)