Permalink
Browse files

Redirect from old status page

This page was obsoleted by #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!
  • Loading branch information...
1 parent d32bc7b commit 86a8b26613976173df66db31c422ba3ceb00aff2 @ethanresnick ethanresnick committed Nov 10, 2015
Showing with 13 additions and 19 deletions.
  1. +1 −0 Gemfile
  2. +1 −1 Rakefile
  3. +10 −1 _config.yml
  4. +1 −0 _format/index.md
  5. +0 −17 status/index.md
View
@@ -10,3 +10,4 @@ gem "compass", "~> 1.0"
gem "sass", "~> 3.4"
gem "launchy", "~> 2.3"
gem "redcard", "~> 1.0"
+gem "jekyll-redirect-from", "~> 0.8.0"
View
@@ -2,7 +2,7 @@ require 'redcard/1.9'
def preview(browser=false)
pids = [
- Process.spawn("bundle exec jekyll serve --watch"),
+ Process.spawn("bundle exec jekyll serve"),
Process.spawn("bundle exec scss --compass --watch stylesheets/")
]
View
@@ -1,5 +1,5 @@
url: http://jsonapi.org
-safe: true
+
lsi: false
source: .
destination: ./public
@@ -33,6 +33,15 @@ defaults:
latest_version: 1.0
+
+# `safe `must be set false for jekyll-redirect-from
+# to run in development. (Github Pages will override
+# `safe` to be true on deploy, but it makes an
+# exception for jekyll-redirect from.)
+safe: false
+gems:
+ - jekyll-redirect-from
+
navigation:
- title: JSON API
url: /
View
@@ -1,5 +1,6 @@
---
is_latest_version: true
+redirect_from: /status/
---
{% for spec_draft in site.format %}
{% if spec_draft.version == site.latest_version and spec_draft.path contains 'index' %}
View
@@ -1,17 +0,0 @@
----
-layout: page
-title: "JSON API: Specification Status"
----
-
-**The JSON API specification has reached version 1.0.**
-
-The [base specification](/format/) should be considered stable. It will
-remain backwards compatible using a _never remove, only add_ strategy.
-
-Some work related to this specification, such as [extensions](/extensions/),
-is still experimental and should be considered a work in progress.
-
-This entire site, including the specification itself, is managed at JSON
-API's [GitHub repository](https://github.com/json-api/json-api). Please feel
-free to suggest changes or let us know if you write an implementation by filing
-an issue or pull request.

0 comments on commit 86a8b26

Please sign in to comment.