diff --git a/Gemfile b/Gemfile index 3aecefa..3744229 100644 --- a/Gemfile +++ b/Gemfile @@ -11,7 +11,7 @@ gem "middleman-syntax" gem 'middleman-gh-pages' # Live-reloading plugin -gem "middleman-livereload", "~> 3.1.0" +gem "middleman-livereload", "~> 3.2.0" gem 'redcarpet', '~> 3.1.1' @@ -23,7 +23,7 @@ platforms :mri_18 do gem "ruby18_source_location" end -gem "rake", "~> 10.1.0" +gem "rake", "~> 10.2.0" gem 'execjs' gem 'therubyracer', :platforms => :ruby \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 995491c..0d2ca36 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -54,11 +54,11 @@ GEM tilt (~> 1.4.1) middleman-gh-pages (0.0.3) rake (> 0.9.3) - middleman-livereload (3.1.1) - em-websocket (>= 0.2.0) - middleman-core (>= 3.0.2) - multi_json (~> 1.0) - rack-livereload + middleman-livereload (3.2.1) + em-websocket (~> 0.5.0) + middleman-core (~> 3.2) + multi_json (~> 1.8.4) + rack-livereload (~> 0.3.15) middleman-sprockets (3.3.1) middleman-core (>= 3.2) sprockets (~> 2.1) @@ -67,13 +67,13 @@ GEM middleman-syntax (2.0.0) middleman-core (~> 3.2) rouge (~> 1.0) - multi_json (1.9.2) + multi_json (1.8.4) rack (1.5.2) rack-livereload (0.3.15) rack rack-test (0.6.2) rack (>= 1.0) - rake (10.1.1) + rake (10.2.2) rb-fsevent (0.9.4) rb-inotify (0.9.3) ffi (>= 0.5.0) @@ -83,7 +83,7 @@ GEM ref (1.0.5) rouge (1.3.3) ruby18_source_location (0.2) - sass (3.2.17) + sass (3.2.18) sprockets (2.12.0) hike (~> 1.2) multi_json (~> 1.0) @@ -97,7 +97,7 @@ GEM therubyracer (0.12.1) libv8 (~> 3.16.14.0) ref - thor (0.18.1) + thor (0.19.1) tilt (1.4.1) uglifier (2.4.0) execjs (>= 0.3.0) @@ -110,9 +110,9 @@ DEPENDENCIES execjs middleman (~> 3.2.0) middleman-gh-pages - middleman-livereload (~> 3.1.0) + middleman-livereload (~> 3.2.0) middleman-syntax - rake (~> 10.1.0) + rake (~> 10.2.0) redcarpet (~> 3.1.1) ruby18_source_location therubyracer diff --git a/README.md b/README.md index 94bc59a..0f9f6be 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ Examples of Slate in the Wild * [Orchestrate.io API docs](https://docs.orchestrate.io/) * [ChaiOne Gameplan API docs](http://chaione.github.io/gameplanb2b/#introduction) +* [Drcaban's Build a Quine tutorial](http://drcabana.github.io/build-a-quine/#introduction) Need Help? Found a bug? -------------------- diff --git a/source/includes/_errors.md b/source/includes/_errors.md new file mode 100644 index 0000000..eeefbb5 --- /dev/null +++ b/source/includes/_errors.md @@ -0,0 +1,20 @@ +# Errors + + + +The Kittn API uses the following error codes: + + +Error Code | Meaning +---------- | ------- +400 | Bad Request -- Your request sucks +401 | Unauthorized -- Your API key is wrong +403 | Forbidden -- The kitten requested is hidden for administrators only +404 | Not Found -- The specified kitten could not be found +405 | Method Not Allowed -- You tried to access a kitten with an invalid method +406 | Not Acceptable -- You requested a format that isn't json +410 | Gone -- The kitten requested has been removed from our servers +418 | I'm a teapot +429 | Too Many Requests -- You're requesting too many kittens! Slown down! +500 | Internal Server Error -- We had a problem with our server. Try again later. +503 | Service Unavailable -- We're temporarially offline for maintanance. Please try again later. \ No newline at end of file diff --git a/source/index.md b/source/index.md index ff37953..6522143 100644 --- a/source/index.md +++ b/source/index.md @@ -7,8 +7,12 @@ language_tabs: - python toc_footers: - - Sign Up for a Developer Key - - Documentation Powered by Slate + - Sign Up for a Developer Key + - Documentation Powered by Slate + +includes: + - errors + --- # Introduction @@ -161,21 +165,3 @@ Parameter | Description --------- | ----------- ID | The ID of the cat to retrieve -# Errors - -The Kittn API uses the following error codes: - - -Error Code | Meaning ----------- | ------- -400 | Bad Request -- Your request sucks -401 | Unauthorized -- Your API key is wrong -403 | Forbidden -- The kitten requested is hidden for administrators only -404 | Not Found -- The specified kitten could not be found -405 | Method Not Allowed -- You tried to access a kitten with an invalid method -406 | Not Acceptable -- You requested a format that isn't json -410 | Gone -- The kitten requested has been removed from our servers -418 | I'm a teapot -429 | Too Many Requests -- You're requesting too many kittens! Slown down! -500 | Internal Server Error -- We had a problem with our server. Try again later. -503 | Service Unavailable -- We're temporarially offline for maintanance. Please try again later. \ No newline at end of file diff --git a/source/layouts/layout.erb b/source/layouts/layout.erb index 7ca0c55..bcceb15 100644 --- a/source/layouts/layout.erb +++ b/source/layouts/layout.erb @@ -26,7 +26,7 @@ under the License. <%= stylesheet_link_tag "screen", media: 'screen' %> <%= stylesheet_link_tag "print", media: 'print' %> - + <%= javascript_include_tag "all" %>