Try without the currentmodule directive...

This commit is contained in:
Robin Dunn
2016-05-24 23:40:58 -07:00
parent b8f32de5ea
commit 045773b119
3 changed files with 5 additions and 5 deletions

View File

@@ -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.

View File

@@ -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)

View File

@@ -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)