From 60ea247480e3afd12de42a6ea71454d61a302108 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawlkQOG_UxmAVOjXBQJLpiBmBWXEiTL9PYw" Date: Sat, 5 Nov 2011 23:40:02 -0400 Subject: [PATCH 1/1] Added mscgen plugin. --- doc/plugins/contrib/mscgen.mdwn | 53 +++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 doc/plugins/contrib/mscgen.mdwn 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 -- 2.39.5