From: Joey Hess Date: Sat, 3 Oct 2009 19:37:57 +0000 (-0400) Subject: document add_depends dependency type interface X-Git-Tag: 3.20091017~27^2~130^2~16 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fd9d9680242c0d1c835fc56f969f8e2a2618a5de;p=ikiwiki.git document add_depends dependency type interface --- diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 668f8d8b6..c244c1f2f 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -609,10 +609,17 @@ page created from it. (Ie, it appends ".html".) Use this when constructing the filename of a html file. Use `urlto` when generating a link to a page. -#### `add_depends($$)` +#### `add_depends($$;@)` Makes the specified page depend on the specified [[ikiwiki/PageSpec]]. +Additional named parameters can be passed, to indicate what type of +dependency this is. + +Currently, only a "content" parameter is specified. If set to 0, the +dependency does not involve the content of pages matching the PageSpec, but +only their existence. + #### `pagespec_match($$;@)` Passed a page name, and [[ikiwiki/PageSpec]], returns true if the