docusaurus-plugin-copy

0.1.1 • Public • Published

docusaurus-plugin-copy

Copy assets from source tree to the same path in the output directory.

Installation

yarn add docusaurus-plugin-copy

Modify your docusaurus.config.js

module.exports = {
  ...
+ plugins: [
+   ['docusaurus-plugin-copy', {
+     path: 'src/docs',
+     context: 'src',
+     include: '**/*.{png,jpg,jpeg,svg}'
+   }]
+ ],
  ...
}

Options

Name Type Default Description
path {String} docs Input path.
include {String} **/*.{png,jpg,jpeg,svg} Glob or pattern of the files to copy.
context {String} '' A path that determines how to interpret the defined path from where the assets are copied.

Package Sidebar

Install

npm i docusaurus-plugin-copy

Weekly Downloads

409

Version

0.1.1

License

MIT

Unpacked Size

3.03 kB

Total Files

3

Last publish

Collaborators

  • rlamana