callstack/component-docs

Name: component-docs

Owner: Callstack

Description: ? Simple documentation for your React components

Created: 2016-12-04 10:34:26.0

Updated: 2018-05-12 15:29:21.0

Pushed: 2018-05-12 15:33:26.0

Homepage: null

Size: 545

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

component-docs

styled_with linaria

? Simple documentation for your React components.

Goals
Non-Goals
Installation
install --save-dev component-docs
API

Currently there's no CLI available. You can use the API to generate documentation programmatically.

rt path from 'path';
rt { build } from 'component-docs';

t pages = [
type: 'markdown', file: '../docs/Get Started.md' },
type: 'component', file: '../src/Button.js', }
type: 'component', file: '../src/Calendar.js' },


d({
ges: pages.map(page => ({ ...page, file: path.join(__dirname, page.file) })),
tput: path.join(__dirname, 'pages'),

You can also use the server while actively working on documentation. Just replace build with serve in the above example.

Example

component-docs is used for react-native-paper


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.