From: https://www.google.com/accounts/o8/id?id=AItOawlkQOG_UxmAVOjXBQJLpiBmBWXEiTL9PYw Date: Sun, 6 Nov 2011 03:40:02 +0000 (-0400) Subject: Added mscgen plugin. X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=commitdiff_plain;h=60ea247480e3afd12de42a6ea71454d61a302108 Added mscgen plugin. --- diff --git a/doc/plugins/contrib/mscgen.mdwn b/doc/plugins/contrib/mscgen.mdwn new file mode 100644 index 000000000..d7eb23a6d --- /dev/null +++ b/doc/plugins/contrib/mscgen.mdwn @@ -0,0 +1,53 @@ +[[!template id=plugin name=mscgen author="[[TerryGolubiewski]]"] +[[!tag type/widget]] + +This plugin provides the mscgen [[ikiwiki/directive]]. +This directive allows embedding [mscgen](http://www.mcternan.me.uk/mscgen/) +message sequence chart graphs in a page. + +Here's an mscgen source example. + + \[[!msc src=""" + arcgradient = 8; + + a [label="Client"],b [label="Server"]; + + a=>b [label="data1"]; + a-xb [label="data2"]; + a=>b [label="data3"]; + a<=b [label="ack1, nack2"]; + a=>b [label="data2", arcskip="1"]; + |||; + a<=b [label="ack3"]; + |||; + """]] + +Security implications: to be determined + +[[!if test="enabled(mscgen)" then=""" +And here's the resulting graph. + +[[!msc src=""" + arcgradient = 8; + + a [label="Client"],b [label="Server"]; + + a=>b [label="data1"]; + a-xb [label="data2"]; + a=>b [label="data3"]; + a<=b [label="ack1, nack2"]; + a=>b [label="data2", arcskip="1"]; + |||; + a<=b [label="ack3"]; + |||; +"""]] + +"""]] + +This plugin uses the [[!cpan Digest::SHA]] perl module. + +This plugin borrows heavily from the [[graphviz|plugins/graphviz]] plugin written by [[JoshTriplett]]. + + +[[!mscgen src= +mscgen is