1 INFO: Generate UML diagrams from docutils using PlantUML
2 ========================================================
4 Being able to generate html/pdf documents with diagrams from vi or automaticaly is great for me. Many many thanks to docutils and plantuml developers for sharing their vision and the effort!
6 ASK: mauriciocap@gmail.com / http://www.mauriciocap.com.ar
8 SEE: http://plantuml.sourceforge.net/ Generate UML diagrams from text, runnable from a single jar!
10 SEE: http://docutils.sourceforge.net/ Conveniently write and generate documents in various output formats
12 SEE: http://code.google.com/p/rst2pdf/ Generate PDF output without latex in windows
16 **WARNING:** the directive EXECUTES an external program with an argument passed from the rst input file! Don't use it if to process input files you don't trust.
18 #. replace/patch your docutils distribution with the files in src/, e.g. in my cygwin instance
21 # cp -r src/* /usr/lib/python2.5/site-packages/docutils
23 #. see usage examples in usage/ including how to setup defaults PlantUML
28 SEE: diagrams at http://plantuml.sourceforge.net/ , ALL should work as long as your plantuml installation works
30 USE the "uml" directive and write an indented block of PlantUML commands. No arguments are required, an image will be generated and inlined. The name is derived from the input line number, the generatd plantuml "source" is keep in the same directory.
35 participant "First Class" as A
36 participant "Second Class" as B
37 participant "Last Class" as C
42 A -> B: << createRequest >>
50 B --> A: Request <u>Created</u>
61 participant "First Class" as A
62 participant "Second Class" as B
63 participant "Last Class" as C
68 You can pass a filename for the image (WITHOUT extension) as an optional parameter.
70 .. uml:: uml2/myDiagram123
73 participant "First Class" as A
74 participant "Second Class" as B
75 participant "Last Class" as C
83 This was a quick (but effective) hack :) In the near future I'd like to:
85 * implement the image generation as a "writer" instead, as docutils architecture suggest
87 * contribute tests and better documentation
89 Please let me know how can I be of more help!
91 mauriciocap@gmail.com / http://www.mauriciocap.com.ar