From 065ac90e0aa85397bd9d0e1b24da52e01e09f6a3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 12 Jul 2008 13:28:47 -0400 Subject: [PATCH 1/2] web commit by http://smcv.pseudorandom.co.uk/ --- doc/todo/aggregate_to_internal_pages.mdwn | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/doc/todo/aggregate_to_internal_pages.mdwn b/doc/todo/aggregate_to_internal_pages.mdwn index 614407c9d..b9470f73c 100644 --- a/doc/todo/aggregate_to_internal_pages.mdwn +++ b/doc/todo/aggregate_to_internal_pages.mdwn @@ -4,7 +4,7 @@ The new internal page feature is designed for something like How to transition to it though? inlines of aggregated content would need to change their pagespecs to use `internal()`. -> [[patch]] in git://git.debian.org/git/users/smcv/ikiwiki.git, branch "aggregate"; [see also gitweb](http://git.debian.org/?p=users/smcv/ikiwiki.git;a=commit;h=01d7ae803710bb0d84fc8d172fd98fd57fb77e9d). --smcv.pseudorandom.co.uk +> [[patch]] in git://git.debian.org/git/users/smcv/ikiwiki.git, branch "aggregate". > Migration is a two-step process: first change all your pagespecs to use `internal()`, then add `internalize="yes"` to all your aggregate invocations. --smcv.pseudorandom.co.uk > Thanks for working on this. @@ -32,4 +32,19 @@ change their pagespecs to use `internal()`. > not have to worry about these bugs in the future. So, I'm thinking flag > day. --[[Joey]] +> OK, there's a simpler approach in the same repository, branch +> "aggregateinternal". It just adds an aggregateinternal option +> for the whole wiki. +> +> On a flag day, everyone has to change their inline directives +> to use `internal()`, after which this option can be switched on. +> When changing the option, you'll have to clean up the mess from +> old aggregated pages by hand, and re-aggregate. +> +> If this is a direction you prefer, the next step would be to +> add support for existing wikis setting this option - for instance +> it could look for non-internal pages that were previously +> aggregated, and convert them to internal, the first time aggregation +> runs. --smcv + [[patch]] From 3f38fab150fff96a63c7bac936621975d2a45b89 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 12 Jul 2008 13:30:54 -0400 Subject: [PATCH 2/2] sounds good --- doc/todo/aggregate_to_internal_pages.mdwn | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/todo/aggregate_to_internal_pages.mdwn b/doc/todo/aggregate_to_internal_pages.mdwn index b9470f73c..90b6e5f09 100644 --- a/doc/todo/aggregate_to_internal_pages.mdwn +++ b/doc/todo/aggregate_to_internal_pages.mdwn @@ -47,4 +47,8 @@ change their pagespecs to use `internal()`. > aggregated, and convert them to internal, the first time aggregation > runs. --smcv +> Sure, that seems reasonable. Perhaps `ikiwiki-transition` could be used +> to move the pages, and even, possibly update the pagespecs (not sure how +> it could figure out which ones tho). --[[Joey]] + [[patch]]