You can generate documentation a few ways:
- Apiary CLI (recommended)
aglio
- Atom
Apiary CLI comes preloaded when you run docker-compose up
like normal.
Once Docker is running your containers, apiary
runs an Apiary CLI server on port 8081
. You can visit the documentation by visiting localhost:8081
in your browser. Just refresh the page any time you make changes to the documentation file at /blueprint/api.apib
.
Navigate into the /blueprint
directory.
If installing for the first time, run:
docker-compose build
Then start the aglio
service with:
docker-compose up
Now you can generate the docs with our shell script:
./generate
You should be able to view the docs by opening the newly generated index.html
in your browser.
If you're developing with Atom, you can also use the API Blueprint Preview package to preview your blueprint changes in realtime.