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 = './';