diff options
author | http://smcv.pseudorandom.co.uk/ <smcv@web> | 2010-12-28 00:04:56 +0000 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-12-28 00:04:56 +0000 |
commit | 967137938c8f8bdee2149acef4ce138377db2041 (patch) | |
tree | b81d40d098ef9b15142d0cfb5410a5cb9e535440 /doc/todo | |
parent | a7d8af21cdc3fecef727a2ed2b95a18192374d0d (diff) | |
download | ikiwiki-967137938c8f8bdee2149acef4ce138377db2041.tar ikiwiki-967137938c8f8bdee2149acef4ce138377db2041.tar.gz |
very slow progress
Diffstat (limited to 'doc/todo')
-rw-r--r-- | doc/todo/autoindex_should_use_add__95__autofile.mdwn | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/doc/todo/autoindex_should_use_add__95__autofile.mdwn b/doc/todo/autoindex_should_use_add__95__autofile.mdwn index 19c5004f8..353168c4f 100644 --- a/doc/todo/autoindex_should_use_add__95__autofile.mdwn +++ b/doc/todo/autoindex_should_use_add__95__autofile.mdwn @@ -1,4 +1,33 @@ `add_autofile` is a generic version of [[plugins/autoindex]]'s code, so the latter should probably use the former. --[[smcv]] -> See [[todo/transient_pages]] for progress on this. --[[smcv]] +---- + +[[!template id=gitbranch branch=smcv/autoindex-autofile author="[[smcv]]"]] + +I'm having trouble fixing this: + + # FIXME: some of this is probably redundant with add_autofile now, and + # the rest should perhaps be added to the autofile machinery + +By "a generic version of" above, it seems I mean "almost, but not +quite, entirely unlike". I tried digging through the git history for the +reasoning behind the autofile and autoindex implementations, but now I'm +mostly confused. + +The autofile machinery records a list of every file that has ever been proposed +as an autofile: for instance, the tag plugin has a list of every tag that +has ever been named in a \[[!tag]] or \[[!taglink]], even if no file was +actually needed (e.g. because it already existed). Checks for files that +already exist (or whatever) are deferred until after this list has been +updated, and files in this list are never auto-created again unless the wiki +is rebuilt. + +The autoindex machinery records a more complex set. Items are added to the +set when they are deleted, but would otherwise have been added as an autoindex +(don't exist, do have children (by which I mean subpages or attachments), +and are a directory in the srcdir). They're removed if this particular run +wouldn't have added them as an autoindex (they exist, or don't have children). + +Still researching why there's this difference, and whether one or the other +would be better for all cases... |