diff options
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 |
commit | 61b72153d4379453bdb09186ed191b856ca8241b (patch) | |
tree | 0d7ba96058e1442297d8b1f0c8ec73dfbf77f887 /docusaurus.config.js | |
parent | 6f565a58c6ebda61bc88b2509f0c473fd793f831 (diff) |
image-zoomを導入
Diffstat (limited to 'docusaurus.config.js')
-rw-r--r-- | docusaurus.config.js | 13 |
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 + } + }, }), }; |