]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/underlaydir_file_expose.mdwn
store state to avoid needing to rebuild when changing theme
[ikiwiki.git] / doc / bugs / underlaydir_file_expose.mdwn
index 0c6f55425b2c1d2b5a529c78aa15854c52ff2438..4ee30e39d9cac966e319b8619c127cda4d9e3aaf 100644 (file)
@@ -1,3 +1,13 @@
 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.
+ikiwiki will not notice the removal, and the
+page from the underlay will not be built. (However, it will be if the wiki
+gets rebuilt.)
+
+> This problem is caused by ikiwiki storing only filenames relative to
+> the srcdir or underlay, and mtime comparison not handling this case.
+
+> A related problem occurs if changing a site's theme with the
+> [[plugins/theme]] plugin. The style.css of the old and new theme
+> often has the same mtime, so ikiwiki does not update it w/o a rebuild.
+> This is worked around in theme.pm with a special-purpose needsbuild hook.
+> --[[Joey]]