#8695 closed enhancement (fixed)
generate API documentation
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0 |
| Component: | general | Version: | none |
| Severity: | major | Keywords: | devguide api documentation |
| Cc: | ryano@… | Branch: | |
| Release Notes: |
Trac now comes with some API documentation. |
||
| API Changes: |
|
||
| Internal Changes: | |||
Description
http://trac.edgewall.org/wiki/TracDev/PluginDevelopment lists available extension points, but doesn't describe parameters that are passed to extension point methods, such as req, env etc.
It should be possible to build API documentation automatically using Sphinx to extract docblocks. Additional specifiers can help limit/expand the scope of extracted information.
Attachments (0)
Change History (10)
comment:1 by , 16 years ago
| Keywords: | api documentation added |
|---|---|
| Milestone: | → 0.12 |
| Owner: | set to |
comment:3 by , 16 years ago
| Keywords: | devguide added |
|---|
comment:5 by , 16 years ago
Maybe you could take a look at TracSphinx, wich aims to do something like this.
I can't link the project, becaouse trac says that is is possibly spam. You can find the package at the pypi database with the same name.
comment:6 by , 15 years ago
| Milestone: | next-minor-0.12.x → 0.13 |
|---|---|
| Severity: | normal → major |
comment:7 by , 15 years ago
| Cc: | added |
|---|
comment:8 by , 15 years ago
| Status: | new → assigned |
|---|
Some work has been started in this area.
It's now possible to do one of the following:
make apidoc
To get the Sphinx HTML documentation built in build/doc/html (not much to see yet).
make apidoc sphinxformat=pdf
To get the same but in a PDF document (in build/doc/pdf/trac_dev.pdf).
Alternatively, one can also do:
make apiref
to generate the full API reference using epydoc. Nice to get a complete overview, but there are still a lot of oddly formatted content due to incorrect markup in our docstrings.
Both will gradually improve.
comment:9 by , 15 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
See TracDev/ApiDocs for the detailed documentation about how to generate the doc yourself, as well as links to the automatically generated documentation on t.e.o.



Yep, I plan to do it at some point.
Unfortunately for you, that is going to be yet another make command ;-) (
make apidoc).