From 332c4df97e33b02197182111280e01c89f3d3ad0 Mon Sep 17 00:00:00 2001 From: Patryk Vizauer Date: Fri, 23 Aug 2024 23:19:40 +0200 Subject: [PATCH] Allow custom output path for `static` and `external_static` instead of only `static` --- src/Writing/HtmlWriter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Writing/HtmlWriter.php b/src/Writing/HtmlWriter.php index b40b8522..78fa4c82 100644 --- a/src/Writing/HtmlWriter.php +++ b/src/Writing/HtmlWriter.php @@ -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 = './';