summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-04 20:30:21 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-04 20:30:21 -0400
commitbe032a7b87d1080f1a54327346cb5b40432a056c (patch)
treed945e47c53ca110840491d8fe2cd96515ae5dfe3 /doc
parentb4c8cc90726cb953898b14f378881bddd224a22c (diff)
rework dependency types code
Simplify, change default content depends number to 1, change interface to make more sense.
Diffstat (limited to 'doc')
-rw-r--r--doc/plugins/write.mdwn15
1 files changed, 9 insertions, 6 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index c244c1f2f..73db6f12a 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -613,12 +613,15 @@ generating a link to a page.
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.
+By default, dependencies are full content dependencies, meaning that the
+page will be updated whenever anything matching the PageSpec is modified.
+This default can be overridden by additional named parameters, which can be
+used to indicate weaker types of dependencies:
+
+* `presence` if set to true, only the presence of a matching page triggers
+ the dependency.
+* `links` if set to true, any change in the text of links on a matching page
+ triggers the dependency
#### `pagespec_match($$;@)`