Skip to content

Commit f0c79ba

Browse files
Christine AbernathyFacebook Github Bot 7
authored andcommitted
Bring out prop descriptions, for Flexbox
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
1 parent 34adde9 commit f0c79ba

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

website/server/extractDocs.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,10 @@ function renderStyle(filepath) {
437437
const json = docgen.parse(
438438
fs.readFileSync(filepath),
439439
docgenHelpers.findExportedObject,
440-
[docgen.handlers.propTypeHandler]
440+
[
441+
docgen.handlers.propTypeHandler,
442+
docgen.handlers.propDocBlockHandler,
443+
]
441444
);
442445

443446
// Remove deprecated transform props from docs

0 commit comments

Comments
 (0)