#!/bin/bash

cd docs

# Fix sphinx to ignore non-local image warnings
grep -r "nonlocal image URI found" /home/travis/virtualenv/*

# Test documentation
sphinx-build -nW -b html -d _build/doctrees . _build/html

#!/bin/bash

cd docs

# Fix sphinx to ignore non-local image warnings
filename="$(find /home/travis/virtualenv/ -name environment.py)"
sed -e '/nonlocal\ image\ URI\ found/ s/^/#/' -i ${filename}
grep -r "nonlocal image URI found" /home/travis/virtualenv/*

# Test documentation
sphinx-build -nW -b html -d _build/doctrees . _build/html

Disable sphinx varning about nonlocal images
Disable sphinx varning about nonlocal images
