mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
Use jekyll-redirect-from instead of our other redirect method
This commit is contained in:
3
Gemfile
3
Gemfile
@@ -6,6 +6,9 @@ gem 'rake'
|
||||
# 2.0 includes sass processing
|
||||
gem 'jekyll', '~>2.0'
|
||||
|
||||
# Auto redirect pages
|
||||
gem 'jekyll-redirect-from'
|
||||
|
||||
# JSON
|
||||
gem 'json'
|
||||
|
||||
|
||||
@@ -33,6 +33,8 @@ GEM
|
||||
coffee-script (~> 2.2)
|
||||
jekyll-gist (1.1.0)
|
||||
jekyll-paginate (1.0.0)
|
||||
jekyll-redirect-from (0.5.0)
|
||||
jekyll (~> 2.0)
|
||||
jekyll-sass-converter (1.2.0)
|
||||
sass (~> 3.2)
|
||||
jekyll-watch (1.1.0)
|
||||
@@ -73,6 +75,7 @@ PLATFORMS
|
||||
|
||||
DEPENDENCIES
|
||||
jekyll (~> 2.0)
|
||||
jekyll-redirect-from
|
||||
json
|
||||
rake
|
||||
rb-fsevent
|
||||
|
||||
@@ -32,4 +32,6 @@ redcarpet:
|
||||
sass:
|
||||
style: :compressed
|
||||
sass_dir: _css
|
||||
gems:
|
||||
- jekyll-redirect-from
|
||||
react_version: 0.11.1
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0; {{ page.destination }}">
|
||||
</head>
|
||||
<body></body>
|
||||
</html>
|
||||
@@ -2,6 +2,7 @@
|
||||
id: getting-started
|
||||
title: Getting Started
|
||||
next: tutorial.html
|
||||
redirect_from: "docs/index.html"
|
||||
---
|
||||
|
||||
## JSFiddle
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
---
|
||||
layout: redirect
|
||||
destination: getting-started.html
|
||||
---
|
||||
@@ -3,6 +3,7 @@ id: top-level-api
|
||||
title: Top-Level API
|
||||
permalink: top-level-api.html
|
||||
next: component-api.html
|
||||
redirect_from: "/docs/reference.html"
|
||||
---
|
||||
|
||||
## React
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
---
|
||||
layout: redirect
|
||||
destination: top-level-api.html
|
||||
---
|
||||
Reference in New Issue
Block a user