Skip to content

Instantly share code, notes, and snippets.

@danvine
Created April 16, 2014 22:55
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save danvine/ed189c11195a5a2e8530 to your computer and use it in GitHub Desktop.
Preview your api blueprint in apiary 3 column view
#!/usr/bin/env bash
# Be sure to install the apiary gem; https://github.com/apiaryio/apiary-client
# gem install apiary
# You'll need to get a token here; https://login.apiary.io/tokens
APIARY_API_KEY=
APINAME=
apiary publish --path $APINAME.md --api-name $APINAME
if [ $? -eq 0 ]; then
open http://docs.$APINAME.apiary.io/?3ColumnDocumentation=1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment