@m860/react-docgen-markdown

1.0.1 • Public • Published

react-docgen-markdown

生成react组件的markdown文档

npm version npm license npm download npm download

Build Status Coverage Status

Install

$ npm i @m860/react-docgen-markdown -D

Simple Usage

$ react-docgen-markdown build test/components --output test/doc
$ react-docgen-markdown readme ...

example doc

将文档添加到README.md中

  • 先在README.md文件中表示文档的插入位置,如:
<!--begin react doc markdown-->
<!--end react doc markdown-->
  • 然后运行命令
$ react-docgen-markdown readme test/README.md --src test/doc --table-content

example readme

Readme

Keywords

Package Sidebar

Install

npm i @m860/react-docgen-markdown

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

12.5 kB

Total Files

8

Last publish

Collaborators

  • m860