Changes between Version 25 and Version 26 of PyDocPlugin
- Timestamp:
- Jun 16, 2015, 8:33:39 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PyDocPlugin
v25 v26 7 7 This plugin allows the user to browse Python documentation through Trac's interface, using the `pydoc` documentation system. 8 8 9 It was originally written for Trac 0.9, but there's now a fully 0.10 compatible version, and evena Genshi version for Trac 0.11dev.9 It was originally written for Trac 0.9, but there's a fully 0.10 compatible version, as well as a Genshi version for Trac 0.11dev. 10 10 11 11 == Alternatives to `pydoc` 12 12 13 Tools that use static code analysis would be much morepreferable to those that compile the Python code and inspect the doc strings. Some tools that do this are [https://svn.enthought.com/enthought/wiki/EndoHowTo Endo] (promising), [http://effbot.org/zone/pythondoc.htm PythonDoc] (promising), [http://happydoc.sourceforge.net/ Happy Doc] and [http://codespeak.net/svn/user/mwh/pydoctor/trunk/ PyDoctor] (requires trunk version of some divmod modules, couldn't get it working).13 Tools that use static code analysis would be preferable to those that compile the Python code and inspect the doc strings. Some tools that do this are [https://svn.enthought.com/enthought/wiki/EndoHowTo Endo] (promising), [http://effbot.org/zone/pythondoc.htm PythonDoc] (promising), [http://happydoc.sourceforge.net/ Happy Doc] and [http://codespeak.net/svn/user/mwh/pydoctor/trunk/ PyDoctor] (requires trunk version of some divmod modules, couldn't get it working). 14 14 15 Others are [http://pudge.lesscode.org/ Pudge] and [http://epydoc.sourceforge.net/ EpyDoc] . [http://epydoc.sourceforge.net/ EpyDoc] is fully supported by EpyDocPlugin.15 Others are [http://pudge.lesscode.org/ Pudge] and [http://epydoc.sourceforge.net/ EpyDoc] (fully supported by the EpyDocPlugin). 16 16 17 17 == Bugs/Feature Requests … … 21 21 22 22 If you have any issues, create a 23 [ http://trac-hacks.org/newticket?component=PyDocPlugin&owner=athomasnew ticket].23 [/newticket?component=PyDocPlugin new ticket]. 24 24 25 25 [[TicketQuery(component=PyDocPlugin&group=type,format=progress)]] … … 28 28 29 29 Download the zipped source corresponding to your Trac version: 30 || Trac 0.9|| [download:pydocplugin/0.9 pydocplugin/0.9] ||30 || Trac 0.9 || [download:pydocplugin/0.9 pydocplugin/0.9] || 31 31 || Trac 0.10 || [download:pydocplugin/0.10 pydocplugin/0.10] || 32 32 || Trac 0.11 || [download:pydocplugin/0.11 pydocplugin/0.11] || … … 46 46 The `[[pydoc(target[,visibility])]]` macro will expand the documentation for `object` inline. 47 47 48 `visibility` can be either `public`, `private` or left empty, in which case the visibility depends on the [pydoc] show_private setting.48 The option settings for `visibility` can be either `public`, `private` or left empty, in which case the visibility depends on the [pydoc] show_private setting. 49 49 50 50 === Searching the Python Documentation … … 54 54 == Configuration 55 55 56 All configuration occurs under the [pydoc] section of `trac.ini`.56 All configuration occurs under the [pydoc] section of your `trac.ini` file. 57 57 58 58 === Documentation Search Path … … 65 65 This is a glob, so you will need appropriate wildcards to match correctly. For example, to display all DBM modules except anydbm: 66 66 67 {{{ 68 #!ini 67 {{{#!ini 69 68 [pydoc] 70 69 include = *dbm* … … 74 73 To display just the Trac documentation: 75 74 76 {{{ 77 #!ini 75 {{{#!ini 78 76 [pydoc] 79 77 include = trac trac.* … … 87 85 The Python private documentation can now be displayed for the modules that are found in this space separated list of module patterns. For example, in order to show the private documentation for Trac and the WebAdmin plugin: 88 86 89 {{{ 90 #!ini 87 {{{#!ini 91 88 [pydoc] 92 89 show_private = trac.* webadmin.* … … 108 105 '''Contributors:''' [[Maintainer]] [[BR]] 109 106 '''Authors:''' [wiki:athomas] [wiki:cboos][[BR]] 110 111 112 113