Rename LayoutPropTypes to Flexbox
This commit is contained in:
parent
244de92486
commit
c676e9dccc
|
@ -100,6 +100,7 @@ var ComponentDoc = React.createClass({
|
|||
link =
|
||||
<a href={slugify(name) + '.html#style'}>{name}#style...</a>;
|
||||
} else {
|
||||
name = 'Flexbox';
|
||||
link =
|
||||
<a href={slugify(name) + '.html#proptypes'}>{name}...</a>;
|
||||
}
|
||||
|
|
|
@ -19,6 +19,9 @@ function getNameFromPath(filepath) {
|
|||
while (ext = path.extname(filepath)) {
|
||||
filepath = path.basename(filepath, ext);
|
||||
}
|
||||
if (filepath === 'LayoutPropTypes') {
|
||||
return 'Flexbox';
|
||||
}
|
||||
return filepath;
|
||||
}
|
||||
|
||||
|
@ -39,7 +42,7 @@ function componentsToMarkdown(type, json, filepath, i, styles) {
|
|||
'id: ' + slugify(componentName),
|
||||
'title: ' + componentName,
|
||||
'layout: autodocs',
|
||||
'category: ' + type + 's',
|
||||
'category: ' + (type === 'style' ? 'Polyfills' : type + 's'),
|
||||
'permalink: docs/' + slugify(componentName) + '.html',
|
||||
'next: ' + (all[i + 1] ?
|
||||
slugify(getNameFromPath(all[i + 1])) :
|
||||
|
|
Loading…
Reference in New Issue