Skip to content

Commit 71fa009

Browse files
authored
Merge pull request #773 from IABTechLab/gwh-APIDOCS-2237-images-zoom-tool-uid2
update
2 parents 4461ef4 + 7e0dc1b commit 71fa009

File tree

3 files changed

+79
-1
lines changed

3 files changed

+79
-1
lines changed

docusaurus.config.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ const config = {
9191
containerId: "GTM-K3NQMDX",
9292
},
9393
],
94+
require.resolve("docusaurus-plugin-image-zoom")
9495
],
9596

9697
presets: [
@@ -308,7 +309,17 @@ const config = {
308309
// apiKey: "58f35480017be37aca9f762323a0b4d1", //staging
309310
// indexName: "UID2", //staging
310311
},
312+
zoom: {
313+
selector: '.markdown :not(em) > img',
314+
config: {
315+
// options you can specify via https://github.com/francoischalifour/medium-zoom#usage
316+
background: {
317+
light: 'rgb(255, 255, 255)',
318+
dark: 'rgb(50, 50, 50)'
319+
}
320+
}
321+
}
311322
}),
312-
};
323+
};
313324

314325
export default config;

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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@mdx-js/react": "^3.0.1",
2727
"@types/lodash": "^4.17.10",
2828
"clsx": "^2.1.1",
29+
"docusaurus-plugin-image-zoom": "^2.0.0",
2930
"docusaurus-plugin-sass": "^0.2.5",
3031
"lottie-react": "^2.4.0",
3132
"prism-react-renderer": "^2.4.0",

0 commit comments

Comments
 (0)