summaryrefslogtreecommitdiff
path: root/sphinx/directives.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-12-16 19:36:23 +0000
committerGeorg Brandl <georg@python.org>2007-12-16 19:36:23 +0000
commitfbe9ed59cbb913f8e89ce7616ada21d90bc81c93 (patch)
treeb9c495469266078507093c08dd2833c9d5cd6688 /sphinx/directives.py
parentd6deb877df9334bf0efb8cf6cb2aa51f2b27348a (diff)
downloadsphinx-git-fbe9ed59cbb913f8e89ce7616ada21d90bc81c93.tar.gz
Several improvements to the latex builder.
Diffstat (limited to 'sphinx/directives.py')
-rw-r--r--sphinx/directives.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/sphinx/directives.py b/sphinx/directives.py
index ca9cf856c..d89b170fb 100644
--- a/sphinx/directives.py
+++ b/sphinx/directives.py
@@ -518,11 +518,14 @@ def module_directive(name, arguments, options, content, lineno,
env.note_module(modname, options.get('synopsis', ''),
options.get('platform', ''),
'deprecated' in options)
- ret = []
+ modulenode = addnodes.module()
+ modulenode['modname'] = modname
+ modulenode['synopsis'] = options.get('synopsis', '')
targetnode = nodes.target('', '', ids=['module-' + modname])
state.document.note_explicit_target(targetnode)
- ret.append(targetnode)
+ ret = [modulenode, targetnode]
if 'platform' in options:
+ modulenode['platform'] = options['platform']
node = nodes.paragraph()
node += nodes.emphasis('Platforms: ', 'Platforms: ')
node += nodes.Text(options['platform'], options['platform'])