mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Another try at the phoenix root doxy root stuff (BTW, thanks for NOT setting the WXWIN environ variable)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -17,6 +17,7 @@ import datetime
|
|||||||
|
|
||||||
# Phoenix-specific imports
|
# Phoenix-specific imports
|
||||||
import buildtools.version as version
|
import buildtools.version as version
|
||||||
|
from buildtools.config import phoenixDir, wxDir
|
||||||
|
|
||||||
# List of strings that should be ignored when creating inline literals
|
# List of strings that should be ignored when creating inline literals
|
||||||
# such as ``ID_ANY`` or ``HORIZONtAL``, with double backticks
|
# such as ``ID_ANY`` or ``HORIZONtAL``, with double backticks
|
||||||
@@ -77,7 +78,7 @@ CPP_ITEMS = ['*', '&', 'const', 'unsigned', '(size_t)', 'size_t', 'void']
|
|||||||
# building the ReST docs:
|
# building the ReST docs:
|
||||||
|
|
||||||
# The location of the Phoenix main folder
|
# The location of the Phoenix main folder
|
||||||
PHOENIXROOT = os.path.abspath(os.path.split(__file__)[0] + '/..')
|
PHOENIXROOT = phoenixDir()
|
||||||
|
|
||||||
# The location of the Sphinx main folder
|
# The location of the Sphinx main folder
|
||||||
SPHINXROOT = os.path.join(PHOENIXROOT, 'docs', 'sphinx')
|
SPHINXROOT = os.path.join(PHOENIXROOT, 'docs', 'sphinx')
|
||||||
@@ -106,18 +107,12 @@ WIDGETS_IMAGES_ROOT = os.path.join(SPHINXROOT, '_static', 'images', 'widgets',
|
|||||||
# Folder for the icons used for titles, sub-titles and so on for the Sphinx documentation
|
# Folder for the icons used for titles, sub-titles and so on for the Sphinx documentation
|
||||||
SPHINX_IMAGES_ROOT = os.path.join(SPHINXROOT, '_static', 'images', 'sphinxdocs')
|
SPHINX_IMAGES_ROOT = os.path.join(SPHINXROOT, '_static', 'images', 'sphinxdocs')
|
||||||
|
|
||||||
|
|
||||||
# The Doxygen root for the XML docstrings
|
# The Doxygen root for the XML docstrings
|
||||||
xmlsrcbase = 'docs/doxygen/out/xml'
|
xmlsrcbase = 'docs/doxygen/out/xml'
|
||||||
|
WXWIN = wxDir()
|
||||||
|
|
||||||
WXWIN = os.environ.get('WXWIN')
|
XMLSRC = ''
|
||||||
|
|
||||||
if not WXWIN:
|
|
||||||
for rel in ['../wxWidgets', '..', '../../wxWidgets/trunk']:
|
|
||||||
path = os.path.join(PHOENIXROOT, rel, xmlsrcbase)
|
|
||||||
if path and os.path.exists(path):
|
|
||||||
WXWIN = os.path.abspath(os.path.join(PHOENIXROOT, rel))
|
|
||||||
break
|
|
||||||
|
|
||||||
if WXWIN:
|
if WXWIN:
|
||||||
XMLSRC = os.path.join(WXWIN, xmlsrcbase)
|
XMLSRC = os.path.join(WXWIN, xmlsrcbase)
|
||||||
|
|
||||||
|
|||||||
@@ -138,6 +138,7 @@ def BuildEnumsAndMethods(sphinxDir):
|
|||||||
text = text.replace('non-NULL', 'not ``None``')
|
text = text.replace('non-NULL', 'not ``None``')
|
||||||
text = text.replace(',,', ',').replace(', ,', ',')
|
text = text.replace(',,', ',').replace(', ,', ',')
|
||||||
text = text.replace(':note:', '.. note::')
|
text = text.replace(':note:', '.. note::')
|
||||||
|
text = text.replace(':see:', '.. seealso::')
|
||||||
|
|
||||||
fid = open(input, 'wt')
|
fid = open(input, 'wt')
|
||||||
fid.write(text)
|
fid.write(text)
|
||||||
|
|||||||
Reference in New Issue
Block a user