TypeScript documentation generator on steroids 💉. MicroDocgen is built on top of typedoc to leverage its power and add more features.
- Static site generation
- More options
- CLI
$ npm install micro-docgen
import { createDocumentation } from 'micro-docgen';
await createDocumentation({
// source files
input: ['src'],
// output directory
output: 'docs',
// tsconfig path
tsconfigPath: './tsconfig.json',
// to generate markdown files
markdown: true,
// to generate json file
jsonName: 'docs.json',
// include custom files such as readme
custom: [...]
});
You need to have ./micro-docgen.json
file in your project root.
{
"input": ["src"],
"output": "docs",
"tsconfigPath": "./tsconfig.json",
"markdown": true,
"jsonName": "docs.json"
}
Then run:
$ docgen
or
$ micro-docgen