Open lmnc5 opened 4 years ago
Same for me in laragon with Laravel. The error is a little bit different, but refers to the same
copy(resources/docs/js/all.js): failed to open stream: No such file or directory
php artisan apidoc:generate
Processed route: <many>
Writing index.md and source files to: resources/docs
Wrote index.md and source files to: resources/docs
Generating API HTML code
ErrorException
copy(resources/docs/js/all.js): failed to open stream: No such file or directory
at C:\Users\Me\Software\laragon\www\app\vendor\mpociot\laravel-apidoc-generator\src\Writing\Writer.php:266
262| mkdir($publicPath, 0777, true);
263| mkdir("{$publicPath}/css");
264| mkdir("{$publicPath}/js");
265| }
> 266| copy("{$this->sourceOutputPath}/js/all.js", "{$publicPath}/js/all.js");
267| rcopy("{$this->sourceOutputPath}/images", "{$publicPath}/images");
268| rcopy("{$this->sourceOutputPath}/css", "{$publicPath}/css");
269|
270| if ($logo = $this->config->get('logo')) {
1 C:\Users\Me\Software\laragon\www\app\vendor\mpociot\laravel-apidoc-generator\src\Writing\Writer.php:266
copy("resources/docs/js/all.js", "public/docs/js/all.js")
2 C:\Users\Me\Software\laragon\www\app\vendor\mpociot\laravel-apidoc-generator\src\Writing\Writer.php:303
Mpociot\ApiDoc\Writing\Writer::copyAssetsFromSourceFolderToPublicFolder()
Should the all.js
file be generated automatically when calling php artisan apidoc:generate
?
When creating manually the file, the generation succed but the documentation appear without css style and animations.
Hello, people! When i try generate api docs in the first time, i get the error bellow: ` ErrorException
copy(resources/docs/js/all.js): failed to open stream: No such file or directory
at C:\laragon\www\Projetos\MediaOn\colmeia.services.api\vendor\mpociot\laravel-apidoc-generator\src\Writing\Writer.php:266 262| mkdir($publicPath, 0777, true); 263| mkdir("{$publicPath}/css"); 264| mkdir("{$publicPath}/js"); 265| }
1 C:\laragon\www\Projetos\MediaOn\colmeia.services.api\vendor\mpociot\laravel-apidoc-generator\src\Writing\Writer.php:266 copy("resources/docs/js/all.js", "public/docs/js/all.js")
2 C:\laragon\www\Projetos\MediaOn\colmeia.services.api\vendor\mpociot\laravel-apidoc-generator\src\Writing\Writer.php:303 Mpociot\ApiDoc\Writing\Writer::copyAssetsFromSourceFolderToPublicFolder()`
Can you help me , please?
Thank you for advanced.