Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions config/ssg.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,16 @@

'failures' => false, // 'errors' or 'warnings'

/*
|--------------------------------------------------------------------------
| Verbosity
|--------------------------------------------------------------------------
|
| When enabled, the SSG will print a line for every page it generates.
| Useful for debugging or keeping track of the command's progress.
|
*/

'verbose' => true,

];
5 changes: 4 additions & 1 deletion src/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ protected function makeContentGenerationClosures($pages, $request)
$count = 0;
$warnings = [];
$errors = [];
$verbose = config('statamic.ssg.verbose');

foreach ($pages as $page) {
$oldCarbonFormat = $this->getToStringFormat();
Expand All @@ -280,7 +281,9 @@ protected function makeContentGenerationClosures($pages, $request)

$request->setPage($page);

Partyline::line("\x1B[1A\x1B[2KGenerating ".$page->url());
if ($verbose) {
Partyline::line("\x1B[1A\x1B[2KGenerating ".$page->url());
}

try {
$generated = $page->generate($request);
Expand Down