From eac31eff5c9147792c2886359b0faa4615e51e77 Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 20 Nov 2006 11:31:23 +0000 Subject: shortcut stuff --- doc/install.mdwn | 22 ++++++++++++---------- doc/plugins/ddate.mdwn | 4 ++-- doc/plugins/htmlscrubber.mdwn | 2 +- doc/plugins/openid.mdwn | 6 +++--- doc/plugins/template.mdwn | 7 ++++--- doc/plugins/wikitext.mdwn | 6 +++--- doc/todo/shortcut_link_text.mdwn | 20 +++++++++++++++++++- 7 files changed, 44 insertions(+), 23 deletions(-) (limited to 'doc') diff --git a/doc/install.mdwn b/doc/install.mdwn index 08a446fb8..ed6d499c5 100644 --- a/doc/install.mdwn +++ b/doc/install.mdwn @@ -5,14 +5,16 @@ most unix-like systems. Ikiwiki is a perl program, and needs a recent version of perl such as 5.8.8. (5.8.0 has been reported not to work). -Ikiwiki requires the `Text::MarkDown`, `URI` and `HTML::Parser` perl -modules be installed, and also uses the following perl modules if -available: -`CGI::Session` `CGI::FormBuilder` (version 3.02.02 or newer) -`HTML::Template` `Mail::Sendmail` `Time::Duration` `Date::Parse`, -`HTML::Scrubber`, `RPC::XML`, `XML::Simple`, `XML::Feed`, `File::MimeInfo`. +Ikiwiki requires the [[cpan Text::MarkDown]], [[cpan URI]] and +[[cpan HTML::Parser]] perl modules be installed, and also uses the +following perl modules if available: +[[cpan CGI::Session]], [[cpan CGI::FormBuilder]] (version 3.02.02 or newer, +but 3.0401 might be broken), +[[cpan HTML::Template]], [[cpan Mail::Sendmail]], [[cpan Time::Duration]] +[[cpan TimeDate]], [[cpan HTML::Scrubber]], [[cpan RPC::XML]], +[[cpan XML::Simple]], [[cpan XML::Feed]], [[cpan File::MimeInfo]]. -The [[tla]] support also needs the `MailTools` perl module. +The [[tla]] support also needs the [[cpan MailTools]] perl module. Various [[plugins]] use other libraries and utlities; see their individual documentation for details. @@ -20,9 +22,9 @@ documentation for details. If you want to install from the tarball, you should make sure that the required perl modules are installed, then run: - perl Makefile.PL # PREFIX=/dir to install elsewhere - make + perl Makefile.PL # PREFIX=/dir to install elsewhere + make make test # optional - make install + make install See [[download]] for where to get it. diff --git a/doc/plugins/ddate.mdwn b/doc/plugins/ddate.mdwn index c35afe4ca..307673048 100644 --- a/doc/plugins/ddate.mdwn +++ b/doc/plugins/ddate.mdwn @@ -4,5 +4,5 @@ Enables use of Discordian dates. `--timeformat` can be used to change the date format; see `ddate(1)`. -This plugin requires the DateTime and DateTime::Calendar::Discordian -perl modules. +This plugin requires the [[cpan DateTime]] and +[[cpan DateTime::Calendar::Discordian]] perl modules. diff --git a/doc/plugins/htmlscrubber.mdwn b/doc/plugins/htmlscrubber.mdwn index e3652a847..a064c4901 100644 --- a/doc/plugins/htmlscrubber.mdwn +++ b/doc/plugins/htmlscrubber.mdwn @@ -10,7 +10,7 @@ whitelisted using the same lists as used by Mark Pilgrim's Universal Feed Parser, documented at . Notably it strips `style`, `link`, and the `style` attribute. -It uses the HTML::Scrubber perl module to perform its html +It uses the [[cpan HTML::Scrubber]] perl module to perform its html sanitisation, and this perl module also deals with various entity encoding tricks. diff --git a/doc/plugins/openid.mdwn b/doc/plugins/openid.mdwn index 133529ea7..a6e01ccc5 100644 --- a/doc/plugins/openid.mdwn +++ b/doc/plugins/openid.mdwn @@ -4,9 +4,9 @@ This plugin allows users to use their [OpenID](http://openid.net/) to log into the wiki. -The plugin needs the `Net::OpenID::Consumer` perl module. The -`LWPx::ParanoidAgent` perl module is used if available, for added -security. Finally, the `Crypt::SSLeay` perl module is needed to support +The plugin needs the [[cpan Net::OpenID::Consumer]] perl module. The +[[cpan LWPx::ParanoidAgent]] perl module is used if available, for added +security. Finally, the [[cpan Crypt::SSLeay]] perl module is needed to support users entering "https" OpenID urls. This plugin has a configuration option. You can set `--openidsignup` diff --git a/doc/plugins/template.mdwn b/doc/plugins/template.mdwn index 8b089d904..7b70bb281 100644 --- a/doc/plugins/template.mdwn +++ b/doc/plugins/template.mdwn @@ -27,9 +27,10 @@ To create a template, make a page in the wiki named `template/foo`. Note that this is a different location than the directory used for the [[templates]] used to build the wiki itself, which is not inside the wiki. -The template uses the syntax used by the HTML::Template perl module, which -allows for some fairly complex things to be done. Consult its documentation -for the full syntax, but all you really need to know are a few things: +The template uses the syntax used by the [[cpan HTML::Template]] perl +module, which allows for some fairly complex things to be done. Consult its +documentation for the full syntax, but all you really need to know are a +few things: * To insert the value of a variable, use ``. * To make a block of text conditional on a variable being set use diff --git a/doc/plugins/wikitext.mdwn b/doc/plugins/wikitext.mdwn index d7768f0f8..abbebb677 100644 --- a/doc/plugins/wikitext.mdwn +++ b/doc/plugins/wikitext.mdwn @@ -2,9 +2,9 @@ [[tag type/format]] This plugin allows ikiwiki to process pages written in the original wiki -text format. To use it, you need to have the Text::WikiFormat perl module -installed, enable the plugin, then files with the extention `.wiki` will be -processed as wiki text. +text format. To use it, you need to have the [[cpan Text::WikiFormat]] perl +module installed, enable the plugin, then files with the extention `.wiki` +will be processed as wiki text. Wiki formatting is very simple. An item wrapped in three single quotes is strong. An item wrapped in two single quotes is emphasized. Four or more diff --git a/doc/todo/shortcut_link_text.mdwn b/doc/todo/shortcut_link_text.mdwn index 31820836b..6842a911f 100644 --- a/doc/todo/shortcut_link_text.mdwn +++ b/doc/todo/shortcut_link_text.mdwn @@ -1 +1,19 @@ -[[plugins/shortcut]] creates link shortcut [[PreprocessorDirective]]s, which substitute their argument into the specified shortcut URL to generate the link target, and use the argument as the link text. For example, given the example [[shortcuts]], `\[[wikipedia ikiwiki]]` generates a link to , with the link text "ikiwiki". This works well in many cases; however, for things like the `debbug` example, it simply uses the number as the link text, which does not always provide enough context to understand the link at first glance. For example, `\[[debbug 397501]]` generates a link to , with just "397501" as the link text. While [[plugins/template]] provides a general solution for arbitrary cases, it would help to have a simple option via the shortcut plugin to set the link text, with a `%s` substitution. Thus, something like `\[[shortcut name=debbug url="http://bugs.debian.org/%s" desc="bug #%s"]]` might suffice on a Debian-specific wiki to indicate a bug number, while a more general wiki might use something like `\[[shortcut name=debbug url="http://bugs.debian.org/%s" desc="Debian bug #%s"]]`. \ No newline at end of file +[[plugins/shortcut]] creates link shortcut [[PreprocessorDirective]]s, +which substitute their argument into the specified shortcut URL to generate +the link target, and use the argument as the link text. For example, given +the example [[shortcuts]], `\[[wikipedia ikiwiki]]` generates a link to +, with the link text "ikiwiki". This +works well in many cases; however, for things like the `debbug` example, it +simply uses the number as the link text, which does not always provide +enough context to understand the link at first glance. For example, +`\[[debbug 397501]]` generates a link to , +with just "397501" as the link text. While [[plugins/template]] provides a +general solution for arbitrary cases, it would help to have a simple option +via the shortcut plugin to set the link text, with a `%s` substitution. +Thus, something like `\[[shortcut name=debbug +url="http://bugs.debian.org/%s" desc="bug #%s"]]` might suffice on a +Debian-specific wiki to indicate a bug number, while a more general wiki +might use something like `\[[shortcut name=debbug +url="http://bugs.debian.org/%s" desc="Debian bug #%s"]]`. + +> [[todo/done]] --[[Joey]] -- cgit v1.2.3