]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/plugins/contrib/mscgen.mdwn
ikiwiki (3.20140916) unstable; urgency=low
[git.ikiwiki.info.git] / doc / plugins / contrib / mscgen.mdwn
1 [[!template id=plugin name=mscgen author="[[users/Tjgolubi]]"]]
2 [[!tag type/widget]]
4 ## NAME
6 IkiWiki::Plugin::mscgen - embed message sequence chart
8 ## SYNOPSIS
10 In the ikiwiki setup file, enable this plugin by adding it to the list of active plugins.
12     add_plugins:
13       - mscgen
15 ## DESCRIPTION
17 This plugin provides the msc [[ikiwiki/directive]].
18 This directive allows embedding [mscgen](http://www.mcternan.me.uk/mscgen/)
19 message sequence chart graphs in an ikiwiki page.
21 Here's an example that shows how an mscgen message sequence chart is embedded into an ikiwiki page.
23     \[[!msc src="""
24       arcgradient = 8;
26       a [label="Client"],b [label="Server"];
28       a=>b [label="data1"];
29       a-xb [label="data2"];
30       a=>b [label="data3"];
31       a<=b [label="ack1, nack2"];
32       a=>b [label="data2", arcskip="1"];
33       |||;
34       a<=b [label="ack3"];
35       |||;
36     """]]
38 Security implications: to be determined.
40 This plugin borrows heavily from the [[graphviz|plugins/graphviz]] plugin written by [[JoshTriplett]].
42 ## PREREQUISITES
43     IkiWiki
44     mscgen
45     Digest::SHA
47 ## DOWNLOAD
49 * browse at GitHub: <http://github.com/tjgolubi/ikiwiki.mscgen>
50 * repo at git://github.com/tjgolubi/ikiwiki.mscgen.git