Have sphinx turn errors into warnings

This commit is contained in:
Pedro Algarvio 2019-05-29 11:28:55 +01:00
parent 07f432796c
commit c54f06f085
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -893,9 +893,12 @@ def docs(session):
'''
Build Salt's Documentation
'''
session.install('--progress-bar=off', '-r', 'requirements/static/py3.6/docs.txt', silent=PIP_INSTALL_SILENT)
session.install(
'--progress-bar=off',
'-r', 'requirements/static/py{}/docs.txt'.format(session.python),
silent=PIP_INSTALL_SILENT)
os.chdir('doc/')
session.run('make', 'clean', external=True)
session.run('make', 'html', external=True)
session.run('make', 'html', 'SPHINXOPTS=-W', external=True)
session.run('tar', '-czvf', 'doc-archive.tar.gz', '_build/html')
os.chdir('..')