mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-12 16:32:10 -05:00
Restore `versionmodified` CSS class for versionadded/changed and deprecated
directives.
This commit is contained in:
1 parent
c5ff9386d6
commit
ddbcb5b611
2 files changed
+10
-2
No files matched your search
@@ -13,6 +13,12 @@ Incompatible changes
|
|||||||
* Removed the ``sphinx.ext.refcounting`` extension -- it is very specific to
|
* Removed the ``sphinx.ext.refcounting`` extension -- it is very specific to
|
||||||
CPython and has no place in the main distribution.
|
CPython and has no place in the main distribution.
|
||||||
|
|
||||||
|
Bugs fixed
|
||||||
|
----------
|
||||||
|
|
||||||
|
* Restore ``versionmodified`` CSS class for versionadded/changed and deprecated
|
||||||
|
directives.
|
||||||
|
|
||||||
|
|
||||||
Release 1.2 beta3 (released Oct 3, 2013)
|
Release 1.2 beta3 (released Oct 3, 2013)
|
||||||
========================================
|
========================================
|
||||||
|
|||||||
@@ -208,9 +208,11 @@ class VersionChange(Directive):
|
|||||||
content.line = node[0].line
|
content.line = node[0].line
|
||||||
content += node[0].children
|
content += node[0].children
|
||||||
node[0].replace_self(nodes.paragraph('', '', content))
|
node[0].replace_self(nodes.paragraph('', '', content))
|
||||||
node[0].insert(0, nodes.inline('', '%s: ' % text))
|
node[0].insert(0, nodes.inline('', '%s: ' % text,
|
||||||
|
classes=['versionmodified']))
|
||||||
else:
|
else:
|
||||||
para = nodes.paragraph('', '', nodes.inline('', '%s.' % text))
|
para = nodes.paragraph('', '',
|
||||||
|
nodes.inline('', '%s.' % text, classes=['versionmodified']))
|
||||||
node.append(para)
|
node.append(para)
|
||||||
env = self.state.document.settings.env
|
env = self.state.document.settings.env
|
||||||
# XXX should record node.source as well
|
# XXX should record node.source as well
|
||||||
|
|||||||
Reference in new issue
Block a user