This repository contains the source for the website of the Beeminder API Reference https://api.beeminder.com.
- More prominent link to Beeminder
- [for bee] Possibly update links to api in beeminder/beeminder to have target=blank
If you're working on building something with our API and you run into confusion, we'd love to hear about it! If something's not clear in the docs, or something's not working as you expect it to, it might be us, not you! If you do find something that needs clarification or is just plain wrong, we'd love a pull request with fixes or edits.
You're going to need:
- Linux or OS X — Windows may work, but is unsupported.
- Ruby, version 2.2.5 or newer
- Bundler — If Ruby is already installed, but the
bundle
command doesn't work, just rungem install bundler
in a terminal.
- Fork this repository on Github.
- Clone your forked repository (not our original one) to your hard drive with
git clone https://github.com/YOURUSERNAME/apidocs.git
cd apidocs
- 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!
Once you've made your changes, you can submit a pull request to beeminder/apidocs!
(For beeminder/apidocs owners)
- Commit changes and push to the master branch at beeminder/apidocs (or accept / merge pull request)
- Run ./deploy.sh
- Do not touch the gh-pages branch
- Double check if api.beeminder.com is still available.[1]
[1] There was a problem where the custom domain setting was getting unset every time we deployed. It looks like I've successfully fixed it now, but if you check after deploy and the subdomain is broken (e.g. you get redirect to the github pages url) then go quickly into https://github.com/beeminder/apidocs/settings and re-add "api.beeminder.com" under 'Custom domain').
Submit an issue, or email [email protected] if you need any help.
The Beeminder api docs are created with Slate. Check it out at lord.github.io/slate.