Skip to content

Commit 60b665d

Browse files
docs: export interactive HTML observatory dashboard
1 parent 7391577 commit 60b665d

3 files changed

Lines changed: 1389 additions & 0 deletions

File tree

‎codeslim/cli.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def bot() -> None:
159159
def bot_serve(host: str, port: str | int, auto_commit: bool) -> None:
160160
"""Start the CodeSlim GitHub Webhook Bot HTTP server."""
161161
import os
162+
162163
import uvicorn
163164

164165
from codeslim.bot.app import create_bot_app

‎codeslim/formatters/html_exporter.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ def export_html_report(project_report: ProjectReport, output_path: Path) -> Path
234234
Written output Path.
235235
"""
236236
html_content = generate_html_observatory_report(project_report)
237+
output_path.parent.mkdir(parents=True, exist_ok=True)
237238
output_path.write_text(html_content, encoding="utf-8")
238239
log.info("html_report_exported", path=str(output_path), bytes=len(html_content))
239240
return output_path

0 commit comments

Comments
 (0)