Changes between Version 71 and Version 72 of DoxygenPlugin
- Timestamp:
- Feb 12, 2016, 11:16:44 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DoxygenPlugin
v71 v72 15 15 This plugin is compatible with the following releases of Trac: 16 16 - 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 20 This documentation covers all versions. 20 21 21 22 == Bugs/Feature Requests … … 31 32 == Download 32 33 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].34 Download the zipped source for the appropriate branch: [export:doxygenplugin/0.10 0.10], [export:doxygenplugin/0.11 0.11], [export:doxygenplugin/trunk trunk]. 34 35 35 36 == Source … … 46 47 Download 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`. 47 48 48 Change to the doxygenplugin/ 0.10directory and run:49 Change to the doxygenplugin/trunk (or another version) directory and run: 49 50 50 51 {{{#!sh … … 59 60 60 61 {{{#!sh 61 $ sudo easy_install https://trac-hacks.org/svn/doxygenplugin/ 0.11/62 $ sudo easy_install https://trac-hacks.org/svn/doxygenplugin/trunk/ 62 63 }}} 63 64 … … 141 142 These are all the configuration options recognized in the `[doxygen]` section of TracIni: 142 143 || '''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)''. || || 145 146 || `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 || 148 148 || `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. || || 149 149 || `index` || Default index page to pick in the generated documentation. || main.html || 150 150 || `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 || 152 154 ^''(up to date with r1249)''^ 155 153 156 154 157 If you install the plugin globally, you will also need to enable it in your `trac.ini` file: … … 160 163 === Configuring Doxygen 161 164 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. 165 The 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] 167 and 168 [http://www.stack.nl/~dimitri/doxygen/manual/config.html#cfg_searchenginel SEARCHENGINE] 169 both to YES. Note that calls to the search engine used by Doxygen will be hijacked by 170 the Trac search engine. 171 172 You 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): 170 174 171 175 {{{ … … 177 181 and [http://www.stack.nl/~dimitri/doxygen/config.html#cfg_html_footer HTML_FOOTER]. 178 182 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. 183 In versions <= 0.11, the [http://www.stack.nl/~dimitri/doxygen/config.html#cfg_create_subdirs CREATE_SUBDIRS] option should be set to NO; 184 this is not mandatory anymore. 189 185 190 186 == TracLinks … … 195 191 If `documentation_path` is not specified, the `[doxygen] default_documentation` setting will be used instead. 196 192 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} 193 The `documentation_target` part is used for specifying what Doxygen generated content will be displayed when following the link. 194 It must be a name for which a documentation was produced by Doxygen, depending on the way you ran it. 195 Most of the time, it will be a function, a classe, a file etc. 196 Technically, it must be the content of a `field` tag having a `name` attribute equals to `name` in the `searchdata_file`. 203 197 204 198 Some examples: 205 199 {{{ 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 217 204 218 205 == Recent Changes