Skip to content

Commit

Permalink
Bring out prop descriptions, for Flexbox
Browse files Browse the repository at this point in the history
Summary:
For Flexbox API docs would like to tease out the prop descriptions. This PR makes that feasible by exposing the description for style.

**Test plan (required)**

1. Temporarily modified the flexbox source doc: Libraries/StyleSheet/LayoutPropTypes.js to add a description.
2. Checked it out on local webpage: http://localhost:8079/react-native/docs/flexbox.html

![style_prop_descriptions](https://cloud.githubusercontent.com/assets/691109/16321579/866b186e-3952-11e6-823a-2d38132bd553.png)
Closes #8382

Differential Revision: D3478796

Pulled By: lacker

fbshipit-source-id: 49f3b7876ff1ccec9ee837921a78ee0dfb915453
  • Loading branch information
Christine Abernathy authored and Facebook Github Bot 7 committed Jun 23, 2016
1 parent 34adde9 commit f0c79ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/server/extractDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,10 @@ function renderStyle(filepath) {
const json = docgen.parse(
fs.readFileSync(filepath),
docgenHelpers.findExportedObject,
[docgen.handlers.propTypeHandler]
[
docgen.handlers.propTypeHandler,
docgen.handlers.propDocBlockHandler,
]
);

// Remove deprecated transform props from docs
Expand Down

0 comments on commit f0c79ba

Please sign in to comment.