Changes between Version 17 and Version 18 of TracDev/ApiDocs
- Timestamp:
- Feb 16, 2015, 8:57:14 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/ApiDocs
v17 v18 37 37 //In italic: corresponds to the latest revision on the branch.// 38 38 39 For now, the two sets of documentations are complementary. Because epydoc is no longer maintained, the Sphinx documentation will take precedence. 40 41 apidoc :: Semi-automatic API documentation, generated using [http://sphinx.pocoo.org Sphinx]. \\ 42 Sphinx offers fine-grained control over the generated documentation and the order in which it appears. We've also written additional explanations and examples not present in the code. Therefore, this documentation reads better than the purely auto-generated manual. The downside is that we don't have yet full coverage of the API. //(introduced in Trac 1.0, work in progress)// 43 39 44 apiref :: Full API reference, generated using [http://epydoc.sourceforge.net/ epydoc]. \\ 40 45 With epydoc, the entirety of the API is covered, but there is less control over the generated output, as it only shows what is present in the source code. The documentation has a more auto-generated feel. 41 46 42 apidoc :: Semi-automatic API documentation, generated using [http://sphinx.pocoo.org Sphinx]. \\43 Sphinx offers fine-grained control over the generated documentation and the order in which it appears. We've also written additional explanations and examples not present in the code. Therefore, this documentation reads better than the purely auto-generated manual. The downside is that we don't have yet full coverage of the API. //(work in progress)//44 45 For now, the two sets of documentations are complementary. Because epydoc is no longer maintained, the Sphinx documentation will take precedence.46 47 Note that starting from Trac 1.0, the quality of the generated documentation is gradually improved, because it was the release where this documentation method was introduced.48 49 47 == Generating the documentation 50 51 === Epydoc — `make apiref`52 53 Once you have installed `epydoc`, go to your Trac trunk checkout and do:54 {{{55 $ make apiref56 }}}57 This will generate the `epydoc` documentation in `./build/doc/epydoc`, start with the `index.html` page.58 59 Note that while installing epydoc with `easy_install` might work on Linux (not tested), on Windows you should rather download and execute the Windows installer.60 48 61 49 === Sphinx — `make apidoc` … … 117 105 * .. autofunction :: validate_page_name 118 106 }}} 107 108 === Epydoc — `make apiref` 109 110 Once you have installed `epydoc`, go to your Trac trunk checkout and do: 111 {{{ 112 $ make apiref 113 }}} 114 This will generate the `epydoc` documentation in `./build/doc/epydoc`, start with the `index.html` page. 115 116 Note that while installing epydoc with `easy_install` might work on Linux (not tested), on Windows you should rather download and execute the Windows installer. 117