Browse Source

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

main
Paul O’Shannessy 11 years ago
parent
commit
82a992835c
  1. 3
      Gemfile
  2. 3
      Gemfile.lock
  3. 2
      _config.yml
  4. 6
      _layouts/redirect.html
  5. 1
      docs/getting-started.md
  6. 4
      docs/index.html
  7. 1
      docs/ref-01-top-level-api.md
  8. 4
      docs/reference.html

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'

3
Gemfile.lock

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

2
_config.yml

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

6
_layouts/redirect.html

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

1
docs/getting-started.md

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

4
docs/index.html

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

1
docs/ref-01-top-level-api.md

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

4
docs/reference.html

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