aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/contrib
diff options
context:
space:
mode:
authorhttp://smcv.pseudorandom.co.uk/ <smcv@web>2012-11-27 08:55:34 -0400
committeradmin <admin@branchable.com>2012-11-27 08:55:34 -0400
commit79c1a8d668c73e7fffd38610161193fad829420e (patch)
treed0938c0bed866a7a91d6ec8e38e0f463967b41e9 /doc/plugins/contrib
parentd783ba07fe65430cb4d709e50d445a147e4743e6 (diff)
downloadikiwiki-79c1a8d668c73e7fffd38610161193fad829420e.tar
ikiwiki-79c1a8d668c73e7fffd38610161193fad829420e.tar.gz
rename plugins/ikiwiki/directive/asymptote.mdwn to plugins/contrib/asymptote/ikiwiki/directive/asymptote.mdwn
Diffstat (limited to 'doc/plugins/contrib')
-rw-r--r--doc/plugins/contrib/asymptote/ikiwiki/directive/asymptote.mdwn27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/plugins/contrib/asymptote/ikiwiki/directive/asymptote.mdwn b/doc/plugins/contrib/asymptote/ikiwiki/directive/asymptote.mdwn
new file mode 100644
index 000000000..3036fc030
--- /dev/null
+++ b/doc/plugins/contrib/asymptote/ikiwiki/directive/asymptote.mdwn
@@ -0,0 +1,27 @@
+The `asymptote` directive is supplied by the [[!iki plugins/asymptote
+desc=asymptote]] plugin.
+
+This directive allows embedding [asymptote](http://asymptote.sourceforge.net/)
+diagrams in a page. Example usage:
+
+ \[[!asymptote src="""
+ import geometry;
+ unitsize(1cm);
+ triangle t = triangle((0,0), (4,0), (0.5,2));
+ show(La="$D$", Lb="$E$", Lc="", t);
+ dot(t.A^^t.B^^t.C);
+ point pD = midpoint(t.BC); dot(pD);
+ point pE = midpoint(t.AC); dot(pE);
+ draw(pD--pE);
+ point A_ = (pD-t.A)*2+t.A; dot("$A'$", A_, NE);
+ draw(t.B--A_--t.C, dashed);
+ draw(t.A--A_, dashed);
+ point E_ = midpoint(line(t.B,A_)); dot(Label("$E'$", E_, E));
+ draw(E_--pD, dashed);
+ """]]
+
+The `asymptote` directive supports the following parameters:
+
+- `src` - The asymptote source code to render.
+
+[[!meta robots="noindex, follow"]]