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

Black text on sphinx-rtd-theme with Breathe C++ autodoc #43

Open
sanjacob opened this issue Dec 1, 2023 · 3 comments
Open

Black text on sphinx-rtd-theme with Breathe C++ autodoc #43

sanjacob opened this issue Dec 1, 2023 · 3 comments
Labels
status/investigating type/bug Something isn't working

Comments

@sanjacob
Copy link

sanjacob commented Dec 1, 2023

Overall this is a great theme and I love the animation when switching light/dark themes.
Just a small issue with the api autodoc which causes class names to be black.

The specific CSS selector in the upstream sphinx-rtd-theme which causes this is:

html.writer-html4 .rst-content dl:not(.docutils) .descclassname,html.writer-html4 .rst-content dl:not(.docutils) .descname,html.writer-html4 .rst-content dl:not(.docutils) .sig-name,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .descclassname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .descname,html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) .sig-name{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,Courier,monospace;color:#000}
@MrDogeBro
Copy link
Owner

Hi, thank you for the report. Could you please include an example bit of code to show exactly where the issue occurs? Thank you.

@MrDogeBro MrDogeBro added type/bug Something isn't working status/investigating labels Dec 21, 2023
@rod7760
Copy link

rod7760 commented Aug 27, 2024

I do have a screenshot that illustrates the issue:
image
image

Disabling the css selector in sphinx-rtd-theme fixes it.
I will attempt to put together a minimal example later.

@ksikka
Copy link

ksikka commented Jan 22, 2025

You can see the black text issue here as of now:

https://lightning-pose.readthedocs.io/en/latest/api/lightning_pose.data.datasets.HeatmapDataset.html#lightning_pose.data.datasets.HeatmapDataset

Image

(Additionally there is a white background issue on the Attribute documentation. )

However I will be patching it soon with a file called _static/lightningpose.css. If the bug is fixed by the time you view it, then disable that file and you should be able to repro.

Environment info:

Name: Sphinx
Version: 7.3.7
Required-by: sphinx-automodapi, sphinx-copybutton, sphinx-rtd-theme, sphinx_design, sphinxcontrib-jquery
---
Name: sphinx-rtd-theme
Version: 2.0.0
Required-by: sphinx-rtd-dark-mode
---
Name: sphinx-rtd-dark-mode
Version: 1.3.0

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
None yet
Development

No branches or pull requests

4 participants