@olton/rollup-plugin-typedoc
v0.2.0
Published
Typedoc compilation as a rollup plugin
Downloads
12
Maintainers
Readme
rollup-plugin-typedoc
This plugin runs Typedoc to generate your API documentation as a step of your Rollup flow.
Setup
npm i @olton/rollup-plugin-typedoc --save-dev
Typedoc is required as peer dependency.
npm i typedoc --save-dev
Usage
import typescript from '@rollup/plugin-typescript';
import typedoc from '@olton/rollup-plugin-typedoc';
// see https://typedoc.org/guides/options/
const options = {
out: './docsDir',
entryPoints: ['./src'],
};
// the plugin reads tsconfig.json, typedoc.json,
// and your custom options (as above) and merges them
export default [
{
input: 'src/index.ts',
plugins: [
typescript(),
typedoc(options)
],
}
];
Note: do not include this plugin for your watch configurations for performance reasons.
License
Copyright © 2023, Serhii Pimenov. Released under the MIT License.