Alexandre Detiste
323e78c085
remove more Python2 hybridation
2025-02-02 20:29:49 -05:00
Robin Dunn
9d19ba1ee7
Guard against None returned for the top-level parent node
2022-05-09 22:11:22 -07:00
Robin Dunn
7a839de248
Make it possible to call a function that post-processes the generated ReST doc for a class.
2020-11-11 15:40:05 -08:00
Robin Dunn
92f8cd2d55
Fix lots of misspelled words
2020-07-14 11:38:32 -07:00
Per A. Brodtkorb
426258b7b7
Adding missing close for open and replaced "fid=open(filename) fid.close()"
...
statements with the safer "with open(filename) as fid:" blocks.
Also removed unnecessary "try: ... finally: pass" statements
and refactored code from img2py function into _write_image and _replace_non_alphanumeric_with_underscore
Fixes #1574
2020-03-25 10:36:38 +01:00
Per A. Brodtkorb
e4e8bf8317
Fixes issue 1571:
...
Adding missing close for open.
If the "close()" call is missing after a "open(filename)" call, the filename isn't guaranteed to be closed before the interpreter exits.
This is generally a bad practice as explained here: https://stackoverflow.com/questions/7395542/is-explicitly-closing-files-important
Also replaced "fid=open(filename) fid.close()" statements for files with the safer
"with open(filename) as fid:" blocks. See https://www.python.org/dev/peps/pep-0343/
2020-03-23 17:16:44 +01:00
Per A. Brodtkorb
033c18fd9f
Fixes issue #1556
...
Replaced XXX.keys() calls with idiomatic python 3 calls that are compatible with python 2 such as eg:
* replaced "y = xxx.keys()" or "y = list(xxx.keys())" with just "y = list(xxx)"
* replaced "sorted(xxx.keys())" or "sorted(list(xxx.keys()))" with just "sorted(xxx)"
* replaced "if not A in B.keys():" with "if A not in B:"
* replaced "for A in B.keys():" with "for A in B:"
See also https://python-future.org/compatible_idioms.html
https://python-future.org/compatible_idioms.html#dict-keys-values-items-as-a-list
2020-03-20 18:51:19 +01:00
Robin Dunn
9f2cc54b48
Update copyright years
2020-03-10 11:41:39 -07:00
Robin Dunn
65c8397ddb
Tweak 3.x versions in the docs to 4.x, to adjust for the difference in version numbers
2019-12-20 16:34:58 -08:00
Robin Dunn
8614e1ae09
Handle <ndash> and <mdash> tags in the docs xml
2019-10-30 18:19:25 -07:00
Robin Dunn
09404e63f5
Simplify postprocessing, remove changes no longer needed, or edit them for Sphinx 2.2.0.
2019-10-03 14:54:50 -07:00
Robin Dunn
b5bb587145
Merge pull request #897 from RobinD42/add-windowidref
...
Add wx.WindowIDRef and wx.NewIdRef
2018-06-24 21:37:54 -07:00
Robin Dunn
b77c88a280
Merge tag 'wxPython-4.0.2' into wxPy-4.0.x
...
(cherry picked from commit 4c56c39e52 )
2018-06-17 22:04:22 -07:00
Robin Dunn
693863c2a5
Merge pull request #762 from mesalu/admonish_deprecation
...
Admonish deprecations
2018-02-22 22:08:02 -08:00
Robin Dunn
9d172ddc8a
Update copyright in etgtools
2017-02-13 16:18:47 -08:00
Robin Dunn
be61a4c386
Enable skipping items only when generating docs
2017-01-28 10:41:39 -08:00
Metallicow
067569d785
Trim trailing space etgtools directory
2016-12-05 16:26:04 -06:00
Robin Dunn
fd3ea15e0e
Handle case where the docs say there is an image, but there isn’t.
2016-11-11 20:00:35 -08:00
Robin Dunn
1a94ced4b3
a bit of cleanup
2016-09-08 12:32:11 -07:00
Robin Dunn
93b269ca82
If the memberVar has a docstring, use it.
2016-09-07 13:33:54 -07:00
Robin Dunn
50c1acd136
Don't use "*args, **kw" in the docs when only one of the overloads is not ignored.
2016-08-05 16:21:35 -07:00
Robin Dunn
9f8a5b8d9a
Fix bug when there are more than one code snippets in a set of overloaded methods.
2016-07-15 16:25:05 -07:00
Robin Dunn
5983df8a5f
Generate attribute docs for exposed C++ attributes like properties.
2016-06-17 16:01:38 -07:00
Robin Dunn
664d5b765a
Fixes for inheritance diagrams
2016-06-08 00:31:10 -07:00
Robin Dunn
874bdd2626
Don't remove leading wx when postprocessing
2016-06-04 16:08:29 -07:00
Robin Dunn
2355ceb198
Use fullname on constants in the converted text
2016-06-04 14:44:08 -07:00
Robin Dunn
a21a23d32f
Refactor map_generator, and add tracking of enum element names.
2016-06-03 20:28:55 -07:00
Robin Dunn
fd5f8a0ca2
update TODO
2016-06-03 16:17:11 -07:00
Robin Dunn
126f61abcf
Items in an Xref's child elements may come in any order, so we can't depend on the refid and link being in the first child.
2016-05-30 07:16:07 -07:00
Robin Dunn
3fbecd36cf
Fix generation of "classwx_" links
2016-05-29 23:20:30 -07:00
Robin Dunn
ba827eeaaa
Update comment about custom table snippets
2016-05-27 14:58:50 -07:00
Robin Dunn
be90ee5427
Fix incorrect doubling on ** in some cases.
...
More nested enum fixes.
2016-05-27 14:57:57 -07:00
Robin Dunn
eca3ab1f1d
add toctree items for the nested enums
2016-05-26 23:34:03 -07:00
Robin Dunn
8f41607c73
Fixes for PyClass and PyProperties
2016-05-24 23:41:35 -07:00
Robin Dunn
045773b119
Try without the currentmodule directive...
2016-05-24 23:40:58 -07:00
Robin Dunn
ba5baabe77
Fix links in method and properties summaries
2016-05-24 01:37:11 -07:00
Robin Dunn
68844e4b52
Add the functions to the module index pages.
...
Call them moduleindex pages instead of classindex.
Use the fullname for function links.
2016-05-23 23:43:11 -07:00
Robin Dunn
4a4bd9515c
Fix the currentmodule tag to not include the class name in nested classes/enums
2016-05-23 15:32:08 -07:00
Robin Dunn
24e2b78806
Lots more docs changes.
...
Add a generator that updates a persistent mapping of item (functions, classes, etc.) to the module names they are a member of.
Remove the NO_MODULE dictionary as we're tracking all the item --> module names now.
Consolidate the 2 removeWxPrefix implementations to just one.
Fix taking out too much space in the class index when removing the :ref: for unknown items, which caused ReST problems.
Use pyName if it is set
When renaming classes we also need to change the className in the method objects
Properly deal with nested classes
2016-05-22 23:39:40 -07:00
Robin Dunn
7d69bda471
A little more name refactoring
2016-05-20 19:56:06 -07:00
Robin Dunn
4c29dfae85
More copyright updates
2016-05-19 23:57:17 -07:00
Robin Dunn
a83ca5e94f
Refactor lots of functions to use camelCase names
2016-05-19 23:53:40 -07:00
Robin Dunn
b4132cbaa0
If we're processing a real[*] module grab and save the etg docstring.
...
[*] A "real" module is defined by the etg scripts which include others, like wx._core, wx._adv, etc. These are the ones turned into the actual extension modules in the final parts of the build.
2016-05-19 14:57:07 -07:00
Robin Dunn
42c661cf54
More Python3 fixes
2015-03-20 10:56:33 -07:00
Robin Dunn
30e7d68f76
Allow typedefs to be nested in classes.
2015-03-03 20:53:18 -08:00
Robin Dunn
d1dfc4e035
Update to Doxygen 1.8.8 (the same version currently used by wxWidgets)
2015-02-28 15:34:57 -08:00
Robin Dunn
bb10ffb496
Create sphinx build dirs that don't already exist.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@76370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-04-19 21:24:20 +00:00
Robin Dunn
df8589a8cd
Don't lose the newlines from the docstring of a PyMethodDef
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-06-06 01:59:04 +00:00
Robin Dunn
35fd2e16bf
Update copyright year
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-01-21 02:13:03 +00:00
Robin Dunn
591175c16b
The deprecated attribute might not be a string
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-29 19:42:33 +00:00