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

Problem with deprecated and versionadded notes color mode #121

Closed
PProfizi opened this issue Sep 23, 2022 · 1 comment · Fixed by #182
Closed

Problem with deprecated and versionadded notes color mode #121

PProfizi opened this issue Sep 23, 2022 · 1 comment · Fixed by #182
Labels
bug Defects or glitches reported by users or developers

Comments

@PProfizi
Copy link
Contributor

PProfizi commented Sep 23, 2022

Hi there!
I was testing the different sphinx notes available to put in dosctrings, and I wanted to check .. deprecated:: and .. versionadded:: (see here).

I found out that the general color theme is problematic as my local computer is in dark mode, giving this in doc dark mode:
image

Yet not rendering those two notes properly when in light or auto mode:
image
image

I think those two notes always use my local computer's dark mode despite the doc's mode.
The text is there, it is just not visible because the documentation's color theme makes it black, while the back of the note is not made white and seems to bypass the doc's color mode.
The problem might come from ansys-sphinx-theme, or it might come from our conf.py at PyDPF-Core.
What do you think?

@PProfizi PProfizi added the bug Defects or glitches reported by users or developers label Sep 23, 2022
@germa89 germa89 mentioned this issue Oct 31, 2022
22 tasks
@germa89
Copy link
Contributor

germa89 commented Dec 27, 2022

Same here with Deprecated (https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-deprecated) directive in Sphinx:

image

It does work in dark mode.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defects or glitches reported by users or developers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants