From 2a1dc7f3d7810847e079867bb3cdad5fd4fa895a Mon Sep 17 00:00:00 2001 From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org> Date: Thu, 3 Jun 1999 20:13:08 +0200 Subject: [PATCH] more wmmldoc Rev: tutorial/Makefile:1.22 Rev: tutorial/html.pike:1.22 Rev: tutorial/wmml.wmml:1.4 --- tutorial/Makefile | 3 +++ tutorial/html.pike | 2 +- tutorial/wmml.wmml | 53 ++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 55 insertions(+), 3 deletions(-) diff --git a/tutorial/Makefile b/tutorial/Makefile index 5792b968d9..89b62aef20 100644 --- a/tutorial/Makefile +++ b/tutorial/Makefile @@ -41,6 +41,9 @@ tutorial_onepage.html: .DUMMY $(SRCFILES) tut.html: .DUMMY $(SRCFILES) $(pike) ./wmmltohtml2 tutorial.wmml sitebuilder tut +wmml.html: .DUMMY wmml.wmml + $(pike) ./wmmltohtml2 wmml.wmml html_onepage wmml + manpages: .DUMMY $(SRCFILES) $(pike) ./wmmltohtml2 tutorial.wmml manpages man/man diff --git a/tutorial/html.pike b/tutorial/html.pike index 1a956923a3..1b3cfd61c2 100644 --- a/tutorial/html.pike +++ b/tutorial/html.pike @@ -510,7 +510,7 @@ SGML convert(SGML data) Sgml.Tag("td",(["align":"left"]),data->pos, ({Sgml.Tag("font",(["size":"-2"]), data->pos,({"description"}))}))}))})+ - data->data) + (data->data||({}))) })); continue; diff --git a/tutorial/wmml.wmml b/tutorial/wmml.wmml index 6ea6562cbd..5ea28f99b0 100644 --- a/tutorial/wmml.wmml +++ b/tutorial/wmml.wmml @@ -38,7 +38,8 @@ This is a terse documentation about WMML. <adesc>what language the example is written in; pike and c are supported</adesc></aargdesc> <aargdesc><aarg>meta</aarg> - <adesc>comma-separated list of ?</adesc></aargdesc> + <adesc>comma-separated list of keywords that will be in italics</adesc></aargdesc> +</man_arguments> <man_description> This tag marks an area as an example. If <tt>language</tt> equals "<tt>pike</tt>" or "<tt>c</tt>", the are will count as preformatted. @@ -46,11 +47,59 @@ This tag marks an area as an example. If <tt>language</tt> equals <man_see>man_example, data_description</man_see> </method> +<method name=data_description title="?"> +<man_syntax> +<data_description> ... </data_description> +</man_syntax> +<man_arguments> +</man_arguments> +<man_description> data_description type= +</man_description> +<man_see></man_see> +</method> + +<method name=firstpage title="?"> +<man_syntax> +<firstpage> ... </firstpage> +</man_syntax> +<man_arguments> +</man_arguments> +<man_description> firstpage -ref to= +</man_description> +<man_see></man_see> +</method> + +<method name=ref title="?"> +<man_syntax> +<ref> ... </ref><br> +<ref to=somewhere> ... </ref><br> +</man_syntax> +<man_arguments> +<aargdesc><aarg>to</aarg> + <adesc>optional destination</adesc></aargdesc> +</man_arguments> +<man_description> +Adds a hyperlink around that area; default destination is resolved by +the contents. +</man_description> +<man_see>link, anchor</man_see> +</method> + +<method name=anchor title="?"> +<man_syntax> +<anchor> ... </anchor> +</man_syntax> +<man_arguments> +</man_arguments> +<man_description> anchor name= +</man_description> +<man_see></man_see> +</method> + </section title="markup tags (implying format)"> -- GitLab