knuckleswtf / scribe

Generate API documentation for humans from your Laravel codebase.✍
https://scribe.knuckles.wtf/laravel/
MIT License
1.59k stars 281 forks source link

Error when generating Laravel Blade files #699

Open mobreviews opened 11 months ago

mobreviews commented 11 months ago

Scribe version

4.22

PHP version

8.1.17

Framework

Laravel

Framework version

10.15.0

Scribe config

title => "MobReviews API"
laravel.docs_url => "/api/docs"
try_it_out.enabled => false
try_it_out.use_csrf => true
auth.enabled => true
auth.default => true
logo => "../img/logo.webp"

What happened?

After running generate it processes all of the routes extracts intro and auth Markdown files but when it gets to Writing Blade docs I get this error. local.ERROR: rename(): The first argument to copy() function cannot be a directory {"exception":"[object] (ErrorException(code: 0): rename(): The first argument to copy() function cannot be a directory at /app/vendor/knuckleswtf/scribe/src/Writing/Writer.php:176)

Docs

shalvah commented 10 months ago

This is strange. Where does this happen, your local machine or a server? Also, what type of docs are you generating? Your config indicates it's static type, but that section of code is only executed for laravel type.