Fix deploy docs output going to launching terminal
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
d570681d86
commit
cb173a4b42
|
|
@ -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."
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue