From 3db2683fd9f9ded232e9161d55e5e2df3df40a47 Mon Sep 17 00:00:00 2001 From: Roberto Butti Date: Thu, 21 Dec 2023 08:48:33 +0100 Subject: [PATCH] including epub styles in init command --- src/Commands/EpubCommand.php | 1 - src/Commands/InitCommand.php | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Commands/EpubCommand.php b/src/Commands/EpubCommand.php index 954136a..7a05ad3 100644 --- a/src/Commands/EpubCommand.php +++ b/src/Commands/EpubCommand.php @@ -3,7 +3,6 @@ namespace Ibis\Commands; use Ibis\Ibis; -use Mpdf\Mpdf; use SplFileInfo; use Mpdf\Config\FontVariables; use Mpdf\Config\ConfigVariables; diff --git a/src/Commands/InitCommand.php b/src/Commands/InitCommand.php index 5b1e293..0bfbed5 100644 --- a/src/Commands/InitCommand.php +++ b/src/Commands/InitCommand.php @@ -91,6 +91,10 @@ public function execute(InputInterface $input, OutputInterface $output): int $this->disk->get(__DIR__ . '/../../stubs/assets/theme-light.html') ); + $this->disk->put( + $currentPath . '/assets/style.css', + $this->disk->get(__DIR__ . '/../../stubs/assets/style.css') + ); $this->output->writeln(''); $this->output->writeln('Done!');