summaryrefslogtreecommitdiff
path: root/sphinx/domains/python.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-02-20 14:45:39 +0100
committerGeorg Brandl <georg@python.org>2010-02-20 14:45:39 +0100
commit2f2b2185f35a4c1ce7d849c4b98890096174679c (patch)
tree03bca9a5ead24664c9f580bc15582a3c003937fb /sphinx/domains/python.py
parent7338cf977e2a17e4d3730475a66f3161be14f3f4 (diff)
downloadsphinx-2f2b2185f35a4c1ce7d849c4b98890096174679c.tar.gz
Get rid of the "module" node.
Diffstat (limited to 'sphinx/domains/python.py')
-rw-r--r--sphinx/domains/python.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/sphinx/domains/python.py b/sphinx/domains/python.py
index dfa40798..fcd2216d 100644
--- a/sphinx/domains/python.py
+++ b/sphinx/domains/python.py
@@ -351,16 +351,12 @@ class PyModule(Directive):
env.domaindata['py']['modules'][modname] = \
(env.docname, self.options.get('synopsis', ''),
self.options.get('platform', ''), 'deprecated' in self.options)
- modulenode = addnodes.module()
- modulenode['modname'] = modname
- modulenode['synopsis'] = self.options.get('synopsis', '')
targetnode = nodes.target('', '', ids=['module-' + modname], ismod=True)
self.state.document.note_explicit_target(targetnode)
- ret = [modulenode, targetnode]
+ ret = [targetnode]
# XXX this behavior of the module directive is a mess...
if 'platform' in self.options:
platform = self.options['platform']
- modulenode['platform'] = platform
node = nodes.paragraph()
node += nodes.emphasis('', _('Platforms: '))
node += nodes.Text(platform, platform)
@@ -371,7 +367,7 @@ class PyModule(Directive):
indextext = _('%s (module)') % modname
inode = addnodes.index(entries=[('single', indextext,
'module-' + modname, modname)])
- ret.insert(0, inode)
+ ret.append(inode)
return ret