Skip to content
This repository has been archived by the owner on Feb 18, 2019. It is now read-only.

Commit

Permalink
Rename LayoutPropTypes to Flexbox
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeux committed Mar 24, 2015
1 parent 244de92 commit c676e9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions website/layout/AutodocsLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
}
Expand Down
5 changes: 4 additions & 1 deletion website/server/extractDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ function getNameFromPath(filepath) {
while (ext = path.extname(filepath)) {
filepath = path.basename(filepath, ext);
}
if (filepath === 'LayoutPropTypes') {
return 'Flexbox';
}
return filepath;
}

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

0 comments on commit c676e9d

Please sign in to comment.