Skip to content

Commit 14bb5d1

Browse files
committed
minor cleanups and updates
1 parent f89a98a commit 14bb5d1

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/Command/BuildDocsCommand.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
121121

122122
$buildErrors = $builder->getErrorManager()->getErrors();
123123

124-
$this->io->success('HTML rendering complete!');
125-
126124
$missingFiles = $this->missingFilesChecker->getMissingFiles();
127125
foreach ($missingFiles as $missingFile) {
128126
$message = sprintf('Missing file "%s"', $missingFile);
@@ -147,7 +145,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
147145

148146
$this->io->newLine(2);
149147

150-
$successMessage = 'Parse process complete';
148+
$successMessage = 'Build complete!';
151149
$this->io->success($successMessage);
152150
}
153151

src/KernelFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ static function (string $path) use ($parseSubPath) : bool {
4444
);
4545
}
4646

47-
$twig = $configuration->getTemplateRenderer()->getTwigEnvironment();
48-
$twig->addExtension(new AssetsExtension($buildContext->getHtmlOutputDir()));
47+
$twig = $configuration->getTemplateEngine();
48+
$twig->addExtension(new AssetsExtension($buildContext->getOutputDir()));
4949

5050
return new Kernel(
5151
$configuration,

src/Listener/BuildProgressListener.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33
namespace SymfonyDocsBuilder\Listener;
44

55
use Doctrine\Common\EventManager;
6-
use Doctrine\RST\Event\PostBuildRenderEvent;
76
use Doctrine\RST\Event\PostParseDocumentEvent;
87
use Doctrine\RST\Event\PreBuildParseEvent;
98
use Doctrine\RST\Event\PreBuildRenderEvent;
109
use Symfony\Component\Console\Helper\ProgressBar;
1110
use Symfony\Component\Console\Style\SymfonyStyle;
12-
use Symfony\Component\Filesystem\Filesystem;
13-
use SymfonyDocsBuilder\BuildContext;
1411

1512
class BuildProgressListener
1613
{

0 commit comments

Comments
 (0)