From a5d2f91bef77d4fa6f54d7a64419dfa78c9d59a1 Mon Sep 17 00:00:00 2001 From: Hector Ramos Date: Tue, 25 Apr 2017 16:14:59 -0400 Subject: [PATCH] Remove examples from API/Components --- website/layout/AutodocsLayout.js | 37 --------------------- website/server/extractDocs.js | 57 -------------------------------- 2 files changed, 94 deletions(-) diff --git a/website/layout/AutodocsLayout.js b/website/layout/AutodocsLayout.js index 07ec34d0845ad2..519b9cf446fec6 100644 --- a/website/layout/AutodocsLayout.js +++ b/website/layout/AutodocsLayout.js @@ -863,42 +863,6 @@ var Autodocs = React.createClass({ ); }, - renderExample: function(example, metadata) { - if (!example) { - return; - } - - return ( -
- -
- - {example.content.replace(/^[\s\S]*?\*\//, '').trim()} - - -
-
- ); - }, - - renderExamples: function(docs, metadata) { - if (!docs.examples || !docs.examples.length) { - return; - } - - return ( -
- {(docs.examples.length > 1) ?
Examples
: null} - {docs.examples.map(example => this.renderExample(example, metadata))} -
- ); - }, - render: function() { var metadata = this.props.metadata; var docs = JSON.parse(this.props.children); @@ -918,7 +882,6 @@ var Autodocs = React.createClass({ {content}