diff --git a/_config.yml b/_config.yml index 03d70cd..aea9b9c 100644 --- a/_config.yml +++ b/_config.yml @@ -4,4 +4,4 @@ highlighter: pygments markdown: kramdown kramdown: input: GFM - line_width: 80 \ No newline at end of file + line_width: 80 diff --git a/_includes/header.html b/_includes/header.html index 22d0550..80399c9 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -3,7 +3,7 @@
-

WP REST API

+

WP REST API (v1 – Deprecated)

diff --git a/_layouts/guide.html b/_layouts/guide.html index cb998e0..af6a7ac 100644 --- a/_layouts/guide.html +++ b/_layouts/guide.html @@ -1,5 +1,5 @@ --- -title: WP REST API Documentation +title: WP REST API (v1) Documentation - deprecated --- @@ -20,8 +20,8 @@ - - + + {% include header.html %} diff --git a/_layouts/internals.html b/_layouts/internals.html index 4cdfab1..10b2b7d 100644 --- a/_layouts/internals.html +++ b/_layouts/internals.html @@ -1,5 +1,5 @@ --- -title: WP REST API Documentation +title: WP REST API (v1) Documentation - deprecated --- @@ -20,8 +20,8 @@ - - + + {% include header.html %} diff --git a/guides.md b/guides.md index 0e529cb..54852bd 100644 --- a/guides.md +++ b/guides.md @@ -1,5 +1,5 @@ --- -title: WP REST API Documentation +title: WP REST API (v1) Documentation - deprecated layout: guide --- Guides diff --git a/guides/authentication.md b/guides/authentication.md index 87941f3..9f24a7f 100644 --- a/guides/authentication.md +++ b/guides/authentication.md @@ -1,5 +1,5 @@ --- -title: WP REST API Documentation +title: WP REST API (v1) Documentation - deprecated layout: guide --- Authentication diff --git a/index-deprecated.html b/index-deprecated.html new file mode 100644 index 0000000..50ebcfc --- /dev/null +++ b/index-deprecated.html @@ -0,0 +1,107 @@ +--- +title: WP REST API (v1) Documentation - deprecated +--- + + + + + + + + {{ page.title }} + + + + + + + + + + + + + + + + + + + +{% include header.html %} + +
+ +{% include sidebar.html %} + +

This site is for the legacy version (v1) of the API. View Version 2 Documentation

+ +
+
+ +{% include footer.html %} diff --git a/index.html b/index.html index 17717f0..837cbb1 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ --- -title: WP API Documentation +title: WP REST API Documentation --- @@ -10,98 +10,42 @@ {{ page.title }} - - - - - - - - - - - + + -{% include header.html %} + + +
+ +
+ + +
+
{% include sidebar.html %} -

This site is for the legacy version (v1) of the API. View Version 2 Documentation

+ + -
{% include footer.html %} diff --git a/internals.md b/internals.md index 666b2b1..50cdda0 100644 --- a/internals.md +++ b/internals.md @@ -1,5 +1,5 @@ --- -title: WP REST API Documentation +title: WP REST API (v1) Documentation - deprecated layout: internals --- Internals diff --git a/internals/implementation.md b/internals/implementation.md index ea77134..7046097 100644 --- a/internals/implementation.md +++ b/internals/implementation.md @@ -1,5 +1,5 @@ --- -title: WP REST API Documentation +title: WP REST API (v1) Documentation - deprecated layout: internals --- diff --git a/internals/philosophy.md b/internals/philosophy.md index dd4ed8b..9e6a9ce 100644 --- a/internals/philosophy.md +++ b/internals/philosophy.md @@ -1,5 +1,5 @@ --- -title: WP REST API Documentation +title: WP REST API (v1) Documentation - deprecated layout: internals --- diff --git a/internals/release-process.md b/internals/release-process.md index 8e3e27d..06c260f 100644 --- a/internals/release-process.md +++ b/internals/release-process.md @@ -1,5 +1,5 @@ --- -title: WP REST API Documentation +title: WP REST API (v1) Documentation - deprecated layout: internals --- diff --git a/misc.md b/misc.md index cf1046f..23732cf 100644 --- a/misc.md +++ b/misc.md @@ -1,5 +1,5 @@ --- -title: WP REST API Documentation +title: WP REST API (v1) Documentation - deprecated layout: internals --- Miscellaneous diff --git a/misc/comparison.md b/misc/comparison.md index cc606a3..e9ce511 100644 --- a/misc/comparison.md +++ b/misc/comparison.md @@ -1,5 +1,5 @@ --- -title: WP REST API Documentation +title: WP REST API (v1) Documentation - deprecated layout: internals --- # WordPress JSON API Comparison diff --git a/misc/compatibility.md b/misc/compatibility.md index a61a4f3..4ea067d 100644 --- a/misc/compatibility.md +++ b/misc/compatibility.md @@ -1,5 +1,5 @@ --- -title: WP REST API Documentation +title: WP REST API (v1) Documentation - deprecated layout: internals --- Compatibility diff --git a/resources.md b/resources.md index a28f1f2..886ba9b 100644 --- a/resources.md +++ b/resources.md @@ -1,5 +1,5 @@ --- -title: WP REST API Documentation +title: WP REST API (v1) Documentation - deprecated layout: internals --- Resources diff --git a/stylesheets/styles.css b/stylesheets/styles.css index 10481f0..a522936 100644 --- a/stylesheets/styles.css +++ b/stylesheets/styles.css @@ -437,14 +437,13 @@ body.no-literate .content pre > code:hover::-webkit-scrollbar-thumb { font-weight: bold; display: inline-block; padding: 3px 25px; - border: solid 2px #2badad; - -webkit-border-radius: 20px; - border-radius: 20px; + -webkit-border-radius: 3px; + border-radius: 3px; margin-right: 15px; } .button, .button:visited { - background: #2badad; + background: #008CBA; color: #fff; text-shadow: none; } @@ -599,6 +598,9 @@ body.no-literate .content pre > code:hover::-webkit-scrollbar-thumb { .header h1 a:hover { color: #505050; } +.header h1 span { + font-size: 0.78em; +} .header li a { font-size: 0.78em; color: #eff0f1; @@ -608,6 +610,12 @@ body.no-literate .content pre > code:hover::-webkit-scrollbar-thumb { .header li a:hover { color: #6ABCDD; } +.header li a.v2-link { + background: #008CBA; + border-radius: 3px; + text-align: center; +} + @media (min-width: 480px) /* Tablet & Desktop */ { .header h1 { float: left; @@ -838,22 +846,12 @@ code .comment { z-index: 1; } .v2-pointer { - padding: 30px 40px 40px; - max-width: 700px; + padding-top: 3em; + width: 100%; + text-align: center; font-family: Open Sans,sans-serif; } -.v2-pointer p { - padding: 10px; - text-align: center; - // border: 3px solid #2B3D50; - border-radius: 6px; - font-size: 22px; +.v2-pointer .button { + font-size: 2em; + margin: 0 0 1em 0; } -.v2-pointer a { - display: inline-block; - background: #008CBA; - color: #fff; - padding: 1rem 2rem 1.0625rem; - margin: 10px 0px 1.25rem; - border-radius: 3px; -} \ No newline at end of file