From 701720198f2c3464b8fcac55a951e9f54cb4c1dc Mon Sep 17 00:00:00 2001
From: Joey Hess <joey@kodama.kitenet.net>
Date: Thu, 11 Sep 2008 18:00:25 -0400
Subject: [PATCH] move demo back to plugin page

---
 doc/plugins/polygen.mdwn                  | 23 +++++++++++++++++++++--
 underlays/basewiki/directive/polygen.mdwn | 19 -------------------
 2 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/doc/plugins/polygen.mdwn b/doc/plugins/polygen.mdwn
index fa4aa0bf7..6045c1ec9 100644
--- a/doc/plugins/polygen.mdwn
+++ b/doc/plugins/polygen.mdwn
@@ -1,5 +1,24 @@
 [[!template id=plugin name=polygen author="Enrico Zini"]]
 [[!tag type/fun]]
 
-This plugin implements the [[ikiwiki/directive/polygen]] [[ikiwiki/directive]].
-The directive allows inserting text generated by polygen into a wiki page.
+This plugin provides the [[ikiwiki/directive/polygen]] [[ikiwiki/directive]],
+which allows inserting text generated by polygen into a wiki page.
+
+[[!if test="enabled(polygen)" then="""
+----
+
+Here are a few notes about ikiwiki, courtesy of polygen:
+
+Ikiwiki is internally based on a [[!polygen grammar="designpatterns"]]
+coupled to a [[!polygen grammar="designpatterns"]], as described in
+"[[!polygen grammar="paper"]]" by [[!polygen grammar="nipponame"]] of
+[[!polygen grammar="boyband"]].
+
+Ikiwiki reviews:
+<ul>
+<li>[[!polygen grammar="reviews"]]</li>
+<li>[[!polygen grammar="reviews"]]</li>
+<li>[[!polygen grammar="reviews"]]</li>
+</ul>
+
+"""]]
diff --git a/underlays/basewiki/directive/polygen.mdwn b/underlays/basewiki/directive/polygen.mdwn
index 72b031235..0ad5c12e3 100644
--- a/underlays/basewiki/directive/polygen.mdwn
+++ b/underlays/basewiki/directive/polygen.mdwn
@@ -7,22 +7,3 @@ For example:
 
 It's also possible to specify a starting nonterminal for the grammar by
 including `symbol="text"` in the directive.
-
-[[!if test="enabled(polygen)" then="""
-----
-
-Here are a few notes about ikiwiki, courtesy of polygen:
-
-Ikiwiki is internally based on a [[!polygen grammar="designpatterns"]]
-coupled to a [[!polygen grammar="designpatterns"]], as described in
-"[[!polygen grammar="paper"]]" by [[!polygen grammar="nipponame"]] of
-[[!polygen grammar="boyband"]].
-
-Ikiwiki reviews:
-<ul>
-<li>[[!polygen grammar="reviews"]]</li>
-<li>[[!polygen grammar="reviews"]]</li>
-<li>[[!polygen grammar="reviews"]]</li>
-</ul>
-
-"""]]
-- 
2.39.5