mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#129: Wrap toctrees in a div tag with class `toctree-wrapper` in HTML output.
This commit is contained in:
3
CHANGES
3
CHANGES
@@ -1,6 +1,9 @@
|
||||
Release 1.0 (in development)
|
||||
============================
|
||||
|
||||
* #129: Wrap toctrees in a div tag with class ``toctree-wrapper``
|
||||
in HTML output.
|
||||
|
||||
* #280: Autodoc can now document instance attributes assigned in
|
||||
``__init__`` methods.
|
||||
|
||||
|
||||
@@ -100,7 +100,9 @@ class TocTree(Directive):
|
||||
subnode['hidden'] = 'hidden' in self.options
|
||||
subnode['numbered'] = 'numbered' in self.options
|
||||
subnode['titlesonly'] = 'titlesonly' in self.options
|
||||
ret.append(subnode)
|
||||
wrappernode = nodes.compound(classes=['toctree-wrapper'])
|
||||
wrappernode.append(subnode)
|
||||
ret.append(wrappernode)
|
||||
return ret
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user