1.0.8 • Published 6 months ago
vitepress-plugin-dox-transformer v1.0.8
VitePress Plugin - Dox Transformer
A VitePress plugin for transforming files using the Dox Transformer.
Features
- Transforms specified files using the Dox Transformer during VitePress builds.
- Monitors file changes and automatically updates transformed files.
Installation
Install the plugin via npm:
npm install vitepress-plugin-dox-transformer --save-dev
Usage
- Configure your VitePress project.
Create a configuration object with the following options:
transformer
: The name of the Dox Transformer to use.fileGlob
: The glob pattern to match files for transformation.fileChangeExtension
(optional): The extension of changed files to trigger transformation (default is ".vue").outputDirectory
: The directory where transformed files will be saved.outputFilesExtension
(optional): The extension for the transformed files (default is ".md").
Import and use the plugin in your VitePress configuration:
import VitepressPluginDoxTransformer from 'vitepress-plugin-dox-transformer';
export default defineConfig{
...
vite: {
plugins: [
VitepressPluginDoxTransformer({
transformer: 'my-transformer',
fileGlob: 'my-files-to-transform/**/*.vue',
outputDirectory: 'docs',
}),
],
}
};
License
This project is licensed under the MIT License. See the LICENSE file for details.