X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/8323bc5214bf3581ebfbad57385934033c228b76..1335c31e852ed89637b529c8d4f6f7b9a0a19dae:/doc/bugs/underlaydir_file_expose.mdwn diff --git a/doc/bugs/underlaydir_file_expose.mdwn b/doc/bugs/underlaydir_file_expose.mdwn index b8e84969c..4ee30e39d 100644 --- a/doc/bugs/underlaydir_file_expose.mdwn +++ b/doc/bugs/underlaydir_file_expose.mdwn @@ -1,9 +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.) -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. +> 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]]