Skip to content

Commit 3a62916

Browse files
authored
Merge pull request #10 from Exlint/EXL-000
style: 🎨 Added zoom to images
2 parents 55c5f68 + 54c2f00 commit 3a62916

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

docusaurus.config.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const config = {
1515
organizationName: 'Exlint.io',
1616
projectName: 'Exlint Docs',
1717

18+
plugins: [require.resolve('docusaurus-plugin-image-zoom')],
19+
1820
presets: [
1921
[
2022
'@docusaurus/preset-classic',
@@ -121,14 +123,12 @@ const config = {
121123
container: 'div',
122124
},
123125
zoom: {
124-
selector: '.markdown img',
125-
config: {
126-
// options you can specify via https://github.com/francoischalifour/medium-zoom#usage
127-
background: {
128-
light: 'rgb(255, 255, 255)',
129-
dark: 'rgb(50, 50, 50)',
130-
},
126+
selector: '.markdown :not(em) > img',
127+
background: {
128+
light: 'rgb(255, 255, 255)',
129+
dark: 'rgb(50, 50, 50)',
131130
},
131+
config: {},
132132
},
133133
}),
134134
};

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@mdx-js/react": "1.6.22",
2424
"commitizen": "^4.2.4",
2525
"cz-vinyl": "^1.3.2",
26+
"docusaurus-plugin-image-zoom": "0.1.1",
2627
"prism-react-renderer": "^1.3.3",
2728
"react": "^17.0.2",
2829
"react-dom": "^17.0.2"

pnpm-lock.yaml

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)