From 020f6cea58c1e4e7119050c8b383960168125e71 Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Fri, 6 Nov 2020 08:41:07 +0200 Subject: [PATCH] include sample content and update themes with smaller fonts --- src/Commands/InitCommand.php | 9 +- stubs/assets/theme-dark.html | 8 +- stubs/assets/theme-light.html | 8 +- stubs/content/001-queues-101.md | 5 + stubs/content/002-key-components.md | 226 ++++++++++++++++++ stubs/content/003-cookbook.md | 5 + .../content/004-canceling-abandoned-orders.md | 135 +++++++++++ .../005-dealing-with-api-rate-limits.md | 153 ++++++++++++ .../006-handling-queues-on-deployments.md | 94 ++++++++ stubs/ibis.php | 8 +- 10 files changed, 637 insertions(+), 14 deletions(-) create mode 100644 stubs/content/001-queues-101.md create mode 100644 stubs/content/002-key-components.md create mode 100644 stubs/content/003-cookbook.md create mode 100644 stubs/content/004-canceling-abandoned-orders.md create mode 100644 stubs/content/005-dealing-with-api-rate-limits.md create mode 100644 stubs/content/006-handling-queues-on-deployments.md diff --git a/src/Commands/InitCommand.php b/src/Commands/InitCommand.php index e7ad74d..11dcd49 100644 --- a/src/Commands/InitCommand.php +++ b/src/Commands/InitCommand.php @@ -34,8 +34,8 @@ protected function configure() /** * Execute the command. * - * @param InputInterface $input - * @param OutputInterface $output + * @param InputInterface $input + * @param OutputInterface $output * @return int * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException * @throws \Mpdf\MpdfException @@ -66,6 +66,11 @@ public function execute(InputInterface $input, OutputInterface $output) $currentPath.'/content' ); + $this->disk->copyDirectory( + __DIR__.'/../../stubs/content', + $currentPath.'/content' + ); + $this->disk->put( $currentPath.'/ibis.php', $this->disk->get(__DIR__.'/../../stubs/ibis.php') diff --git a/stubs/assets/theme-dark.html b/stubs/assets/theme-dark.html index c7ca546..faf979d 100644 --- a/stubs/assets/theme-dark.html +++ b/stubs/assets/theme-dark.html @@ -3,7 +3,7 @@