knuckleswtf / scribe

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

Badges don't work with element theme #866

Closed basarito closed 23 hours ago

basarito commented 1 month ago

Scribe version

4.37.0

PHP version

8.3.6

Framework

Laravel

Framework version

10.48.14

Scribe config

'type' => 'static',
'theme' => 'elements'

What happened?

I am trying to add a badge as described here: https://scribe.knuckles.wtf/laravel/reference/html#badges but it doesn't render when using element theme. It works when using default theme.

Docs

shalvah commented 1 month ago

What does it render as?

basarito commented 1 month ago

@shalvah it doesn't render any style at all, just the html element. So if we add <small class="badge badge-green">Badge</small> as described in the docs, we'd only get the small text displayed. If you inspect the element, the badge class is there, but no associated style is applied, so it's just regular text.

It just looks like this:

image
dvlpr91 commented 2 weeks ago

image

However, if you define the CSS, it will be solved.

shalvah commented 23 hours ago

Yeah, sorry. You have to understand that I'm not a frontend guy, and the limited time I have will be spent on maintenance and improvements in generation, not presentation.