{"id":13565598,"url":"https://github.com/gabrielcsapo/docusaurus-plugin-image-zoom","last_synced_at":"2025-05-16T18:07:25.747Z","repository":{"id":40339980,"uuid":"404117409","full_name":"gabrielcsapo/docusaurus-plugin-image-zoom","owner":"gabrielcsapo","description":"Image Zoom Plugin for Docusaurus 2","archived":false,"fork":false,"pushed_at":"2025-02-07T17:00:58.000Z","size":2823,"stargazers_count":74,"open_issues_count":7,"forks_count":16,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T21:11:15.811Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://gabrielcsapo.github.io/docusaurus-plugin-image-zoom/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gabrielcsapo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-07T20:43:25.000Z","updated_at":"2025-03-08T23:24:50.000Z","dependencies_parsed_at":"2023-11-08T04:09:25.007Z","dependency_job_id":"e02bf20f-b3fa-4108-8d58-69ac904ef3ef","html_url":"https://github.com/gabrielcsapo/docusaurus-plugin-image-zoom","commit_stats":{"total_commits":32,"total_committers":6,"mean_commits":5.333333333333333,"dds":0.46875,"last_synced_commit":"c5c863377f27b1ac200081cf760b7e162d43b2b2"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielcsapo%2Fdocusaurus-plugin-image-zoom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielcsapo%2Fdocusaurus-plugin-image-zoom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielcsapo%2Fdocusaurus-plugin-image-zoom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielcsapo%2Fdocusaurus-plugin-image-zoom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabrielcsapo","download_url":"https://codeload.github.com/gabrielcsapo/docusaurus-plugin-image-zoom/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248601064,"owners_count":21131607,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T13:01:50.901Z","updated_at":"2025-04-12T16:47:58.450Z","avatar_url":"https://github.com/gabrielcsapo.png","language":"JavaScript","funding_links":[],"categories":["Plugins","JavaScript"],"sub_categories":["Media display"],"readme":"# docusaurus-plugin-image-zoom\n\n\u003e Docusaurus plugin to utilize [`medium-zoom`](https://www.npmjs.com/package/medium-zoom) in your projects easily!\n\n## Install\n\n```shell\nnpm install docusaurus-plugin-image-zoom\n```\n\n## Usage\n\nUpdate `docusaurus.config.js` to enable the plugin and include its default configuration:\n\n```js\n  const config = {\n    // ...other config\n    \n    plugins: [\n      'docusaurus-plugin-image-zoom', // can also just be 'image-zoom'\n      // ...other plugins\n    ],\n    \n    themeConfig: {\n      // ...other themeConfig\n      \n      zoom: {\n        selector: '.markdown \u003e img',\n        background: {\n          light: 'rgb(255, 255, 255)',\n          dark: 'rgb(50, 50, 50)'\n        },\n        config: {\n          // options you can specify via https://github.com/francoischalifour/medium-zoom#usage\n        }\n      }\n    },\n  }\n  \n  module.exports = config;\n```\n\n## Configuration\n\nThis plugin allows you to configure the following options:\n\n| Option        | Description                                                                                      | Default Value                                                                                         |\n|---------------|--------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|\n| `selector`    | (optional) The selector to use for the images to zoom.                                          | `.markdown img`                                                                                      |\n| `background`  | (optional) The background color to use for the zoomed image.                                     | `{ light: 'rgb(255, 255, 255)', dark: 'rgb(50, 50, 50)' }`                                           |\n| `config`      | (optional) The configuration object to pass to `medium-zoom`.                                   | `{}`                                                                                                 |\n\nExample usage in `docusaurus.config.js`:\n\n```js\n  themeConfig: {\n    zoom: {\n      selector: '.markdown :not(em) \u003e img',\n      background: {\n        light: 'rgb(255, 255, 255)',\n        dark: 'rgb(50, 50, 50)'\n      },\n      config: {\n        // options you can specify via https://github.com/francoischalifour/medium-zoom#usage\n      }\n    }\n  },\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielcsapo%2Fdocusaurus-plugin-image-zoom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrielcsapo%2Fdocusaurus-plugin-image-zoom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielcsapo%2Fdocusaurus-plugin-image-zoom/lists"}