Skip to content

Commit

Permalink
Add branch whitelist for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
leokoppel committed Oct 20, 2018
1 parent e74bedb commit d0fd696
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/ci/ci_make_docs.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ set -e # exit on first error
: ${DOCS_BUILD_DIR:=build}

# Build docs for all tagged versions
# Always build docs on the current branch, though we only deploy from master
sphinx-versioning build -r $TRAVIS_BRANCH docs $DOCS_BUILD_DIR -- -W
# Always build docs on the current branch, though we only deploy from some builds
# Build docs for: master, develop, current branch, version tags
sphinx-versioning build -r $TRAVIS_BRANCH --whitelist-branches ^${TRAVIS_BRANCH}$ \
--whitelist-branches ^develop$ --whitelist-branches ^master$ --whitelist-tags ^[0-9] \
docs $DOCS_BUILD_DIR -- -W

# Add .nojekyll to stop GitHub Pages from excluding underscore-prefixed files
touch $DOCS_BUILD_DIR/.nojekyll
Expand Down

0 comments on commit d0fd696

Please sign in to comment.