mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
The :rst:dir:py:module
directive doesn't output its `platform
` option value anymore.
(It was the only thing that the directive did output, and therefore quite inconsistent.)
This commit is contained in:
parent
a79758baed
commit
7139a1c882
4
CHANGES
4
CHANGES
@ -5,6 +5,10 @@ Release 1.1 (in development)
|
||||
|
||||
* Added a Texinfo builder.
|
||||
|
||||
* Incompatibility: The :rst:dir:`py:module` directive doesn't output
|
||||
its ``platform`` option value anymore. (It was the only thing that
|
||||
the directive did output, and therefore quite inconsistent.)
|
||||
|
||||
* Added i18n support for content, a ``gettext`` builder and
|
||||
related utilities.
|
||||
|
||||
|
@ -419,15 +419,8 @@ class PyModule(Directive):
|
||||
targetnode = nodes.target('', '', ids=['module-' + modname], ismod=True)
|
||||
self.state.document.note_explicit_target(targetnode)
|
||||
ret = [targetnode]
|
||||
# XXX this behavior of the module directive is a mess...
|
||||
if 'platform' in self.options:
|
||||
platform = self.options['platform']
|
||||
node = nodes.paragraph()
|
||||
node += nodes.emphasis('', _('Platforms: '))
|
||||
node += nodes.Text(platform, platform)
|
||||
ret.append(node)
|
||||
# the synopsis isn't printed; in fact, it is only used in the
|
||||
# modindex currently
|
||||
# the platform and synopsis aren't printed; in fact, they are only used
|
||||
# in the modindex currently
|
||||
if not noindex:
|
||||
indextext = _('%s (module)') % modname
|
||||
inode = addnodes.index(entries=[('single', indextext,
|
||||
|
Loading…
Reference in New Issue
Block a user