mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 22:37:14 +08:00
Revert navigation redirect.
This commit is contained in:
@@ -4,7 +4,7 @@ title: JavaScript Environment
|
||||
layout: docs
|
||||
category: Guides
|
||||
permalink: docs/javascript-environment.html
|
||||
next: navigation
|
||||
next: navigator-comparison
|
||||
---
|
||||
|
||||
## JavaScript Runtime
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
---
|
||||
id: navigation
|
||||
id: navigator-comparison
|
||||
title: Navigation
|
||||
layout: docs
|
||||
category: Guides
|
||||
permalink: docs/navigation.html
|
||||
permalink: docs/navigator-comparison.html
|
||||
next: performance
|
||||
---
|
||||
|
||||
@@ -4,20 +4,11 @@
|
||||
"gh-pages": "node publish-gh-pages.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"babel-core": "^6.6.4",
|
||||
"babel-plugin-external-helpers": "^6.5.0",
|
||||
"babel-polyfill": "^6.6.1",
|
||||
"babel-preset-react-native": "~1.6.0",
|
||||
"babel-register": "^6.6.0",
|
||||
"babel-types": "^6.6.4",
|
||||
"bluebird": "^2.9.21",
|
||||
"connect": "2.8.3",
|
||||
"connect-redirection": "0.0.1",
|
||||
"deep-assign": "^2.0.0",
|
||||
"esprima-fb": "15001.1001.0-dev-harmony-fb",
|
||||
"fs.extra": "1.3.2",
|
||||
"glob": "6.0.4",
|
||||
"jsdoc-api": "^1.1.0",
|
||||
"jstransform": "11.0.3",
|
||||
"mkdirp": "^0.5.1",
|
||||
"optimist": "0.6.0",
|
||||
@@ -25,6 +16,14 @@
|
||||
"react-docgen": "^2.9.0",
|
||||
"react-page-middleware": "git://github.com/facebook/react-page-middleware.git",
|
||||
"request": "^2.69.0",
|
||||
"semver-compare": "^1.0.0"
|
||||
"semver-compare": "^1.0.0",
|
||||
"babel-core": "^6.6.4",
|
||||
"babel-plugin-external-helpers": "^6.5.0",
|
||||
"babel-polyfill": "^6.6.1",
|
||||
"babel-preset-react-native": "~1.6.0",
|
||||
"babel-register": "^6.6.0",
|
||||
"babel-types": "^6.6.4",
|
||||
"jsdoc-api": "^1.1.0",
|
||||
"deep-assign": "^2.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@ var optimist = require('optimist');
|
||||
var path = require('path');
|
||||
var reactMiddleware = require('react-page-middleware');
|
||||
var convert = require('./convert.js');
|
||||
var redirect = require('connect-redirection');
|
||||
|
||||
var argv = optimist.argv;
|
||||
|
||||
@@ -43,13 +42,7 @@ var buildOptions = {
|
||||
};
|
||||
|
||||
var app = connect()
|
||||
.use(redirect())
|
||||
.use(function(req, res, next) {
|
||||
// Handle redirects
|
||||
if (req.url === '/react-native/docs/navigator-comparison.html') {
|
||||
res.redirect('/react-native/docs/navigation.html');
|
||||
}
|
||||
|
||||
// convert all the md files on every request. This is not optimal
|
||||
// but fast enough that we don't really need to care right now.
|
||||
if (!server.noconvert && req.url.match(/\.html|\/$/)) {
|
||||
|
||||
Reference in New Issue
Block a user