Highly customizable open source tool for generating component documentation.
Read The Docs | Explore the Demo
You can use directly as command line tool or as a library.
You can use it directly from NPX:
npx components-to-markdown --help
Use @latest
after the script to enforce the latest stable release, example:
npx components-to-markdown@latest --version
Example:
npx components-to-markdown@latest -w -o ./output-path ./components-path
See API documentation for more details.
You can install it as a NPM package:
# with NPM:
npm install components-to-markdown --save-dev
# with Yarn:
yarn add components-to-markdown --dev
And import it:
// comp2mark.js
import { componentsToMarkdown } from 'components-to-markdown';
componentsToMarkdown({
sources: ['./components-path'],
output: './output-path',
});
Then just run your script:
node comp2mark.js
See API documentation for more details.