summaryrefslogtreecommitdiff
path: root/scripts/mkvenv.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/mkvenv.py')
-rwxr-xr-xscripts/mkvenv.py18
1 files changed, 6 insertions, 12 deletions
diff --git a/scripts/mkvenv.py b/scripts/mkvenv.py
index 005c657a1..6b37bc9cb 100755
--- a/scripts/mkvenv.py
+++ b/scripts/mkvenv.py
@@ -81,9 +81,6 @@ def parse_args(argv: List[str] = None) -> argparse.Namespace:
parser.add_argument('--virtualenv',
action='store_true',
help="Use virtualenv instead of venv.")
- parser.add_argument('--asciidoc', help="Full path to asciidoc.py. "
- "If not given, asciidoc is searched in PATH.",
- nargs='?',)
parser.add_argument('--dev',
action='store_true',
help="Also install dev/test dependencies.")
@@ -424,17 +421,14 @@ def install_qutebrowser(venv_dir: pathlib.Path) -> None:
pip_install(venv_dir, '-e', str(REPO_ROOT))
-def regenerate_docs(venv_dir: pathlib.Path, asciidoc: Optional[str]):
+def regenerate_docs(venv_dir: pathlib.Path):
"""Regenerate docs using asciidoc."""
utils.print_title("Generating documentation")
- if asciidoc is not None:
- a2h_args = ['--asciidoc', asciidoc]
- else:
- a2h_args = []
- script_path = pathlib.Path(__file__).parent / 'asciidoc2html.py'
+ pip_install(venv_dir, '-r', str(requirements_file('docs')))
- print_command('python3 scripts/asciidoc2html.py', *a2h_args, venv=True)
- run_venv(venv_dir, 'python', str(script_path), *a2h_args)
+ script_path = pathlib.Path(__file__).parent / 'asciidoc2html.py'
+ print_command('python3 scripts/asciidoc2html.py', venv=True)
+ run_venv(venv_dir, 'python', str(script_path))
def update_repo():
@@ -499,7 +493,7 @@ def run(args) -> None:
install_dev_requirements(venv_dir)
if not args.skip_docs:
- regenerate_docs(venv_dir, args.asciidoc)
+ regenerate_docs(venv_dir)
def main():