Rollup plugin to generate markdown documentation from Vue.js component source files using @vuedoc/md. Version 0.4.0 is current stable; release cadence is sporadic. This plugin allows generating markdown files for each Vue component during the Rollup build, with options for prefix paths, intro/outro text, index generation per directory, and string replacement. It is distinct from other Vue documentation generators in that it integrates directly into the Rollup asset pipeline, outputting markdown files alongside bundled code. Requires rollup >= 1.19.2 and @vuedoc/md as a peer dependency.
npm install rollup-plugin-vuedocNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic rollup.config.js with vuedoc plugin: filters Vue files, sets prefix 'docs', adds intro/outro, generates directory indexes, and replaces placeholders.
To write markdown files to disk, use a plugin like rollup-plugin-copy or set output.emitFiles to true (uncommon) or handle via another build step.
Use a regex that matches the full path, e.g., /\.vue$/ or /src\/components\/.*\.vue$/
Monitor for updates; consider using a dedicated string replacement plugin like rollup-plugin-replace for complex replacements.
Specify a custom index function to control content, or avoid index generation if unused.
Return a string value synchronously; do not use async functions.
Run 'npm install -D @vuedoc/md' or add it to devDependencies.
Change to 'import vuedoc from 'rollup-plugin-vuedoc''
Add rollup-plugin-copy to your plugins and configure it to copy from the virtual directory to your desired output path.
Provide a valid test pattern: vuedoc({ test: /\.vue$/ })