Improves build output formatting

Refines the build output by adjusting the indentation for better readability.

The change adds a single space to the beginning of the build messages, improving their visual alignment in the console.
This commit is contained in:
Vijay Janapa Reddi
2025-07-31 23:46:09 -04:00
parent 92400e83ad
commit ad9d0bc714

8
binder
View File

@@ -541,7 +541,7 @@ class BookBinder:
def build_multiple(self, chapter_list, format_type="html"):
"""Build multiple chapters together in a single unified build"""
console.print(f"[green]🚀 Building {len(chapter_list)} chapters together[/green] [dim]({format_type})[/dim]")
console.print(f"[green] 🚀 Building {len(chapter_list)} chapters together[/green] [dim]({format_type})[/dim]")
console.print(f"[dim] 📋 Chapters: {', '.join(chapter_list)}[/dim]")
return self.build_multiple_unified(chapter_list, format_type)
@@ -582,7 +582,7 @@ class BookBinder:
# Ensure config is clean (remove any render restrictions)
self.ensure_clean_config(config_file)
console.print(f"[green]🚀 Building {len(chapter_list)} chapters together[/green] [dim]({format_type})[/dim]")
console.print(f"[green] 🚀 Building {len(chapter_list)} chapters together[/green] [dim]({format_type})[/dim]")
# Set up unified fast build mode for all chapters
success = self.set_fast_build_mode_multiple(config_file, chapter_files)
@@ -611,7 +611,7 @@ class BookBinder:
result = self.run_command(
render_cmd,
cwd=self.book_dir,
description=f"Building {len(chapter_list)} chapters ({format_type}) - unified build",
description=f" Building {len(chapter_list)} chapters ({format_type}) - unified build",
capture_for_parsing=True
)
@@ -647,7 +647,7 @@ class BookBinder:
target_path = str(chapter_file.relative_to(self.book_dir))
chapter_name = str(chapter_file.relative_to(self.book_dir / "contents")).replace(".qmd", "")
console.print(f"[green]🚀 Building[/green] [bold]{chapter_name}[/bold] [dim]({format_type})[/dim]")
console.print(f"[green] 🚀 Building[/green] [bold]{chapter_name}[/bold] [dim]({format_type})[/dim]")
console.print(f"[dim] ✅ Found: {chapter_file}[/dim]")
# Setup configuration