Rename LayoutPropTypes to Flexbox

This commit is contained in:
Christopher Chedeau 2015-03-23 15:22:47 -07:00
parent 244de92486
commit c676e9dccc
2 changed files with 5 additions and 1 deletions

View File

@ -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>;
}

View File

@ -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])) :