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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user