Skip to content

Commit

Permalink
updating to latest Minicli
Browse files Browse the repository at this point in the history
  • Loading branch information
erikaheidi committed May 30, 2023
1 parent 9a7168a commit f7dc3cf
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 163 deletions.
18 changes: 9 additions & 9 deletions Command/Build/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,34 @@ public function handle(): void

/** @var StaticBuilder $builder */
$builder = $this->getApp()->builder;
$this->getPrinter()->info("Starting Build", 1);
$this->getPrinter()->info("Cleaning up output dir...");
$this->info("Starting Build", true);
$this->info("Cleaning up output dir...");
$builder->cleanUp();

//Build content single pages
$contentTypes = $content->getContentTypes();
/** @var ContentType $contentType */
foreach ($contentTypes as $contentType) {
$this->getPrinter()->info("Building content type '$contentType->slug'");
$this->info("Building content type '$contentType->slug'");
$builder->buildContentType($contentType->slug);
}

$this->getPrinter()->info("Building tag pages");
$this->info("Building tag pages");
$tags = $content->fetchTagList();
foreach ($tags as $tag => $articles) {
$this->getPrinter()->info("Building $tag pages...");
$this->info("Building $tag pages...");
$builder->buildPaginatedTagPage(trim($tag));
}

$this->getPrinter()->info("Building index");
$this->info("Building index");
$builder->buildPaginatedIndex();

$this->getPrinter()->info("Copying Resources");
$this->info("Copying Resources");
$builder->copyPublicResources();

$this->getPrinter()->info("Building RSS feed");
$this->info("Building RSS feed");
$builder->buildRssFeed();

$this->getPrinter()->success("Finished building static website at $outputDir.");
$this->success("Finished building static website at $outputDir.");
}
}
46 changes: 0 additions & 46 deletions Command/Help/DefaultController.php

This file was deleted.

Loading

0 comments on commit f7dc3cf

Please sign in to comment.