From 584f3e3061e8983e4caa328d7bc16fdeba849654 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 17 Jul 2008 15:16:56 -0400 Subject: Add a postscan hook. * Add a postscan hook. * search: Use postscan hook, avoid updating index when previewing. --- doc/plugins/write.mdwn | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/plugins') diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 4dc55e302..b4acb237d 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -216,6 +216,17 @@ modify the body of a page after it has been fully converted to html. The function is passed named parameters: "page", "destpage", and "content", and should return the sanitized content. +### postscan + + hook(type => "postscan", id => "foo", call => \&postscan); + +This hook is called once the full page body is available (but before the +format hook). The most common use is to update search indexes. Added in +ikiwiki 2.54. + +The function is passed named parameters "page" and "content". Its return +value is ignored. + ### format hook(type => "format", id => "foo", call => \&format); -- cgit v1.2.3