React Docs Markdown
At the moment this is a simple package, that takes the output from react-docgen, and returns it as Markdown. You can then save it to a file, append more content, or whatever you need.
API
docsToMarkdown(api: object, name: string, options: Object)
- api - The output from react-docgen.
- name - Component name to set as page title
- options (Optional)
- excludeKeys
- excludeTypes
- excludeDescription
Example
var fs = ;var docsToMarkdown = ; var md = ; // Use fs to write the markdown to distfs;
Publishing
Use np when publishing a new version to ensure everything is done correctly.