Replies: 1 comment
-
|
Better support for versionmodified admonitions was added in d58bf18. If you install the current development version, you can override their styles defined in the Sphinx stylesheet (which is the default). [versionmodified : Admonition]
base=builtin admonition
space_above=2pt
space_below=2pt
padding_top=0
padding_bottom=0pt
border_top=none
border_bottom=none
[versionmodified inline title : StyledText]
base=admonition inline title
# title already includes a trailing space
after = ''
[versionadded]
base=versionmodified
[versionadded inline title]
base=versionmodified inline title
[versionchanged]
base=versionmodified
[versionchanged inline title]
base=versionmodified inline title
[versionremoved]
base=versionmodified
[versionremoved inline title]
base=versionmodified inline title
[deprecated]
base=versionmodified
[deprecated inline title]
base=versionmodified inline titleSo, by default all admonitions use the same styling defined by versionmodified. The specific styles can override part of or all of the style definition. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
These appear to be controlled by the TextStyle



[versionmodified]. Starting with this rendering which uses.. versionadded::I'm looking for styling the "New in" paragraph and for separating the summary line below. Here it is in html:
and here is the source:
I have attached my stylesheet which overrides
sphinx.rts, as well as an excerpt from the.stylelog.Although I can see in the style log that it picks up
[versionmodified]Nothing is applied. Sphinx is converting the
.. versionadded::to "New in version 3" OK, and that is appearing in the PDF. But it appears that the[versionmodified]style isn't being applied. I'm not seeing ITALIC or the color. Also in sphinx.rts it's styledand that's not being picked up either. I hope I haven't missed something silly. I need the color changes and that separation between the
.. versionadded::section and the following paragraph. Ideally I'd like the color to be applied only to the "New in" text like it is in the HTML. Can someone help me?Telescope.Action.Legend.stylelog.txt
ascom.rts.txt
ascom.rtt.txt
Beta Was this translation helpful? Give feedback.
All reactions