Phoenix: fixed few issues on the parameters hyperlinks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Andrea Gavana
2012-04-02 19:45:44 +00:00
parent ab4c250c14
commit 721cf235ae
5 changed files with 16 additions and 8 deletions

View File

@@ -5,9 +5,11 @@
<li>{{ title }}</li>
{% endblock %}
{% block sidebar1 %}{{ sidebar() }}{% endblock %}
{% block rootrellink %}
<li><img src="_static/phoenix_small.ico" alt="" style="vertical-align: middle; margin-top: 7px"/></li>
<li><img src="_static/images/sphinxdocs/phoenix_small.png" alt="" style="vertical-align: middle; margin-top: 7px"/></li>
<li><a href="index.html" style="color: rgb(238, 152, 22); hover: rgb(53, 95, 124);">Home</a> |&nbsp;</li>
<li><a href="search.html" style="color: rgb(238, 152, 22); hover: rgb(53, 95, 124);">Search</a> |&nbsp;</li>
<li><a href="gallery.html" style="color: rgb(238, 152, 22); hover: rgb(53, 95, 124);">Gallery</a> |&nbsp;</li>

View File

@@ -178,6 +178,7 @@ def depart_availability_node(self, node):
def setup(app):
app.add_javascript('javascript/header.js')
app.add_config_value('availability_include_availabilities', False, False)
app.add_node(availabilitylist)

View File

@@ -105,7 +105,7 @@ html_theme = 'default'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {'stickysidebar': 'true'}
html_theme_options = {'collapsiblesidebar': 'true'}
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []

View File

@@ -15,7 +15,7 @@ generated by parsing the wxWidgets XML docs; however, Phoenix has its own pure-P
functions and classes in at least two places:
* **Core Library**: examples include :ref:`CallLater` and :func:`date2pydate`, which require
manual input od the documentation strings. This is achieved by editing the source Python files
manual input of the documentation strings. This is achieved by editing the source Python files
located in the ``etg`` folder in the Phoenix directory tree;
* **wx.lib**: the whole of ``wx.lib`` (and its sub-folders) is made up of pure-Python modules,
ofter representing owner-drawn widgets which are not available as wrapped modules. Again,
@@ -137,7 +137,7 @@ Will render as:
Currently, the `sphinx_generator` tool recognizes the following admonitions:
1. ``.. note::`` : simple annotations to make a particular comment/sentence
1. ``.. note::`` or ``:note:`` : simple annotations to make a particular comment/sentence
stand out against the rest of the documentation strings for a particular class, method or function;
2. ``.. warning::`` : this admonition normally indicates a problem or a severe limitation of a method,
class or function. In the Phoenix world, this may also indicate that a particular widget is not
@@ -145,7 +145,7 @@ Currently, the `sphinx_generator` tool recognizes the following admonitions:
3. ``.. deprecated::`` : used to mark deprecated methods, classes or functions;
4. ``.. availability::`` : normally employed to make the user understand on which platform(s) a particular
functionality is supported/available;
5. ``.. seealso::`` : added primarily to facilitate the browsing of the docs, this admonition
5. ``.. seealso::`` or ``:see:`` : added primarily to facilitate the browsing of the docs, this admonition
should be employed every time you think a user may be interested in seeing a related/similar method
or a function providing an alternative implementation;
6. ``.. todo::`` : used to mark incomplete methods/functions, or simply as a remainder for the user and

View File

@@ -142,8 +142,12 @@ def BuildEnumsAndMethods(sphinxDir):
text = text.replace('wx.``', '``')
text = text.replace('non-NULL', 'not ``None``')
text = text.replace(',,', ',').replace(', ,', ',')
text = text.replace(':note:', '.. note::')
text = text.replace(':see:', '.. seealso::')
if 'DocstringsGuidelines' not in input:
# Leave the DocstringsGuidelines.txt file alone on these ones
text = text.replace(':note:', '.. note::')
text = text.replace(':see:', '.. seealso::')
text = text.replace('`String`&', 'string')
text = text.replace('See also\n', '.. seealso:: ')
# Avoid Sphinx warnings on wx.TreeCtrl
@@ -151,6 +155,7 @@ def BuildEnumsAndMethods(sphinxDir):
# Replace EmptyString stuff
text = text.replace('EmptyString', "''")
# Replace ArrayString stuff...
text = text.replace('ArrayString()', '[]')
text = text.replace('ArrayString', 'list of strings')
if text != orig_text:
@@ -560,7 +565,7 @@ def PostProcess(folder):
if '<div class="admonition-availability admonition' in line:
line = '<div class="admonition-availability admonition availability">'
line = ClassToFile(line)
## line = ClassToFile(line)
if index < len_split - 1: