knuckleswtf / scribe

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

Replacement for https://www.jsdelivr.com/ #744

Closed Saifallak closed 11 months ago

Saifallak commented 11 months ago

Scribe version

4.25.0

PHP version

8.2

Framework

Laravel

Framework version

10.0

Scribe config

------ SAME AS DEFAULT CONFIG ------

What happened?

https://www.jsdelivr.com is blocked in my country, so i need to replace it to https://cdnjs.com

Docs

shalvah commented 11 months ago

Oof, that's tough. I'd like to change it, but I don't want to potentially break things for other users. I recommend rewriting the URL yourself. Search the docs for "afterGenerating". You can use this hook to read the generated HTML file and replace the CDN with whatever you prefer.

Saifallak commented 11 months ago

Oof, that's tough. I'd like to change it, but I don't want to potentially break things for other users. I recommend rewriting the URL yourself. Search the docs for "afterGenerating". You can use this hook to read the generated HTML file and replace the CDN with whatever you prefer.

Okay gonna try, but would be awesome if this can be changed from config file maybe?

shalvah commented 11 months ago

would be awesome if this can be changed from config file maybe?

It would be helpful for you, but the config file is used by all users. Adding an option every time someone has a specific use case would quickly lead to bloat.