add spec dependency
[ikiwiki] / 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]]
10 [[!template id=gitbranch branch=smcv/ready/autoindex author=smcv]]
11 [[!template id=gitbranch branch=smcv/ready/autoindex-more-often author=smcv]]
12
13 > To have a starting point to (maybe) change this, my `ready/autoindex`
14 > branch adds a regression test for the current behaviour, both with
15 > and without `autoindex_commit` enabled. It also fixes an unnecessary
16 > and potentially harmful special case for the transient directory.
17 >
18 > The fact that files in underlays (including transient files) don't
19 > trigger autoindexing is deliberate. However, this is the second
20 > request to change this behaviour: the first was
21 > [[!debbug 611068]], which has a patch from Tuomas Jormola.
22 > On that bug report, Joey explains why it's undesirable
23 > for the original behaviour of autoindex (when the
24 > index isn't transient).
25 >
26 > I'm not sure whether the same reasoning still applies when the
27 > index is transient, though (`autoindex_commit => 0`),
28 > because the index pages won't be cluttering up people's
29 > git repositories any more? My `autoindex-more` branch changes
30 > the logic so it will do what you want in the `autoindex_commit => 0`
31 > case, and amends the appropriate regression test. --[[smcv]]