1.0.8 • Published 6 months ago

vitepress-plugin-dox-transformer v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

  1. Configure your VitePress project.
  2. 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").
  3. 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.

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago