docs: add zoom functionality on images (#2403)

* Add zoom functionality on images

* Fixes in zooming images

* yarn.lock issue fix
This commit is contained in:
Aniketh Varma
2022-11-01 10:25:08 +02:00
committed by GitHub
parent 7fdced0225
commit 096425f7db
6 changed files with 35859 additions and 2623 deletions
+9 -1
View File
@@ -32,7 +32,8 @@ const config = {
{
apiKey: process.env.SEGMENT_API_KEY || "temp"
}
]
],
require.resolve("docusaurus-plugin-image-zoom")
],
themeConfig: {
colorMode: {
@@ -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: {