Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function and class names are black when compiled on readthedocs #28

Open
dwiddo opened this issue Feb 1, 2022 · 6 comments
Open

Function and class names are black when compiled on readthedocs #28

dwiddo opened this issue Feb 1, 2022 · 6 comments
Labels
status/investigating type/bug Something isn't working
Projects

Comments

@dwiddo
Copy link

dwiddo commented Feb 1, 2022

When locally compiled, the names of functions and classes are blue as intended. But when compiled on readthedocs, the colors turn black and are difficult to read.

Screenshot 2022-02-01 100812

@vlandau
Copy link

vlandau commented Mar 2, 2022

I'm having the same issue, but it persists locally and when deploying to gh-pages after the build (via github actions) (via make clean html)

@Cielquan
Copy link

I have the same issue. It also applies to click CLI apps documented with sphinx-click.

image

For me the local build is already black.

@dwiddo dwiddo closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2022
@dwiddo dwiddo reopened this May 20, 2022
@dwiddo
Copy link
Author

dwiddo commented May 20, 2022

It may help to mention that I solved this issue by specifying sphinx-rtd-theme==0.5.2, it seems that 1.0.0 is causing the issue.

@photoniker
Copy link

Is there some activity regarding this issue? I still have dark class names.

@MrDogeBro MrDogeBro added this to Need to Look Into in Main via automation Sep 14, 2023
@MrDogeBro MrDogeBro added type/bug Something isn't working status/investigating labels Sep 14, 2023
@MrDogeBro MrDogeBro moved this from Need to Look Into to Bugs in Main Sep 14, 2023
@sanjacob
Copy link

I have this issue when using the theme along Breathe

@sanjacob
Copy link

sanjacob commented Dec 8, 2023

Here's what I have come up with as a quick fix:

html[data-theme="dark"].writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .sig-name {
	color: var(--dark-text-color);
}

html[data-theme="dark"].writer-html5 .rst-content dd dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .sig-name {
	color:inherit;
}

YMMV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/investigating type/bug Something isn't working
Projects
Main
Bugs
Development

No branches or pull requests

6 participants