From 1dddec0ba9f66f082f4b8349916cdb6bdb5636e3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 4 Jun 2008 01:24:23 -0400 Subject: Pass a destpage parameter to the sanitize hook. Because the search plugin needed it, also because it's one of the few plugins that didn't already have it. I also considered adding it to htmlize, but I really cannot imagine caring what the destpage is when htmlizing. (I'll probably be poven wrong later.) --- doc/plugins/search.mdwn | 8 +++----- doc/plugins/write.mdwn | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'doc/plugins') diff --git a/doc/plugins/search.mdwn b/doc/plugins/search.mdwn index 67e3b85ef..e53c28c7c 100644 --- a/doc/plugins/search.mdwn +++ b/doc/plugins/search.mdwn @@ -7,11 +7,9 @@ This plugin adds full text search to ikiwiki, using the and the [[cpan Search::Xapian]] perl module. (The [[cpan HTML::Scrubber]] perl module will also be used, if available.) -Ikiwiki will handle indexing new and changed page contents. Note that it -indexes page contents before they are preprocessed and converted to html, -as this tends to produce less noisy search results. Also, since it only -indexes page contents, files copied by the [[rawhtml]] plugin will not be -indexed, nor will other types of data files. +Ikiwiki will handle indexing new and changed page contents. Note that since +it only indexes page contents, files copied by the [[rawhtml]] plugin will +not be indexed, nor will other types of data files. There is one setting you may need to use in the config file. `omega_cgi` should point to the location of the omega cgi program. The default location diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 606031cf2..35f391f7f 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -211,8 +211,8 @@ want to change the default ("page.tmpl"). Template files are looked for in Use this to implement html sanitization or anything else that needs to modify the body of a page after it has been fully converted to html. -The function is passed named parameters: "page" and "content", and -should return the sanitized content. +The function is passed named parameters: "page", "destpage", and "content", +and should return the sanitized content. ### format -- cgit v1.2.3