From 61b72153d4379453bdb09186ed191b856ca8241b Mon Sep 17 00:00:00 2001 From: 安竹洋平 <61961825+yasutakeyohei@users.noreply.github.com> Date: Thu, 1 Feb 2024 22:56:03 +0900 Subject: image-zoomを導入 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docusaurus.config.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'docusaurus.config.js') 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 + } + }, }), }; -- cgit v1.2.3-54-g00ecf