From 7d2647b65615c513851fc1dad60d08ceb236d35d Mon Sep 17 00:00:00 2001 From: HendrikRauh <114620133+HendrikRauh@users.noreply.github.com> Date: Sun, 15 Mar 2026 20:02:14 +0100 Subject: [PATCH] fix(docs): fix tasks.py --- tasks.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/tasks.py b/tasks.py index 4a97f11..e97fe48 100644 --- a/tasks.py +++ b/tasks.py @@ -1,7 +1,9 @@ from invoke import task import os import shutil +import subprocess import sys +import webbrowser @task @@ -154,17 +156,11 @@ def format_check(c): @task(help={"o": "Open documentation in the default browser after generation."}) def docs(c, o=False): """Generate Doxygen documentation.""" - task_begin("docs", "Docs") proc = subprocess.run("doxygen Doxyfile", shell=True) if proc.returncode == 0: - task_end("docs", "done", "Docs generated") path = "docs/doxygen/html/index.html" - console.print( - f"\n[bold green]āœ“ Documentation generated in {path}[/bold green]" - ) + print(f"\nāœ“ Documentation generated in {path}") if o: - import webbrowser webbrowser.open(f"file://{os.path.abspath(path)}") return - task_end("docs", "failed", "Doxygen failed") raise Exit(code=1)