From ab1ebf1ec6fc8d90de3b8e70bd5f624c50316da8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 8 Apr 2012 16:07:17 -0400 Subject: [PATCH] inline, trail: The pagenames parameter is now a list of absolute pagenames, not relative wikilink type names. This is necessary to fix a bug, and makes pagenames more consistent with the pagespec used in the pages parameter. (smcv) --- debian/changelog | 4 ++++ ..._pages_in_inline_pagenames_do_not_add_a_dependency.mdwn | 2 ++ doc/ikiwiki/directive/trailitems.mdwn | 7 ++++--- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 97f5500f8..5f9472365 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,6 +17,10 @@ ikiwiki (3.20120204) UNRELEASED; urgency=low * rename: Allow rename to be started not from the edit page; return to the renamed page in this case. * remove: Support removing of pages in the transient underlay. (smcv) + * inline, trail: The pagenames parameter is now a list of absolute + pagenames, not relative wikilink type names. This is necessary to fix + a bug, and makes pagenames more consistent with the pagespec used + in the pages parameter. (smcv) -- Joey Hess Wed, 21 Mar 2012 14:33:14 -0400 diff --git a/doc/bugs/nonexistent_pages_in_inline_pagenames_do_not_add_a_dependency.mdwn b/doc/bugs/nonexistent_pages_in_inline_pagenames_do_not_add_a_dependency.mdwn index 70b06a951..486be0363 100644 --- a/doc/bugs/nonexistent_pages_in_inline_pagenames_do_not_add_a_dependency.mdwn +++ b/doc/bugs/nonexistent_pages_in_inline_pagenames_do_not_add_a_dependency.mdwn @@ -40,3 +40,5 @@ I think the presence dependency is probably the cleanest approach? >> semantics, my `ready/literal-pagenames` branch does that. For >> my main use-case for `pagenames` ([[plugins/contrib/album]]) >> it's fine either way. --[[smcv]] + +>>> Ok, [[merged|done]]. I think it's more consistent this way. --[[Joey]] diff --git a/doc/ikiwiki/directive/trailitems.mdwn b/doc/ikiwiki/directive/trailitems.mdwn index b1ba8d356..387b403b9 100644 --- a/doc/ikiwiki/directive/trailitems.mdwn +++ b/doc/ikiwiki/directive/trailitems.mdwn @@ -12,9 +12,10 @@ Options are similar to [[!iki ikiwiki/directive/inline desc=inline]]: * `pages`: adds pages that match a [[ikiwiki/PageSpec]] to the trail (cannot be used with `pagenames`) -* `pagenames`: adds a space-separated list of pages to the trail, - with the same [[ikiwiki/SubPage/LinkingRules]] as for a [[ikiwiki/WikiLink]] - (cannot be used with `pages`) +* `pagenames`: if used instead of `pages`, this is interpreted as a + space-separated list of absolute page names + ([[SubPage/LinkingRules]] are not taken into account) + to add to the trail * `sort`: add the pages matched by `pages` to the trail in this [[ikiwiki/pagespec/sorting]] order (cannot be used with `pagenames`) -- 2.26.2