Commit Graph

6 Commits

Author SHA1 Message Date
Daniel Büchele
640dee6645 auto generated UI docs
Summary:
Using `react-docgen` to automatically generate docs for our UI components.
React-docgen parses the files in `components/ui` and using comments and flowtypes to generate structured information about the UI components.

For higher-order-components `react-docgen` is not able to get the information. As we are using HOC often as part of emotion's styled-components, I added a custom parser for HOCs. Using babel/parser I am parsing the components and using their doc-comments to generate the structured description.

Then, the description generated by react-docgen and my custom parser is used to generate markdown which is added to the `ui-components.md` file of our docs.

Plus: Added some styling around the documentation of props, mostly table styles.

Reviewed By: jknoxville

Differential Revision: D12896110

fbshipit-source-id: 1337c924c06e10a5d3aa752579428fd2cc7b4743
2018-11-05 03:12:23 -08:00
Pascal Hartig
5e0271cfc3 Add SVG mascot exports
Summary:
It's easier to find when they're in the repo. Exported them
from the AI template.

Reviewed By: priteshrnandgaonkar

Differential Revision: D9789825

fbshipit-source-id: ca717d130495842dcab4d06e02986d3df598dbe6
2018-09-13 08:58:03 -07:00
Pascal Hartig
3abe33af14 Flip the Flipper tooltip
Summary: Fix a small issue we had with our mascot.

Reviewed By: danielbuechele

Differential Revision: D9180345

fbshipit-source-id: de1c34768b4f75202d78bd4404798a7549aa0457
2018-08-06 14:11:54 -07:00
Daniel Büchele
7a82d56eb6 fixing links on website
Summary:
fixing broken links for:
- Twitter account
- App download
- FlipperKit image on landing page

Reviewed By: passy

Differential Revision: D9131794

fbshipit-source-id: 0e7db0ebd57757684571f0325543c35ce3ba9bec
2018-08-02 06:12:31 -07:00
Daniel Buchele
f7d487dd76 fbshipit-source-id: 2cd940396d650342920b28835f6e672febe6b55c 2018-06-12 03:39:09 -07:00
Daniel Büchele
fbbf8cf16b Initial commit 🎉
fbshipit-source-id: b6fc29740c6875d2e78953b8a7123890a67930f2
Co-authored-by: Sebastian McKenzie <sebmck@fb.com>
Co-authored-by: John Knox <jknox@fb.com>
Co-authored-by: Emil Sjölander <emilsj@fb.com>
Co-authored-by: Pritesh Nandgaonkar <prit91@fb.com>
2018-06-01 11:03:58 +01:00