summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-01-27 15:38:59 +0100
committerFlorian Bruhin <me@the-compiler.org>2020-01-27 15:38:59 +0100
commit255fcc05055699346302d1dfbecb39cb7bbe49fd (patch)
tree8ac9d3412b757b03a9658176cb30ffd425a3e8cd
parent57899d765562cef60e577d1c498ffc51e16824e4 (diff)
downloadqutebrowser-255fcc05055699346302d1dfbecb39cb7bbe49fd.tar.gz
qutebrowser-255fcc05055699346302d1dfbecb39cb7bbe49fd.zip
mkvenv: Use the virtualenv's python to call asciidoc2html
-rw-r--r--scripts/mkvenv.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/scripts/mkvenv.py b/scripts/mkvenv.py
index fb618e83d..b0d056868 100644
--- a/scripts/mkvenv.py
+++ b/scripts/mkvenv.py
@@ -207,10 +207,19 @@ def install_qutebrowser(venv_dir: pathlib.Path) -> None:
pip_install(venv_dir, '-e', str(REPO_ROOT))
-def regenerate_docs(venv_dir: pathlib.Path, asciidoc: typing.Tuple[str, str]):
+def regenerate_docs(venv_dir: pathlib.Path,
+ asciidoc: typing.Optional[typing.Tuple[str, str]]):
"""Regenerate docs using asciidoc."""
utils.print_title("Generating documentation")
- asciidoc2html.run(website=False, asciidoc=asciidoc)
+ if asciidoc is not None:
+ a2h_args = ['--asciidoc'] + asciidoc
+ else:
+ a2h_args = []
+ script_path = pathlib.Path(__file__).parent / 'asciidoc2html.py'
+
+ utils.print_col('venv$ python3 scripts/asciidoc2html.py {}'
+ .format(' '.join(a2h_args)), 'blue')
+ run_venv(venv_dir, 'python3', str(script_path), *a2h_args)
def main() -> None: