use distrib sphinx-build

This commit is contained in:
Christophe Siraut 2019-09-03 15:40:02 +02:00 committed by Frédéric Péters
parent 388b38ac01
commit 3471b13b30
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ def publish_sphinx(module):
output_dir = os.path.join(web_directory, module.get('name'))
build_dir = os.path.join(checkout_dir, '_build/html')
os.system('rm -rf %s' % build_dir)
cmd = '%s/venv/bin/sphinx-build -b html -d _build/doctrees . _build/html' % os.getcwd()
cmd = 'sphinx-build -b html -d _build/doctrees . _build/html'
os.system('cd %s && %s >/dev/null 2>&1' % (checkout_dir, cmd))
if os.path.isdir(output_dir):
shutil.rmtree(output_dir)