#!/usr/bin/env bash

set -x
set -e

echo "Building docs and checking links with Sphinx"
rm -rf docs/_build
make -C docs html

# Exclude release notes from linkcheck when running in travis.
# Note: we've already rendered these - its safe to remove the unneeded source files.
if [ "$TRAVIS" = true ]; then
  rm -f docs/RELEASE-NOTES.rst
fi
make -C docs linkcheck

echo "Checking grammar and style"
write-good `find docs -name '*.rst'` --passive --so --no-illusion --thereIs --cliches

#!/usr/bin/env bash

set -x
set -e

echo "Building docs and checking links with Sphinx"
rm -rf docs/_build
make -C docs html

echo "Checking grammar and style"
write-good `find docs -name '*.rst'` --passive --so --no-illusion --thereIs --cliches

# Exclude release notes from linkcheck when running in travis.
# Note: we've already rendered these - its safe to remove the unneeded source files.
if [ "$TRAVIS" = true ]; then
  rm -f docs/RELEASE-NOTES.rst
fi
make -C docs linkcheck

Enforce grammar and style check on all docs files for travis builds
Enforce grammar and style check on all docs files for travis builds

Problem:
The grammar and style checks are being skipped on release notes
when builds running on travis.

Solution:
Move up the grammar and style checks before the link-checker which
deliberately removes release-notes from being link checked.
