go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
43.89k stars 5.38k forks source link

Using a custom theme causes syntax highlighting of code previews to appear all white #31614

Closed murl-digital closed 2 weeks ago

murl-digital commented 1 month ago

Description

i use a custom theme on my gitea instance, and it causes source code previews to be all white. you can see an example here

when i edit the file in the web, the colors work as expected

Gitea Version

1.22.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image image

Git Version

No response

Operating System

No response

How are you running Gitea?

using the package provided by TrueNAS scale, which runs a docker image on kubernetes

Database

None

lsd-techno commented 1 month ago

there is includes that are responsible to colorize code preview, I add those files/folders to custom to solve the issue: https://github.com/lsd-techno/gitea-theme/pull/4

lunny commented 2 weeks ago

Close per @lsd-techno 's workaround.

murl-digital commented 2 weeks ago

Should this be at least documented somewhere perhaps?

lunny commented 2 weeks ago

Maybe https://docs.gitea.com/awesome?_highlight=theme/awesome#themes is a good place to document it.