From c676e9dccc383daf959c7443c0f0574a6774400c Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Mon, 23 Mar 2015 15:22:47 -0700 Subject: [PATCH] Rename LayoutPropTypes to Flexbox --- website/layout/AutodocsLayout.js | 1 + website/server/extractDocs.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/website/layout/AutodocsLayout.js b/website/layout/AutodocsLayout.js index 9ee1d01f4d97d9..bd54f0e6003f6f 100644 --- a/website/layout/AutodocsLayout.js +++ b/website/layout/AutodocsLayout.js @@ -100,6 +100,7 @@ var ComponentDoc = React.createClass({ link = {name}#style...; } else { + name = 'Flexbox'; link = {name}...; } diff --git a/website/server/extractDocs.js b/website/server/extractDocs.js index d5a44f6fe1c301..59088d7a2c5886 100644 --- a/website/server/extractDocs.js +++ b/website/server/extractDocs.js @@ -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])) :