mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 19:40:12 +01:00
Phoenix:
- Update the `sphinx_generator.py` to handle the latest `sashwin.py` and `laywin.py`; - Remove non-pertinent sections from the wxWidgets docs (stuff talking about cpp/h include files); - Optimize the handling of enumeration stuff thus reducing the number of unreferenced classes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -302,13 +302,21 @@ def RemoveUnreferenced(input, class_summary, enum_base, unreferenced_classes, te
|
||||
# Overview pages
|
||||
continue
|
||||
|
||||
if '.' in reg:
|
||||
# Sometimes in wxWidgets the enums and structures are reported as
|
||||
# Class.Enum/Class.Structure, while we only have links to Enum and Structures
|
||||
possible_enum = reg.split('.')[1]
|
||||
if possible_enum in enum_base or possible_enum in class_summary:
|
||||
text = text.replace(':ref:`%s`'%reg, ':ref:`%s`'%possible_enum, 1)
|
||||
continue
|
||||
|
||||
if reg not in unreferenced_classes:
|
||||
unreferenced_classes[reg] = []
|
||||
|
||||
split = os.path.split(input)[1]
|
||||
if split not in unreferenced_classes[reg]:
|
||||
unreferenced_classes[reg].append(split)
|
||||
|
||||
|
||||
text = text.replace(':ref:`%s`'%reg, '`%s`'%reg, 1)
|
||||
|
||||
return text, unreferenced_classes
|
||||
|
||||
Reference in New Issue
Block a user