Skip to content

Commit

Permalink
Fix test when global.rst include file in docs is used.
Browse files Browse the repository at this point in the history
Related to: debops/docs#155
  • Loading branch information
ypid committed Jul 15, 2016
1 parent 3357846 commit 69f9876
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions defaults.conf
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ assert_docs () {
cd "${TRAVIS_BUILD_DIR}/docs" || exit 1
test -d _static || mkdir -p _static
test -f ../defaults/main.yml && yaml2rst ../defaults/main.yml defaults.rst --strip-regex '\s*(:?\[{3}|\]{3})\d?$'

# Support global link definitions.
if [[ -d "${TRAVIS_BUILD_DIR}/docs/includes" ]]
then
rm -rf "${TRAVIS_BUILD_DIR}/docs/includes/global.rst"
wget https://raw.githubusercontent.com/debops/docs/master/docs/includes/global.rst -O "${TRAVIS_BUILD_DIR}/docs/includes/global.rst"
fi

sphinx-build -n -W -b html -d _build/doctrees . _build/html
rc=$?
cd - > /dev/null || exit 1
Expand Down

0 comments on commit 69f9876

Please sign in to comment.