Skip to content

Commit

Permalink
docs: add zoom functionality on images (#2403)
Browse files Browse the repository at this point in the history
* Add zoom functionality on images

* Fixes in zooming images

* yarn.lock issue fix
  • Loading branch information
aniketh-varma authored Nov 1, 2022
1 parent 7fdced0 commit 096425f
Show file tree
Hide file tree
Showing 6 changed files with 35,866 additions and 2,630 deletions.
Binary file modified www/docs/.yarn/install-state.gz
Binary file not shown.
10 changes: 9 additions & 1 deletion www/docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ const config = {
{
apiKey: process.env.SEGMENT_API_KEY || "temp"
}
]
],
require.resolve("docusaurus-plugin-image-zoom")
],
themeConfig: {
colorMode: {
Expand All @@ -54,6 +55,13 @@ const config = {
theme: require("prism-react-renderer/themes/vsDark"),
darkTheme: require("prism-react-renderer/themes/vsDark"),
},
zoom: {
selector: '.markdown img',
background: {
light: 'rgb(255, 255, 255)',
dark: 'rgb(50, 50, 50)'
}
},
navbar: {
hideOnScroll: true,
logo: {
Expand Down
Loading

0 comments on commit 096425f

Please sign in to comment.