From 8f67b981cd89d146fec158b3be819e6f9c48e1f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= Date: Fri, 15 Apr 2016 17:29:44 -0400 Subject: announce the admonition plugin --- doc/plugins/contrib/admonition.mdwn | 56 +++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 doc/plugins/contrib/admonition.mdwn (limited to 'doc/plugins') diff --git a/doc/plugins/contrib/admonition.mdwn b/doc/plugins/contrib/admonition.mdwn new file mode 100644 index 000000000..de71738b2 --- /dev/null +++ b/doc/plugins/contrib/admonition.mdwn @@ -0,0 +1,56 @@ +[[!meta author="anarcat"]] +[[!template id=plugin name=admonition author="[[anarcat]]"]] +[[!tag type/chrome]] + +# Admonitions + +This plugin adds directives that allow users to outline certain +sections of text using a custom style sheet and bright icons. + +5 directives are available: + +* [[ikiwiki/directives/tip]] +* [[ikiwiki/directives/note]] +* [[ikiwiki/directives/important]] +* [[ikiwiki/directives/caution]] +* [[ikiwiki/directives/warning]] + +Or, in Ikiwiki markup: + + \[[!tip "Lorem ipsum dolor sit amet, consectetuer adipiscing elit."]] + \[[!note "Vivamus id enim."]] + \[[!important "In id erat non orci commodo lobortis."]] + \[[!caution "In id erat non orci commodo lobortis."]] + \[[!warning "Phasellus neque orci, porta a, aliquet quis, semper a, massa."]] + +Those directives simply create a `
` elements in the right +style. So the above can also be simply written as: + +
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
+
Vivamus id enim.
+
In id erat non orci commodo lobortis.
+
In id erat non orci commodo lobortis.
+
Phasellus neque orci, porta a, aliquet quis, semper a, massa.
+ +# Rationale + +The idea behind the directives is to make the the CSS elements easier +to discover through the builtin documentation. Obviously, more +admonitions can be created simply by adding similar icons and CSS +elements. Of course, you will not get the above directives expanded +automatically unless you patch the admonition plugin, unfortunately. + +# Code + +[[!template id=gitbranch branch=anarcat/admonitions author="[[anarcat]]"]] + +The [[!taglink patch]] is available from +[anarcat's "admonition" branch][] and is designed to be merged in +Ikiwiki directly: + + git clone -b admonitions git://src.anarc.at/ikiwiki.git + +[anarcat's "admonition" branch]: http://src.anarc.at/ikiwiki.git/shortlog/refs/heads/admonitions + +See also [[todo/admonitions]] for the discussion leading to the +creation of this plugin. -- cgit v1.2.3