Skip to content

Commit

Permalink
Allow custom output path for static and external_static instead o…
Browse files Browse the repository at this point in the history
…f only `static` (#884)
  • Loading branch information
PatryQHyper authored Aug 24, 2024
1 parent 5eb0f65 commit 754eacd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Writing/HtmlWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(DocumentationConfig $config = null)
// If they're using the default static path,
// then use '../docs/{asset}', so assets can work via Laravel app or via index.html
$this->assetPathPrefix = '../docs/';
if ($this->config->get('type') == 'static'
if (in_array($this->config->get('type'), ['static', 'external_static'])
&& rtrim($this->config->get('static.output_path', ''), '/') != 'public/docs'
) {
$this->assetPathPrefix = './';
Expand Down

0 comments on commit 754eacd

Please sign in to comment.