mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
Try without the currentmodule directive...
This commit is contained in:
2
TODO.rst
2
TODO.rst
@@ -129,7 +129,7 @@ to be untangled:
|
||||
docstring (like the style flags in wx.CheckBox, etc.) and switch it to
|
||||
just changing it to "wx."
|
||||
|
||||
* There is an extra modulename "wx.", "wx.adv." etc. being added to things
|
||||
* [done] There is an extra modulename "wx.", "wx.adv." etc. being added to things
|
||||
like named anchors, etc. Is that because of the "currentmodule"
|
||||
directive? Or maybe because of using the fullname in the doc title.
|
||||
Figure it out and fix it.
|
||||
|
||||
@@ -2339,7 +2339,7 @@ class XMLDocString(object):
|
||||
|
||||
if '.' in fullname:
|
||||
module = self.current_module[:-1]
|
||||
stream.write('\n\n.. currentmodule:: %s\n\n' % module)
|
||||
#stream.write('\n\n.. currentmodule:: %s\n\n' % module)
|
||||
|
||||
stream.write(templates.TEMPLATE_DESCRIPTION % (fullname, fullname))
|
||||
|
||||
@@ -2697,7 +2697,7 @@ class XMLDocString(object):
|
||||
|
||||
if self.current_module.strip():
|
||||
module = self.current_module.strip()[:-1]
|
||||
stream.write('\n\n.. currentmodule:: %s\n\n' % module)
|
||||
#stream.write('\n\n.. currentmodule:: %s\n\n' % module)
|
||||
|
||||
stream.write(templates.TEMPLATE_DESCRIPTION % (fullname, fullname))
|
||||
stream.write('\n\nThe `%s` enumeration provides the following values:\n\n' % enum_name)
|
||||
|
||||
@@ -567,7 +567,7 @@ class Module(ParentBase):
|
||||
label = 'Package'
|
||||
|
||||
stream.write('.. module:: %s\n\n'%self.name)
|
||||
stream.write('.. currentmodule:: %s\n\n'%self.name)
|
||||
#stream.write('.. currentmodule:: %s\n\n'%self.name)
|
||||
stream.write('.. highlight:: python\n\n')
|
||||
|
||||
header = templates.TEMPLATE_DESCRIPTION%(self.name, '%s'%self.GetShortName())
|
||||
@@ -704,7 +704,7 @@ class Class(ParentBase):
|
||||
parts = self.name.split('.')
|
||||
current_module = '.'.join(parts[0:-1])
|
||||
|
||||
stream.write('.. currentmodule:: %s\n\n'%current_module)
|
||||
#stream.write('.. currentmodule:: %s\n\n'%current_module)
|
||||
stream.write('.. highlight:: python\n\n')
|
||||
|
||||
class_docs = replaceWxDot(self.docs)
|
||||
|
||||
Reference in New Issue
Block a user