Phoenix: few additional fixes to some of the samples, plus better formatting for the remaining troublesome docs classes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Andrea Gavana
2012-12-03 20:50:04 +00:00
parent 983d3c4c35
commit b117617572
7 changed files with 108 additions and 29 deletions

View File

@@ -169,11 +169,14 @@ def BuildEnumsAndMethods(sphinxDir):
text = text.replace('EmptyString', "''")
# Replace ArrayXXX stuff...
for cpp in ['ArrayString()', 'ArrayInt()', 'ArrayDouble()', 'ArrayString']:
text = text.replace(cpp, '[]')
# Remove lines with "Event macros" in them...
text = text.replace('Event macros:', '')
text = TooltipsOnInheritance(text, class_summary)
text = AddSpacesToLinks(text)
if text != orig_text:
fid = textfile_open(input, 'wt')
@@ -336,6 +339,17 @@ def RemoveUnreferenced(input, class_summary, enum_base, unreferenced_classes, te
# ----------------------------------------------------------------------- #
def AddSpacesToLinks(text):
regex = re.findall('\w:ref:`(.*?)`', text)
for reg in regex:
text = text.replace(':ref:`%s`'%reg, ' :ref:`%s`'%reg)
return text
# ----------------------------------------------------------------------- #
def ReformatFunctions(file):
text_file = os.path.splitext(file)[0] + '.txt'