Skip to content

Commit 03c95e1

Browse files
committed
feat: use docusaurus-plugin-image-zoom to add zoomable images
1 parent 81f8530 commit 03c95e1

File tree

3 files changed

+72
-1
lines changed

3 files changed

+72
-1
lines changed

docusaurus.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ module.exports = {
127127
],
128128
]),
129129
plugins: [
130+
'docusaurus-plugin-image-zoom',
130131
[
131132
'@docusaurus/plugin-content-docs',
132133
{
@@ -307,6 +308,9 @@ module.exports = {
307308
'http', 'bash', 'ruby', 'java', 'scala', 'go', 'csharp', 'powershell', 'dart', 'objectivec', 'ocaml', 'r',
308309
],
309310
},
311+
zoom: {
312+
selector: '.markdown img',
313+
},
310314
languageTabs: [
311315
{
312316
highlight: 'bash',

package-lock.json

Lines changed: 66 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
"globby": "^14.0.0",
6060
"markdownlint": "^0.38.0",
6161
"markdownlint-cli": "^0.45.0",
62-
"path-browserify": "^1.0.1",
6362
"patch-package": "^8.0.0",
63+
"path-browserify": "^1.0.1",
6464
"rimraf": "^6.0.0",
6565
"typescript": "5.8.3",
6666
"typescript-eslint": "^8.29.1"
@@ -80,6 +80,7 @@
8080
"@redocly/cli": "^1.27.1",
8181
"ajv": "^8.17.1",
8282
"clsx": "^2.0.0",
83+
"docusaurus-plugin-image-zoom": "^3.0.1",
8384
"docusaurus-plugin-openapi-docs": "^4.3.7",
8485
"docusaurus-theme-openapi-docs": "^4.3.7",
8586
"form-data": "^4.0.0",

0 commit comments

Comments
 (0)