
sphinx_warning_is_error and sphinx-pbr_autodoc are only useful for the default documents living in doc/ - but not for api-ref, api-guide, etc. Check for standard builds and do not run the "python setup.py build_sphinx" or whereto for non-standard paths. Change-Id: Ia8edd8a6ebc24f67a52d77c21b0cfa467e45a7ce