Skip to content

Commit

Permalink
Update docs (#481, #485, #486)
Browse files Browse the repository at this point in the history
* updated `codebase.md` (#481)
* updated `roadmap.md` (#486)
* removed generated api files for v0.5 (#485)
* removed migration guide for v0.6 (#485)
* added logic for api generation (#485)
 * `@ignore` in the jsdoc will ignore the prop generation through `react-docgen`
  • Loading branch information
pradeepnschrodinger committed Sep 23, 2019
1 parent b7e94e4 commit df594c6
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 800 deletions.
8 changes: 8 additions & 0 deletions build_helpers/react_documentation/generateMarkdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,15 @@ function generatePropDefaultValue(value) {
return 'defaultValue: `' + value.value + '`\n';
}

function shouldIgnoreProp(prop) {
return (prop.description || '').includes('@ignore')
}

function generateProp(propName, prop) {
if (shouldIgnoreProp(prop)) {
return '';
}

return (
'### `' + propName + '`' + (prop.required ? ' (required)' : '') + '\n' +
'\n' +
Expand Down
189 changes: 0 additions & 189 deletions docs/api-v0.5/ColumnAPI.md

This file was deleted.

55 changes: 0 additions & 55 deletions docs/api-v0.5/ColumnGroupAPI.md

This file was deleted.

Loading

0 comments on commit df594c6

Please sign in to comment.