aboutsummaryrefslogtreecommitdiff
path: root/docusaurus.config.js
diff options
context:
space:
mode:
author安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com>2024-02-01 22:56:03 +0900
committer安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com>2024-02-01 22:56:03 +0900
commit61b72153d4379453bdb09186ed191b856ca8241b (patch)
tree0d7ba96058e1442297d8b1f0c8ec73dfbf77f887 /docusaurus.config.js
parent6f565a58c6ebda61bc88b2509f0c473fd793f831 (diff)
image-zoomを導入
Diffstat (limited to 'docusaurus.config.js')
-rw-r--r--docusaurus.config.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 570112a1..ab11d4ee 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -39,6 +39,9 @@ const config = {
themes: [
'@docusaurus/theme-mermaid',
],
+ plugins: [
+ 'docusaurus-plugin-image-zoom',
+ ],
markdown: {
mermaid: true,
@@ -206,6 +209,16 @@ const config = {
// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: 'search',
},
+ zoom: {
+ selector: '.markdown img',
+ background: {
+ light: 'rgb(255, 255, 255)',
+ dark: 'rgb(50, 50, 50)'
+ },
+ config: {
+ // options you can specify via https://github.com/francoischalifour/medium-zoom#usage
+ }
+ },
}),
};