| 1 | = Integrate UML diagrams with Trac = |
| 2 | |
| 3 | == Description == |
| 4 | |
| 5 | [WebSequenceDiagramPlugin WebSequenceDiagram] is a plug-in for integrating UML sequence diagrams from [http://www.websequencediagrams.com/ Web Sequence Diagrams] in Trac wiki pages. It can be found [http://www.websequencediagrams.com/embedding.html here]. |
| 6 | |
| 7 | This is not my own hack! I was looking for a UML sequence diagramming tool that integrates with Trac and finally stumbled upon this one months after I started looking. There was not a Trac Hacks page, so I thought it would be worthwhile to add one. |
| 8 | |
| 9 | The author is Carl Gould of Inductive Automation. |
| 10 | |
| 11 | == Bugs/Feature Requests == |
| 12 | |
| 13 | Existing bugs and feature requests for WebSequenceDiagramPlugin are |
| 14 | [report:9?COMPONENT=WebSequenceDiagramPlugin here]. |
| 15 | |
| 16 | If you have any issues, create a |
| 17 | [http://trac-hacks.org/newticket?component=WebSequenceDiagramPlugin&owner=rjollos new ticket]. |
| 18 | |
| 19 | == Download == |
| 20 | |
| 21 | Download the zipped source from [download:websequencediagramplugin here]. |
| 22 | |
| 23 | == Source == |
| 24 | |
| 25 | You can check out WebSequenceDiagramPlugin from [http://trac-hacks.org/svn/websequencediagramplugin here] using Subversion, or [source:websequencediagramplugin browse the source] with Trac. |
| 26 | |
| 27 | == Example == |
| 28 | |
| 29 | == Notes == |
| 30 | |
| 31 | A simple macro to include a sequence diagram from www.websequencediagrams.com. |
| 32 | |
| 33 | == Installation via Source == |
| 34 | |
| 35 | The installation of the sequence diagram plugin from source is done by |
| 36 | creating a Python egg distribution file and copying the .egg file to |
| 37 | the Trac plugins directory. Detailed information on Python eggs can be |
| 38 | found at: http://peak.telecommunity.com/DevCenter/PythonEggs. In |
| 39 | addition, the Easy Install package is required to create Python |
| 40 | eggs. See http://peak.telecommunity.com/DevCenter/EasyInstall for more |
| 41 | information on using and installing Easy Install. |
| 42 | |
| 43 | Change to the download directory and run: |
| 44 | |
| 45 | python setup.py bdist_egg |
| 46 | |
| 47 | This will generate a python egg in the dist directory. Copy the egg |
| 48 | file into the trac/plugins directory and follow the Configuration |
| 49 | steps outlined below. |
| 50 | |
| 51 | == Configuration (trac.ini) == |
| 52 | |
| 53 | |
| 54 | To enable the plugin:: |
| 55 | |
| 56 | [components] |
| 57 | sequencediagram.* = enabled |
| 58 | |
| 59 | Optionally you can specify a style for the sequence diagram by adding |
| 60 | a sequence diagram section to the trac.ini file: |
| 61 | |
| 62 | [sequencediagram] |
| 63 | style = rose |
| 64 | |
| 65 | == Example == |
| 66 | |
| 67 | An example usage:: |
| 68 | |
| 69 | {{{ |
| 70 | {{{ |
| 71 | #!SequenceDiagram |
| 72 | Alice->Bob: Authentication Request |
| 73 | note right of Bob: Bob thinks about it. |
| 74 | Bob-->Alice: Authentication Response |
| 75 | }}} |
| 76 | }}} |
| 77 | |
| 78 | |
| 79 | == Recent Changes == |
| 80 | |
| 81 | [[ChangeLog(websequencediagramplugin, 3)]] |
| 82 | |
| 83 | == Author/Contributors == |
| 84 | |
| 85 | '''Author:''' [wiki:rjollos] [[BR]] |
| 86 | '''Contributors:''' |