Use jekyll-redirect-from instead of our other redirect method
Paul O’Shannessy committed
Aug 13, 2014 at 11:48 UTC
51df0efe343fc4d662abe91bd280cc42149ab426
8 files changed
+10
-14
docs/Gemfile
+3
@@ -6,6 +6,9 @@ gem 'rake'
6
# 2.0 includes sass processing
7
gem 'jekyll', '~>2.0'
8
9
+# Auto redirect pages
10
+gem 'jekyll-redirect-from'
11
+
12
# JSON
13
gem 'json'
14
docs/Gemfile.lock
+3
@@ -33,6 +33,8 @@ GEM
33
coffee-script (~> 2.2)
34
jekyll-gist (1.1.0)
35
jekyll-paginate (1.0.0)
36
+ jekyll-redirect-from (0.5.0)
37
+ jekyll (~> 2.0)
38
jekyll-sass-converter (1.2.0)
39
sass (~> 3.2)
40
jekyll-watch (1.1.0)
@@ -73,6 +75,7 @@ PLATFORMS
75
76
DEPENDENCIES
77
jekyll (~> 2.0)
78
+ jekyll-redirect-from
79
json
80
rake
81
rb-fsevent
docs/_config.yml
+2
@@ -32,4 +32,6 @@ redcarpet:
32
sass:
33
style: :compressed
34
sass_dir: _css
35
+gems:
36
+- jekyll-redirect-from
37
react_version: 0.11.1
docs/_layouts/redirect.html
deleted
-6
@@ -1,6 +0,0 @@
1
-<html>
2
-<head>
3
- <meta http-equiv="refresh" content="0; {{ page.destination }}">
4
-</head>
5
-<body></body>
6
-</html>
docs/docs/getting-started.md
+1
@@ -2,6 +2,7 @@
2
id: getting-started
3
title: Getting Started
4
next: tutorial.html
5
+redirect_from: "docs/index.html"
6
---
7
8
## JSFiddle
docs/docs/index.html
deleted
-4
@@ -1,4 +0,0 @@
1
----
2
-layout: redirect
3
-destination: getting-started.html
4
----
docs/docs/ref-01-top-level-api.md
+1
@@ -3,6 +3,7 @@ id: top-level-api
3
title: Top-Level API
4
permalink: top-level-api.html
5
next: component-api.html
6
+redirect_from: "/docs/reference.html"
7
---
8
9
## React
docs/docs/reference.html
deleted
-4
@@ -1,4 +0,0 @@
1
----
2
-layout: redirect
3
-destination: top-level-api.html
4
----