]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/transient_autocreated_tagbase_is_not_transient_autoindexed.mdwn
ba2092f424611fa25822de52ed2898a1ba787251
[ikiwiki.git] / doc / bugs / transient_autocreated_tagbase_is_not_transient_autoindexed.mdwn
1     mkdir -p ikiwiki-tag-test/raw/a_dir/ ikiwiki-tag-test/rendered/
2     echo '\[[!taglink a_tag]]' > ikiwiki-tag-test/raw/a_dir/a_page.mdwn
3     ikiwiki --verbose --plugin tag --plugin autoindex --plugin mdwn --set autoindex_commit=0 --set tagbase=tag --set tag_autocreate=1 --set tag_autocreate_commit=0 ikiwiki-tag-test/raw/ ikiwiki-tag-test/rendered/
4     ls -al ikiwiki-tag-test/raw/.ikiwiki/transient/
5     ls -al ikiwiki-tag-test/rendered/tag/
6
7 Shouldn't `ikiwiki-tag-test/raw/.ikiwiki/transient/tag.mdwn` and `ikiwiki-tag-test/rendered/tag/index.html` exist?
8
9 [[!tag patch user/smcv/ready]]
10 [[!template id=gitbranch branch=smcv/ready/autoindex author=smcv
11   browse=http://git.pseudorandom.co.uk/smcv/ikiwiki.git/shortlog/refs/heads/ready/autoindex]]
12 [[!template id=gitbranch branch=smcv/ready/autoindex-more-often author=smcv
13   browse=http://git.pseudorandom.co.uk/smcv/ikiwiki.git/shortlog/refs/heads/ready/autoindex-more-often]]
14
15 > To have a starting point to (maybe) change this, my `ready/autoindex`
16 > branch adds a regression test for the current behaviour, both with
17 > and without `autoindex_commit` enabled. It also fixes an unnecessary
18 > and potentially harmful special case for the transient directory.
19 >
20 > The fact that files in underlays (including transient files) don't
21 > trigger autoindexing is deliberate. However, this is the second
22 > request to change this behaviour: the first was
23 > [[!debbug 611068]], which has a patch from Tuomas Jormola.
24 > On that bug report, Joey explains why it's undesirable
25 > for the original behaviour of autoindex (when the
26 > index isn't transient).
27 >
28 > I'm not sure whether the same reasoning still applies when the
29 > index is transient, though (`autoindex_commit => 0`),
30 > because the index pages won't be cluttering up people's
31 > git repositories any more? My `autoindex-more` branch changes
32 > the logic so it will do what you want in the `autoindex_commit => 0`
33 > case, and amends the appropriate regression test. --[[smcv]]