ikiwiki/doc/plugins/contrib/mscgen.mdwn

53 lines
1.2 KiB
Plaintext
Raw Normal View History

[[!template id=plugin name=mscgen author="[[users/Tjgolubi]]"]]
2011-11-06 04:40:02 +01:00
[[!tag type/widget]]
2011-11-07 01:44:49 +01:00
## NAME
IkiWiki::Plugin::mscgen - embed message sequence chart
## SYNOPSIS
In the ikiwiki setup file, enable this plugin by adding it to the list of active plugins.
add_plugins:
- mscgen
## DESCRIPTION
2011-11-06 05:08:57 +01:00
This plugin provides the msc [[ikiwiki/directive]].
2011-11-06 04:40:02 +01:00
This directive allows embedding [mscgen](http://www.mcternan.me.uk/mscgen/)
2011-11-07 01:44:49 +01:00
message sequence chart graphs in an ikiwiki page.
2011-11-06 04:40:02 +01:00
2011-11-07 01:44:49 +01:00
Here's an example that shows how an mscgen message sequence chart is embedded into an ikiwiki page.
2011-11-06 04:40:02 +01:00
\[[!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"];
|||;
"""]]
2011-11-07 01:44:49 +01:00
Security implications: to be determined.
2011-11-06 04:40:02 +01:00
2011-11-07 01:44:49 +01:00
This plugin borrows heavily from the [[graphviz|plugins/graphviz]] plugin written by [[JoshTriplett]].
2011-11-06 04:40:02 +01:00
2011-11-07 01:44:49 +01:00
## PREREQUISITES
IkiWiki
mscgen
Digest::SHA
2011-11-06 04:40:02 +01:00
2011-11-07 01:44:49 +01:00
## DOWNLOAD
2011-11-06 04:40:02 +01:00
2011-11-07 01:44:49 +01:00
* browse at GitHub: <http://github.com/tjgolubi/ikiwiki.mscgen>
* repo at git://github.com/tjgolubi/ikiwiki.mscgen.git
2011-11-06 04:40:02 +01:00
2011-11-06 05:01:00 +01:00