浏览代码

Fix generation for `laravel` type

shalvah 5 年之前
父节点
当前提交
1289d399e9
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/Writing/Writer.php

+ 4 - 1
src/Writing/Writer.php

@@ -191,6 +191,9 @@ class Writer
         if (!is_dir($this->laravelTypeOutputPath)) {
             mkdir($this->laravelTypeOutputPath);
         }
+        if (!is_dir("public/vendor/scribe")) {
+            mkdir("public/vendor/scribe", 0777, true);
+        }
 
         // Transform output HTML to a Blade view
         rename("{$this->staticTypeOutputPath}/index.html", "$this->laravelTypeOutputPath/index.blade.php");
@@ -220,7 +223,7 @@ class Writer
             $this->performFinalTasksForLaravelType();
         }
 
-        ConsoleOutputUtils::success("Wrote HTML documentation to: " . $this->isStatic ? $this->staticTypeOutputPath : $this->laravelTypeOutputPath);
+        ConsoleOutputUtils::success("Wrote HTML documentation to: " . ($this->isStatic ? $this->staticTypeOutputPath : $this->laravelTypeOutputPath));
     }
 
     protected function writeIndexMarkdownFile(array $settings): void