Use jekyll-redirect-from instead of our other redirect method

This commit is contained in:
Paul O’Shannessy
2014-08-13 11:48:09 -07:00
parent 2865e4a1c8
commit 82a992835c
8 changed files with 10 additions and 14 deletions

View File

@@ -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'

View File

@@ -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

View File

@@ -32,4 +32,6 @@ redcarpet:
sass:
style: :compressed
sass_dir: _css
gems:
- jekyll-redirect-from
react_version: 0.11.1

View File

@@ -1,6 +0,0 @@
<html>
<head>
<meta http-equiv="refresh" content="0; {{ page.destination }}">
</head>
<body></body>
</html>

View File

@@ -2,6 +2,7 @@
id: getting-started
title: Getting Started
next: tutorial.html
redirect_from: "docs/index.html"
---
## JSFiddle

View File

@@ -1,4 +0,0 @@
---
layout: redirect
destination: getting-started.html
---

View File

@@ -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

View File

@@ -1,4 +0,0 @@
---
layout: redirect
destination: top-level-api.html
---