From 4ff1a70d4eda525c5db59bc065ff1b6163ca6b5b Mon Sep 17 00:00:00 2001 From: Hector Ramos Date: Wed, 26 Apr 2017 20:20:03 -0700 Subject: [PATCH] Remove examples from API/Components Summary: These examples used to be part of the UIExplorer app, which will be renamed to RNTester in #13606. These bits of code have not been treated as examples for a long time, and are actually part of our testing infra. Let's remove them altogether from the API/Components docs. Closes https://github.com/facebook/react-native/pull/13664 Differential Revision: D4960725 Pulled By: hramos fbshipit-source-id: a4ec19b81d992aff89c0c93e35a1b80fbbd5e454 --- website/layout/AutodocsLayout.js | 36 -------------------- website/server/extractDocs.js | 57 -------------------------------- 2 files changed, 93 deletions(-) diff --git a/website/layout/AutodocsLayout.js b/website/layout/AutodocsLayout.js index 12e954282f7c6d..3ff6e7dbe0dd53 100644 --- a/website/layout/AutodocsLayout.js +++ b/website/layout/AutodocsLayout.js @@ -813,41 +813,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); @@ -867,7 +832,6 @@ var Autodocs = React.createClass({ {content}