plugin-image-zoom
Version:
This plugin uses the [`medium-zoom`](https://github.com/francoischalifour/medium-zoom) library to allow for zoom in/out on images in your documentation.
19 lines (15 loc) • 430 B
JavaScript
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const path = require('path');
module.exports = function(context, options) {
return {
name: 'docusaurus-plugin-image-zoom',
getClientModules(options) {
return [path.resolve(__dirname, './zoom')];
},
};
};