Changes between Version 5 and Version 6 of PhpdocPlugin
- Timestamp:
- Nov 8, 2015, 3:51:11 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PhpdocPlugin
v5 v6 1 = PHPDocumentor plugin for Trac = 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = = Description ==3 = PHPDocumentor plugin for Trac 4 4 5 Integrates [http://www.phpdoc.org phpdocumentor] documentation into Trac. 5 == Description 6 6 7 Started as a simple copy of the DoxygenPlugin 7 This plugin integrates [http://www.phpdoc.org phpdocumentor] documentation into Trac. Started as a simple copy of the DoxygenPlugin. 8 8 9 9 The phpdoc plugin provides a new main navigation tab (named PHPDoc by default), which will present the phpdoc index page. 10 10 11 Configuring the PHPDoc plugin should be easy if you have only one PHPDoc generated documentation to wrap, and a bit more involved if you have many --but the goal is to have a great deal of flexibility, in the latter case.11 Configuring the PHPDoc plugin should be easy if you have only one PHPDoc generated documentation to wrap, and a bit more involved if you have many, but the goal is to have a great deal of flexibility, in the latter case. 12 12 13 This plugin is tested with the following releases of Trac:13 This plugin is tested with Trac 0.11.3. 14 14 15 * Trac 0.11: Started development with Trac 0.11.3 16 17 18 == Bugs/Feature Requests == 15 == Bugs/Feature Requests 19 16 20 17 Existing bugs and feature requests for PhpdocPlugin are … … 22 19 23 20 If you have any issues, create a 24 [ http://trac-hacks.org/newticket?component=PhpdocPlugin&owner=exarvnew ticket].21 [/newticket?component=PhpdocPlugin new ticket]. 25 22 26 == Download == 23 [[TicketQuery(component=WinSvnHooksIntegration&group=type,format=progress)]] 27 24 28 Download the zipped source from [download:phpdocplugin here]. 25 == Download 29 26 30 == Source == 27 Download the zipped source from [export:phpdocplugin here]. 31 28 32 You can check out PhpdocPlugin from [http://trac-hacks.org/svn/phpdocplugin here] using Subversion, or [source:phpdocplugin browse the source] with Trac. 29 == Source 33 30 34 == Example == 31 You can check out PhpdocPlugin from [/svn/phpdocplugin here] using Subversion, or [source:phpdocplugin browse the source] with Trac. 35 32 36 ---- 37 === Installation === 33 == Installation 38 34 39 35 - Download the zipped source. 40 36 - Extract the zip file 41 - Go to the phpdocplugin/0.11 directory 42 - run: 43 {{{ 37 - Go to the phpdocplugin/0.11 directory and run: 38 {{{#!sh 44 39 python ./setup.py install 45 40 }}} 46 41 47 This will generate a python egg and copy it into the trac/plugins directory and follow the Configuration steps outlined below.42 This will generate a Python egg and copy it into the trac/plugins directory and follow the Configuration steps outlined below. 48 43 49 44 You may prefer the easy_install way: 50 {{{ 51 45 {{{#!sh 46 sudo easy_install http://trac-hacks.org/svn/phpdocplugin/0.11 52 47 }}} 53 48 … … 56 51 add the following to your configuration: 57 52 58 == = Configuring Trac ===59 ==== Basic Configuration ==== 53 == Configuration 54 60 55 A `[phpdoc]` section should be created in TracIni. 61 56 There's only one mandatory setting, it's the `path` to the generated documentation. … … 66 61 parameter which might play a role here. I got best results with the value 'HTML:Smarty:PHP' 67 62 68 '''Example:''' [[br]] 63 == Example 69 64 70 65 First checkout the latest version of your trunk: 71 {{{ 66 {{{#!sh 72 67 mkdir/var/cache/phpdoc 73 68 cd /var/cache/phpdoc … … 78 73 /whereever/you/installed/phpdoc -o HTML:Smarty:PHP -d source -t doc 79 74 }}} 75 80 76 Now you should have the latest source in /var/cache/phpdoc/myproject/source 81 77 And the generated documentation in /var/cache/phpdoc/myproject/doc 82 78 83 79 Now setup Trac's configuration: 84 {{{ 80 {{{#!ini 85 81 [phpdoc] 86 82 path = /var/cache/phpdoc/myproject/doc … … 92 88 On a first view, it appears to work good enough for me with this source and configuration. 93 89 94 Note: If you install the plugin globally, you'll also need to enable it in trac.ini as follows:90 '''Note''': If you install the plugin globally, you'll also need to enable it in trac.ini as follows: 95 91 96 {{{ 92 {{{#!ini 97 93 [components] 98 94 phpdoctrac.* = enabled 99 95 }}} 100 96 101 102 == TracLinks == 97 == TracLinks 103 98 104 99 It's possible to create links to phpdoc documentation from anywhere within a Wiki text, by using the `phpdoc:` link prefix. … … 113 108 }}} 114 109 115 == Recent Changes ==110 == Recent Changes 116 111 117 112 [[ChangeLog(phpdocplugin, 3)]] 118 113 119 == Author/Contributors ==114 == Author/Contributors 120 115 121 116 '''Author:''' [wiki:exarv] [[BR]] 117 '''Maintainer:''' [[Maintainer]] [[BR]] 122 118 '''Contributors:'''