shalvah 5 лет назад
Родитель
Сommit
ef096a3258
2 измененных файлов с 6 добавлено и 4 удалено
  1. 2 1
      docs/migrating.md
  2. 4 3
      tests/GenerateDocumentationTest.php

+ 2 - 1
docs/migrating.md

@@ -27,7 +27,8 @@ If you've modified your generated Blade views, you should also publish the new o
 php artisan vendor:publish --provider="Knuckles\Scribe\ScribeServiceProvider" --tag=scribe-views
 ```
 
-> ⚠ IMPORTANT: If you've modified the generated Markdown or added prepend/append files, you should copy them to a separate folder (not in `resources/docs`). After generating the new docs, you'll have to manually add your changes in.
+``` important:: If you've modified the generated Markdown or added prepend/append files, you should copy them to a separate folder (not in `resources/docs`). After generating the new docs, you'll have to manually add your changes in.
+```
 
 _After you've done all of the above_, delete your `resources/docs/` and `public/docs` folders, to prevent any conflicts with the new ones we'll generate. If you're using `laravel` type output, you can also delete `resources/views/apidoc/`.
 

+ 4 - 3
tests/GenerateDocumentationTest.php

@@ -401,9 +401,9 @@ class GenerateDocumentationTest extends TestCase
 
         $this->artisan('scribe:generate');
 
-        $group1FilePath = __DIR__ . '/../resources/docs/groups/1-group-1.md';
-        $group2FilePath = __DIR__ . '/../resources/docs/groups/2-group-2.md';
-        $authFilePath = __DIR__ . '/../resources/docs/authentication.md';
+        $group1FilePath = realpath(__DIR__ . '/../resources/docs/groups/1-group-1.md');
+        $group2FilePath = realpath(__DIR__ . '/../resources/docs/groups/2-group-2.md');
+        $authFilePath = realpath(__DIR__ . '/../resources/docs/authentication.md');
 
         $file1MtimeAfterFirstGeneration = filemtime($group1FilePath);
         $file2MtimeAfterFirstGeneration = filemtime($group2FilePath);
@@ -419,6 +419,7 @@ class GenerateDocumentationTest extends TestCase
 
         $this->artisan('scribe:generate');
 
+        dump($group1FilePath);
         $file1MtimeAfterSecondGeneration = filemtime($group1FilePath);
         $file2MtimeAfterSecondGeneration = filemtime($group2FilePath);
         $authFileMtimeAfterSecondGeneration = filemtime($authFilePath);