Skip to content
This repository was archived by the owner on May 8, 2020. It is now read-only.
/ slate Public archive
forked from ringcentral/slate

Beautiful static documentation for your API

License

Notifications You must be signed in to change notification settings

cube-planning/slate

 
 

Repository files navigation

Slate: API Documentation Generator
Build Status

Slate helps you create beautiful, intelligent, responsive API documentation.

Screenshot of Example Documentation created with Slate

The example above was created with Slate. Check it out at lord.github.io/slate.

Getting Started with Slate

Prerequisites

You're going to need:

  • Linux or macOS — Windows may work, but is unsupported.
  • Ruby, version 2.3.1 or newer
  • Bundler — If Ruby is already installed, but the bundle command doesn't work, just run gem install bundler in a terminal.

Getting Set Up

  1. Fork this repository on GitHub.
  2. Clone your forked repository (not our original one) to your hard drive with git clone https://github.com/YOURUSERNAME/slate.git
  3. cd slate
  4. Initialize and start Slate. You can either do this locally, or with Vagrant:
# either run this to run locally
bundle install
bundle exec middleman server

# OR run this to run with vagrant
vagrant up

You can now see the docs at http://localhost:4567. Whoa! That was fast!

Now that Slate is all set up on your machine, you'll probably want to learn more about editing Slate markdown, or how to publish your docs.

If you'd prefer to use Docker, instructions are available in the wiki.

Deployments

Use bundle exec middleman build --clean on your local machine to build the assets. Then upload those assets to S3.

Inside of Docker (note: this no longer seems to work):

bundle exec middleman build --clean
rm -rf source/latest
mv build source/latest

Then upload source/latest/index.html to AWS S3.

About

Beautiful static documentation for your API

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.7%
  • CSS 7.8%
  • Ruby 1.9%
  • Shell 1.5%
  • Other 1.1%