mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-03-11 17:49:25 -05:00
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:
8
binder
8
binder
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user