Changes between Version 71 and Version 72 of DoxygenPlugin


Ignore:
Timestamp:
Feb 12, 2016, 11:16:44 AM (8 years ago)
Author:
Committo-Ergo-Sum
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DoxygenPlugin

    v71 v72  
    1515This plugin is compatible with the following releases of Trac:
    1616 - The [source:/doxygenplugin/0.10 0.10] branch of this plugin is compatible with Trac 0.10, but is ''deprecated''.
    17  - The [source:/doxygenplugin/0.11 0.11] branch of this plugin is compatible with Trac 0.11, 0.12 and 1.0+; and is being maintained.
    18 
    19 This documentation covers both versions, but is more accurate for the latter.
     17 - The [source:/doxygenplugin/0.11 0.11] branch of this plugin is compatible with Trac >= 0.11 and Doxygen < 1.8; and is not maintained.
     18 - The [source:/doxygenplugin/trunk trunk] branch of this plugin is compatible with Trac >= 0.11 and Doxygen >= 1.8, and is under development.
     19
     20This documentation covers all versions.
    2021
    2122== Bugs/Feature Requests
     
    3132== Download
    3233
    33 Download the zipped source for the appropriate branch: [export:doxygenplugin/0.9 0.9], [export:doxygenplugin/0.10 0.10], [export:doxygenplugin/0.11 0.11].
     34Download the zipped source for the appropriate branch: [export:doxygenplugin/0.10 0.10], [export:doxygenplugin/0.11 0.11],  [export:doxygenplugin/trunk trunk].
    3435
    3536== Source
     
    4647Download the source code for the DoxygenPlugin from [export:doxygenplugin here] or checkout the source from the Trac hacks subversion repository at `http://trac-hacks.org/svn/doxygenplugin`.
    4748
    48 Change to the doxygenplugin/0.10 directory and run:
     49Change to the doxygenplugin/trunk (or another version) directory and run:
    4950
    5051{{{#!sh
     
    5960
    6061{{{#!sh
    61 $ sudo easy_install https://trac-hacks.org/svn/doxygenplugin/0.11/
     62$ sudo easy_install https://trac-hacks.org/svn/doxygenplugin/trunk/
    6263}}}
    6364
     
    141142These are all the configuration options recognized in the `[doxygen]` section of TracIni:
    142143|| '''Option Name''' || '''Documentation''' || '''Default value''' ||
    143 || '''`path`''' || Directory containing doxygen generated files. ||  ||
    144 || `html_output` ||Default documentation project suffix, as generated by Doxygen using the HTML_OUTPUT Doxygen configuration setting. ''Since 0.10''. || ||
     144|| `path` || Directory containing doxygen generated files. ||  ||
     145|| `html_output` ||Default documentation project suffix, as generated by Doxygen using the HTML_OUTPUT Doxygen configuration setting. ''(Since 0.10)''. || ||
    145146|| `title`      || Title to use for the main navigation tab. || Doxygen ||
    146 || `ext`        || Space separated list of extensions for doxygen managed files. || htm html png ||
    147 || `source_ext` || Space separated list of source files extensions. || idl odl java cs py php php4 inc phtml m cpp cxx c hpp hxx h ||
     147|| `searchdata_file` || the name of the file specified by the "SEARCHDATA_FILE" option of DOXYGEN.  ''(unavailable in versions <= 0.11)''|| searchdata.xml ||
    148148|| `default_documentation` || Default documentation project, relative to [doxygen] path. When no explicit path is given in a documentation request, this path will be prepended to the request before looking for documentation files. ||   ||
    149149|| `index`      || Default index page to pick in the generated documentation. || main.html ||
    150150|| `wiki_index` || Wiki page to use as the default page for the Doxygen main page. If set, supersedes the [doxygen] index option. ||   ||
    151 || `encoding`   || Default encoding used by the generated documentation files. ''Since 0.10''. || iso-8859-1 ||
     151|| `encoding`   || Default encoding used by the generated documentation files. ''(Since 0.10)''. || utf-8 (iso-8859-1 in versions <= 0.11) ||
     152|| `ext`        || Space separated list of extensions for doxygen managed files. ''(deprecated after version 0.11)'' || htm html png ||
     153|| `source_ext` || Space separated list of source files extensions.  ''(deprecated after version 0.11)''  || idl odl java cs py php php4 inc phtml m cpp cxx c hpp hxx h ||
    152154^''(up to date with r1249)''^
     155
    153156
    154157If you install the plugin globally, you will also need to enable it in your `trac.ini` file:
     
    160163=== Configuring Doxygen
    161164
    162 The only configuration setting in the Doxyfile that is required to make this plugin work is
    163 [http://www.stack.nl/~dimitri/doxygen/config.html#cfg_generate_html GENERATE_HTML]:
    164 
    165 {{{#!comment
    166 GENERATE_TREEVIEW doesn't seem to be needed... Why was this part of the mandatory settings?
    167 }}}
    168 
    169 Since this plugin embeds the html pages generated by doxygen, you will need to define a custom header and footer, even if it contains only a blank line.
     165The configuration settings in the Doxyfile that are required to make this plugin work are
     166[http://www.stack.nl/~dimitri/doxygen/manual/config.html#cfg_generate_html GENERATE_HTML]
     167and
     168[http://www.stack.nl/~dimitri/doxygen/manual/config.html#cfg_searchenginel SEARCHENGINE]
     169both to YES. Note that calls to the search engine used by Doxygen will be hijacked by
     170the Trac search engine.
     171
     172You may replace the standard Doxygen header and footer HTML by your own
     173(this was mandatory in versions <= 0.11, even if they contain only a blank line):
    170174
    171175{{{
     
    177181and [http://www.stack.nl/~dimitri/doxygen/config.html#cfg_html_footer HTML_FOOTER].
    178182
    179 These files must contain something, a blank line is sufficient, or else Doxygen will put in the defaults. You can put there your own CSS style as in the following example:
    180 {{{#!css
    181 <style type="text/css">
    182    h1 { text-align: center; }
    183 </style>
    184 }}}
    185 
    186 and my !TracFooter.html contains a blank line.
    187 
    188 To enable the search option, the [http://www.stack.nl/~dimitri/doxygen/config.html#cfg_searchengine SEARCHENGINE] setting must be set to `YES`. Of course, calls to the PHP search script will be hijacked by this plugin, so there is no need to have PHP installed.
     183In versions <= 0.11, the [http://www.stack.nl/~dimitri/doxygen/config.html#cfg_create_subdirs CREATE_SUBDIRS] option should be set to NO;
     184this is not mandatory anymore.
    189185
    190186== TracLinks
     
    195191If `documentation_path` is not specified, the `[doxygen] default_documentation` setting will be used instead.
    196192
    197 The `documentation_target` part is used for specifying what Doxygen generated content will be displayed when following the link. It can be:
    198  - the name of one of the many documentation summary page generated by Doxygen:
    199    * annotated, classes, dirs, files, functions, globals, hierarchy, index, inherits, main, namespaces and namespacemembers
    200  - the name of a documented struct or class
    201  - the name of a directory {o}
    202  - the name of a file {o}
     193The `documentation_target` part is used for specifying what Doxygen generated content will be displayed when following the link.
     194It must be a name for which a documentation was produced by Doxygen, depending on the way you ran it.
     195Most of the time, it will be a function, a classe, a file etc.
     196Technically, it must be the content of a `field` tag having a `name` attribute equals to `name` in the `searchdata_file`.
    203197
    204198Some examples:
    205199{{{
    206 [doxygen:main.html Documentation] # Simple documentation in Doxygen path.
    207 
    208 [doxygen:FirstProject/annotated Annotated List of Classes in FirstProject]
    209 [doxygen:SecondProject/main.html Main doc index for SecondProject]
    210 }}}
    211 
    212 To use links to documented structs or classes Doxygen needs to be configured '''not''' to generate subdirectories, see [http://www.stack.nl/~dimitri/doxygen/config.html#cfg_create_subdirs CREATE_SUBDIRS]. Also filenames generated must be case sensitive, preserving the original casing ([http://www.stack.nl/~dimitri/doxygen/config.html#cfg_case_sense_names CASE_SENSE_NAMES] must be set to "YES").
    213 
    214 == Example
    215 
    216 An example use of the DoxygenPlugin can be seen on the [http://developer.pidgin.im/doxygen/ Pidgin] site.
     200[doxygen:foo] # Link to the documentation of the function (or class etc) foo in the main documentation.
     201[doxygen:SecondProject/foo] similarly for another documentation
     202}}}
     203
    217204
    218205== Recent Changes