Skip to content

Commit

Permalink
Merge pull request #51 from hydephp/47-bug-staticpagebuilder-not-able…
Browse files Browse the repository at this point in the history
…-to-create-nested-documentation-directories

Fix bug #47 StaticPageBuilder not able to create nested documentation directories
  • Loading branch information
caendesilva authored Apr 1, 2022
2 parents 1127bdd + 392ecf0 commit ff7e83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StaticPageBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function __invoke()

if ($this->page instanceof DocumentationPage) {
if (! file_exists(Hyde::path('_site/'.Hyde::docsDirectory()))) {
mkdir(Hyde::path('_site/'.Hyde::docsDirectory()));
mkdir(Hyde::path('_site/'.Hyde::docsDirectory()), recursive: true);
}

return $this->save(Hyde::docsDirectory().'/'.$this->page->slug, $this->compileDocs());
Expand Down

0 comments on commit ff7e83b

Please sign in to comment.