Skip to content

Commit 86a8b26

Browse files
committed
Redirect from old status page
This page was obsoleted by json-api#865 and is no longer linked to from anywhere, so this commit replaces it with a simple redirect. The changes to the pygments setting in _config.yml reflects changes to Jekyll in 2.4. The removal of the watch flag in the rakefile just a convenience: watch is already on by default in the version of jekyll we’re now using!
1 parent d32bc7b commit 86a8b26

File tree

5 files changed

+13
-19
lines changed

5 files changed

+13
-19
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ gem "compass", "~> 1.0"
1010
gem "sass", "~> 3.4"
1111
gem "launchy", "~> 2.3"
1212
gem "redcard", "~> 1.0"
13+
gem "jekyll-redirect-from", "~> 0.8.0"

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ require 'redcard/1.9'
22

33
def preview(browser=false)
44
pids = [
5-
Process.spawn("bundle exec jekyll serve --watch"),
5+
Process.spawn("bundle exec jekyll serve"),
66
Process.spawn("bundle exec scss --compass --watch stylesheets/")
77
]
88

_config.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
url: http://jsonapi.org
2-
safe: true
2+
33
lsi: false
44
source: .
55
destination: ./public
@@ -33,6 +33,15 @@ defaults:
3333

3434
latest_version: 1.0
3535

36+
37+
# `safe `must be set false for jekyll-redirect-from
38+
# to run in development. (Github Pages will override
39+
# `safe` to be true on deploy, but it makes an
40+
# exception for jekyll-redirect from.)
41+
safe: false
42+
gems:
43+
- jekyll-redirect-from
44+
3645
navigation:
3746
- title: JSON API
3847
url: /

_format/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
is_latest_version: true
3+
redirect_from: /status/
34
---
45
{% for spec_draft in site.format %}
56
{% if spec_draft.version == site.latest_version and spec_draft.path contains 'index' %}

status/index.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)