Rebuild pages that change their type. (Gabriel McManus)
authorJoey Hess <joey@kodama.kitenet.net>
Wed, 23 Jul 2008 20:13:37 +0000 (16:13 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Wed, 23 Jul 2008 20:13:37 +0000 (16:13 -0400)
debian/changelog
doc/bugs/page_is_not_rebuilt_if_it_changes_extension.mdwn
doc/bugs/underlaydir_file_expose.mdwn

index c699f698b5a300a358049182822e8412f49f3761..2b216ca95a70e35c2546c166290d4884e39a8bc6 100644 (file)
@@ -12,6 +12,7 @@ ikiwiki (2.55) UNRELEASED; urgency=low
     a security check that is a good safe default, but problimatic overkill in
     some situations.
   * attachment: Do not escape _ when determining attachment filenames.
+  * Rebuild pages that change their type. (Gabriel McManus)
 
  -- Joey Hess <joeyh@debian.org>  Mon, 21 Jul 2008 11:35:46 -0400
 
index d5719744e49da303d5e842dee33738b682e354df..e47be8d28d9e4e81cc458fdbbc1475e878c78c0d 100644 (file)
@@ -18,3 +18,10 @@ ikiwiki fails when trying to create a directory "a" where there is a file "a"
 (or vice versa).
 
 The same problem occurs if both "a" and "a.mdwn" exist in the wiki.
+
+> Thank you for looking into it!
+> 
+> On the use of forcerebuild, I think it's acceptable; plugins that unset
+> it would break other plugins that set it, too. 
+> 
+> [[cherry-picked|done]] --[[Joey]]
index b8e84969c894a771f582aa7b27cde3e1803c380d..c827c6dd85b8b8d4cf7ffec25849d80df4000393 100644 (file)
@@ -1,9 +1,4 @@
 If a file in the srcdir is removed, exposing a file in the underlaydir,
-ikiwiki will not notice the change and rebuild it until the file in the
-underlaydir gets a mtime newer than the mtime the removed file had.
-
-Relatedly, if there are two files with different extensions that build a
-page with the same name, in a directory, ikiwiki will update the page
-whenever either changes, using the changed one as the source. But if that
-most recently changed one is removed, it won't rebuild the page using the
-older one as the source.
+ikiwiki will notice the removal and delete the page from the destdir. The
+page from the underlay will not be built. (However, it will be if the wiki
+gets rebuilt.)