From 7f167f2fd2c15665ba12187fdf37f2e71b01b7b9 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Thu, 25 Feb 2016 05:17:38 -0800 Subject: [PATCH 1/4] Notice to the user --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index 837cbb1..85ee2b2 100644 --- a/index.html +++ b/index.html @@ -43,6 +43,7 @@

WP REST API

View Version 2 Documentation

or continue to the Version 1 Documentation.

+

Note: If you activate both v1 and v2 on your website, then v1 will take priority and v2 will be inaccessible.

From 22a08b6a82f076c7022b7aa2a1cf680a3a52ab66 Mon Sep 17 00:00:00 2001 From: Daniel Bachhuber Date: Thu, 25 Feb 2016 05:18:10 -0800 Subject: [PATCH 2/4] Eh, not that important. --- index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/index.html b/index.html index 85ee2b2..837cbb1 100644 --- a/index.html +++ b/index.html @@ -43,7 +43,6 @@

WP REST API

View Version 2 Documentation

or continue to the Version 1 Documentation.

-

Note: If you activate both v1 and v2 on your website, then v1 will take priority and v2 will be inaccessible.

From b1c8c44c8e9f781895cd1335d662c93a0d2d6069 Mon Sep 17 00:00:00 2001 From: Ryan McCue Date: Fri, 23 Sep 2016 11:54:15 -0400 Subject: [PATCH 3/4] Update Gemfile --- Gemfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index 7b98eda..37f5eaa 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,2 @@ -# A sample Gemfile -source "https://rubygems.org" -gem 'github-pages' \ No newline at end of file +source 'https://rubygems.org' +gem 'github-pages', group: :jekyll_plugins From d93a2d74949e5b120c963cd16f0c7a6dfe48d4c8 Mon Sep 17 00:00:00 2001 From: Ryan McCue Date: Fri, 23 Sep 2016 11:54:28 -0400 Subject: [PATCH 4/4] Redirect main page to v2 --- _config.yml | 2 ++ index.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/_config.yml b/_config.yml index aea9b9c..413e2cb 100644 --- a/_config.yml +++ b/_config.yml @@ -5,3 +5,5 @@ markdown: kramdown kramdown: input: GFM line_width: 80 +gems: + - jekyll-redirect-from diff --git a/index.html b/index.html index 837cbb1..5be2320 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,7 @@ --- title: WP REST API Documentation +redirect_to: + - http://v2.wp-api.org/ ---