Merge "Make oslosphinx optional"

This commit is contained in:
Jenkins 2017-04-27 13:44:12 +00:00 committed by Gerrit Code Review
commit df95641103

View File

@ -8,8 +8,14 @@ sys.path.insert(0, os.path.abspath('../..'))
# Add any Sphinx extension module names here, as strings. They can be # Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', extensions = ['sphinx.ext.autodoc']
'oslosphinx'] # make oslosphinx optional to not increase the needed dependencies
try:
import oslosphinx
except ImportError:
pass
else:
extensions.append('oslosphinx')
# autodoc generation is a bit aggressive and a nuisance when doing heavy # autodoc generation is a bit aggressive and a nuisance when doing heavy
# text edit cycles. # text edit cycles.