Slate helps you create beautiful API documentation. Think of it as an intelligent, responsive documentation template for your API.
The example above was created with Slate. Check it out at tripit.github.io/slate.
- Make changes on
master
mainly tosource/index.md
orincludes/
- Commit and push yo' codez
- Make sure you have checked out
gh-pages
branch - On
master
runrake publish
You're going to need:
- Linux or OS X — Windows may work, but is unsupported.
- Ruby, version 1.9.3 or newer
- Bundler — If Ruby is already installed, but the
bundle
command doesn't work, just rungem install bundler
in a terminal.
- Clone this repository to your hard drive
cd web-api-docs
- Install all dependencies:
bundle install
- Start the test server:
bundle exec middleman server
You can now see the docs at http://localhost:4567. Whoa! That was fast!
Now that Slate is all set up your machine, you'll probably want to learn more about editing Slate markdown, or how to publish your docs.