Tuomas Jormola wrote: > Is creation of index pages by the autoindex plugin limited only to files under > srcdir by some justified reason? Currently autoindex doesn't create index > pages > for empty directories of underlays.
autoindex does not create index pages for empty directories *anywhere*. The directory has to contain some files for an index page to be created for it. It seems wrong for a missing file in an underlay to result in every wiki using that underlay having an index page added. Ikiwiki's own basewiki has a wikiicons subdirectory without an index page. And ikiwiki cannot modify the underlay to have autoindex add the file to it. > If index pages aren't supposed to be > created for empty directories under underlay dirs, why iterate over the > underlay dirs in the first place (the for loop at the line 41 of > autoindex.pm). Because it needs to know if a given index page is provided by an underlay, so as to avoid replacing such a page with one it creates. -- see shy jo
signature.asc
Description: Digital signature