Skip to content

Small loader converting Component definition to react-docgen documentation

Notifications You must be signed in to change notification settings

interviewstreet/hr-docgen-loader-deprecated

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

react-docgen loader for webpack

Usage

var docs = require("!!docgen!./Component.jsx");
// => returns Component.jsx documentation object if Component definition is found

Markdown description

If the description is in markdown you can parse it with marked by adding a query

var docs = require("!!docgen?markdownDescription!./Component.jsx");

NOTE: I use double !! to disable all other loaders. react-docgen cannot gather Component information if the Component has been babeled

License

MIT (http://www.opensource.org/licenses/mit-license.php)

About

Small loader converting Component definition to react-docgen documentation

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%