Make the api docs build on master automatically

Should this be `"${TRAVIS_PULL_REQUEST}"` and `"${TRAVIS_BRANCH}"`?