From cb173a4b4296ff21b76a091935eeab93bbc43b6b Mon Sep 17 00:00:00 2001 From: rob Date: Tue, 6 Jan 2026 01:25:37 -0400 Subject: [PATCH] Fix deploy docs output going to launching terminal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Redirect stdout/stderr to DEVNULL - Show notification dialog when deploy starts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- src/development_hub/project_list.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/development_hub/project_list.py b/src/development_hub/project_list.py index a688857..3efec5c 100644 --- a/src/development_hub/project_list.py +++ b/src/development_hub/project_list.py @@ -148,6 +148,21 @@ class ProjectListWidget(QWidget): def _deploy_docs(self, project: Project): """Deploy documentation for project.""" + from PyQt6.QtWidgets import QMessageBox + build_script = Path.home() / "PycharmProjects/project-docs/scripts/build-public-docs.sh" if build_script.exists(): - subprocess.Popen([str(build_script), project.key, "--deploy"]) + # Run in background, suppress output + subprocess.Popen( + [str(build_script), project.key, "--deploy"], + stdout=subprocess.DEVNULL, + stderr=subprocess.DEVNULL, + ) + # Show notification + QMessageBox.information( + self, + "Deploy Started", + f"Documentation deployment started for {project.title}.\n\n" + f"This runs in the background. Check Gitea Pages\n" + f"in a minute to verify the deployment." + )