Joey Hess [Sat, 24 Apr 2010 04:46:17 +0000 (00:46 -0400)]
Merge branch 'master' into templatemove
Joey Hess [Sat, 24 Apr 2010 04:45:54 +0000 (00:45 -0400)]
remove paragraph about old style directives, it's been long enough
Joey Hess [Sat, 24 Apr 2010 04:43:45 +0000 (00:43 -0400)]
add link to templates page
Joey Hess [Sat, 24 Apr 2010 04:41:52 +0000 (00:41 -0400)]
wording
Joey Hess [Fri, 23 Apr 2010 21:43:29 +0000 (17:43 -0400)]
typo
Joey Hess [Fri, 23 Apr 2010 21:41:24 +0000 (17:41 -0400)]
changelog/NEWS update for template changes
Joey Hess [Fri, 23 Apr 2010 21:38:37 +0000 (17:38 -0400)]
update re template change
Joey Hess [Fri, 23 Apr 2010 21:36:07 +0000 (17:36 -0400)]
improve attachment example
Joey Hess [Fri, 23 Apr 2010 21:23:31 +0000 (17:23 -0400)]
add test case to ensure all templates are documented
Joey Hess [Fri, 23 Apr 2010 21:01:22 +0000 (17:01 -0400)]
update news for template change
Joey Hess [Fri, 23 Apr 2010 20:48:53 +0000 (16:48 -0400)]
Merge branch 'master' into templatemove
Joey Hess [Fri, 23 Apr 2010 20:48:37 +0000 (16:48 -0400)]
update
Joey Hess [Fri, 23 Apr 2010 20:43:44 +0000 (16:43 -0400)]
Merge branch 'master' into templatemove
Conflicts:
doc/templates.mdwn
Joey Hess [Fri, 23 Apr 2010 20:41:07 +0000 (16:41 -0400)]
special case for page.tmpl dependency handling
Rather than wasting resources recording that every page depends on
page.tmpl, add a special case. The special case curretly rebuilds non-page
files too when page.tmpl changes, but that's minor.
Joey Hess [Fri, 23 Apr 2010 20:40:42 +0000 (16:40 -0400)]
add myclean
Joey Hess [Fri, 23 Apr 2010 20:20:02 +0000 (16:20 -0400)]
fix return of tpage
Joey Hess [Fri, 23 Apr 2010 20:10:46 +0000 (16:10 -0400)]
template docu reorg
Remove wikitemplates page; fold its contents into templates page.
Update all backlinks. Document new ability to put templates inside srcdir.
Joey Hess [Fri, 23 Apr 2010 19:32:39 +0000 (15:32 -0400)]
move template documentation to the template directive
allow new templates to be created via the inline that lists them
(cherry picked from commit
83703d2f4a8832155e3c111792489062ccc4793b)
Joey Hess [Fri, 23 Apr 2010 19:32:39 +0000 (15:32 -0400)]
move template documentation to the template directive
allow new templates to be created via the inline that lists them
Joey Hess [Fri, 23 Apr 2010 19:23:34 +0000 (15:23 -0400)]
update
Joey Hess [Fri, 23 Apr 2010 19:11:25 +0000 (15:11 -0400)]
use template() rather than rolling it by hand
Joey Hess [Fri, 23 Apr 2010 19:02:07 +0000 (15:02 -0400)]
allow template pages to not be under templates/
Joey Hess [Fri, 23 Apr 2010 18:50:00 +0000 (14:50 -0400)]
improved error message
Joey Hess [Fri, 23 Apr 2010 18:45:48 +0000 (14:45 -0400)]
switch to using template_depends
It now handles all the details of finding a page template that this used to
need to implement.
Joey Hess [Fri, 23 Apr 2010 18:45:02 +0000 (14:45 -0400)]
use same error string as template.pm does
Joey Hess [Fri, 23 Apr 2010 18:44:37 +0000 (14:44 -0400)]
allow a bare page name to be specified as a template
Joey Hess [Fri, 23 Apr 2010 18:00:53 +0000 (14:00 -0400)]
fix logic
Joey Hess [Fri, 23 Apr 2010 17:30:52 +0000 (13:30 -0400)]
response
Joey Hess [Fri, 23 Apr 2010 17:28:49 +0000 (13:28 -0400)]
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
privat [Fri, 23 Apr 2010 17:28:38 +0000 (17:28 +0000)]
multiple_sidebars in a gitbranch
Jon Dowland [Fri, 23 Apr 2010 17:28:20 +0000 (18:28 +0100)]
half-formed thought about accessible profiling
privat [Fri, 23 Apr 2010 17:20:51 +0000 (17:20 +0000)]
add my repository in the list
Joey Hess [Fri, 23 Apr 2010 16:35:23 +0000 (12:35 -0400)]
update copyright years
Jon Dowland [Fri, 23 Apr 2010 15:29:05 +0000 (16:29 +0100)]
how important is perl 5.10?
Joey Hess [Fri, 23 Apr 2010 03:14:57 +0000 (23:14 -0400)]
better fix for use lib issue
PER5LIB does not override fully, so need to run .in versions
Joey Hess [Fri, 23 Apr 2010 03:00:33 +0000 (23:00 -0400)]
switch to PERL5LIB so that use lib inserted for INSTALL_BASE is overridden during build
Joey Hess [Fri, 23 Apr 2010 02:59:06 +0000 (22:59 -0400)]
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
blipvert [Fri, 23 Apr 2010 02:40:36 +0000 (02:40 +0000)]
rename bugs/creating_build_fails_oddly_when_older_ikiwiki_is_installed.mdwn to bugs/build_fails_oddly_when_older_ikiwiki_is_installed.mdwn
blipvert [Fri, 23 Apr 2010 02:36:27 +0000 (02:36 +0000)]
Joey Hess [Fri, 23 Apr 2010 00:13:47 +0000 (20:13 -0400)]
use meta title
Joey Hess [Thu, 22 Apr 2010 20:29:49 +0000 (16:29 -0400)]
reference my branch for this
Joey Hess [Thu, 22 Apr 2010 19:59:04 +0000 (15:59 -0400)]
add
Joey Hess [Thu, 22 Apr 2010 19:58:06 +0000 (15:58 -0400)]
refactor to remove template_params
template_file will be kept separate, since it needs to be memoized
Joey Hess [Thu, 22 Apr 2010 19:34:32 +0000 (15:34 -0400)]
look for templates in srcdir and underlays, first
This entailed changing template_params; it no longer takes the template
filename as its first parameter.
Add template_depends to api and replace calls to template() with
template_depends() in appropriate places, where a dependency should be
added on the template.
Other plugins don't use template(), so will need further work.
Also, includes are disabled for security. Enabling includes only when using
templates from the templatedir would be nice, but would add a lot of
complexity to the implementation.
http://smcv.pseudorandom.co.uk/ [Thu, 22 Apr 2010 19:28:31 +0000 (19:28 +0000)]
map can't currently change sort ordering
http://seph.myopenid.com/ [Thu, 22 Apr 2010 19:15:42 +0000 (19:15 +0000)]
Joey Hess [Thu, 22 Apr 2010 18:35:00 +0000 (14:35 -0400)]
remove add_templates option
Templates are moving into the srcdir, and will also be searched for in
configured underlays, so this is redundant.
Joey Hess [Thu, 22 Apr 2010 18:07:45 +0000 (14:07 -0400)]
clarify
Joey Hess [Thu, 22 Apr 2010 17:45:25 +0000 (13:45 -0400)]
add
Joey Hess [Thu, 22 Apr 2010 17:17:45 +0000 (13:17 -0400)]
only remove page from influences when influences are not static
This matches what add_depends done
Joey Hess [Thu, 22 Apr 2010 04:42:53 +0000 (00:42 -0400)]
update
Joey Hess [Thu, 22 Apr 2010 04:40:05 +0000 (00:40 -0400)]
update
Joey Hess [Thu, 22 Apr 2010 04:36:13 +0000 (00:36 -0400)]
format
Joey Hess [Thu, 22 Apr 2010 04:34:03 +0000 (00:34 -0400)]
Merge branch 'autotag'
Joey Hess [Thu, 22 Apr 2010 04:28:58 +0000 (00:28 -0400)]
force rebuild from pre
20100422
to ensure those wrong massive depends_simple don't linger on systems that
rebuilt for the other reasons already
Joey Hess [Thu, 22 Apr 2010 04:28:21 +0000 (00:28 -0400)]
note that the new version will have some optimisation fixes
Joey Hess [Thu, 22 Apr 2010 04:12:15 +0000 (00:12 -0400)]
improved fix for depends_simple_mixup
Avoid adding the page matched against as an influence for
currently failing pagespec matches, while still adding
any other influences.
This avoids bloating depends_simple with lots of bogus influences when
matching eg, "!link(done)". It's only necessary for the page being tested
to be an influence of that if the page matches.
Joey Hess [Thu, 22 Apr 2010 04:10:13 +0000 (00:10 -0400)]
add influence info for failed metadata matches
This is needed so that when a negated pagespec like "!author(foo)"
stops matching, due to the page being changed, ikiwiki knows that
the match was influenced by the page content.
Joey Hess [Thu, 22 Apr 2010 04:07:25 +0000 (00:07 -0400)]
fix test cases for dynamic influence calculation
Joey Hess [Thu, 22 Apr 2010 03:08:54 +0000 (23:08 -0400)]
added a test case for this bug
Further analysis suggests fixing this might not be as dreadful as I first
thought!
Joey Hess [Thu, 22 Apr 2010 02:04:03 +0000 (22:04 -0400)]
backlink influence data seems ok
Joey Hess [Thu, 22 Apr 2010 01:57:12 +0000 (21:57 -0400)]
update
Joey Hess [Thu, 22 Apr 2010 01:55:12 +0000 (21:55 -0400)]
more wrongness
Joey Hess [Thu, 22 Apr 2010 01:42:18 +0000 (21:42 -0400)]
link fix
Joey Hess [Thu, 22 Apr 2010 01:38:58 +0000 (21:38 -0400)]
argh. head exploding.
Joey Hess [Thu, 22 Apr 2010 01:38:53 +0000 (21:38 -0400)]
indent
Joey Hess [Thu, 22 Apr 2010 00:47:18 +0000 (20:47 -0400)]
my autotag branch seems ready
Joey Hess [Thu, 22 Apr 2010 00:39:20 +0000 (20:39 -0400)]
turn on tag_autocreate by default if tagbase is set
Joey Hess [Thu, 22 Apr 2010 00:32:30 +0000 (20:32 -0400)]
Merge branch 'master' into autotag
Joey Hess [Thu, 22 Apr 2010 00:32:19 +0000 (20:32 -0400)]
reword news
Joey Hess [Thu, 22 Apr 2010 00:18:44 +0000 (20:18 -0400)]
Merge branch 'master' into autotag
Conflicts:
IkiWiki/Plugin/tag.pm
Joey Hess [Thu, 22 Apr 2010 00:15:11 +0000 (20:15 -0400)]
remove broken ./tag support
The commit that added the (working) support for using /tag to override
tagbase also tried to make ./tag work. Problem is, tags are links,
and ./foo is not a valid link (though I think there's a wishlist about it).
So, using ./tag really resulted in tag creation links that led to a
"bad page name" error. And even if the tag were created in the right place,
the link didn't go to it.
Joey Hess [Thu, 22 Apr 2010 00:08:23 +0000 (20:08 -0400)]
fixes
Joey Hess [Wed, 21 Apr 2010 23:49:11 +0000 (19:49 -0400)]
clarify
Joey Hess [Wed, 21 Apr 2010 23:47:38 +0000 (19:47 -0400)]
Merge branch 'master' into autotag
Conflicts:
IkiWiki/Plugin/tag.pm
Joey Hess [Wed, 21 Apr 2010 23:46:27 +0000 (19:46 -0400)]
pass pagespec parameters along from match_tagged
Joey Hess [Wed, 21 Apr 2010 23:45:56 +0000 (19:45 -0400)]
add missing undef guard in derel
Joey Hess [Wed, 21 Apr 2010 23:42:00 +0000 (19:42 -0400)]
fix false positive in link_types_changed
loadindex does not bother populating oldtypedlinks if there is no link
type. However, the code in link_types_changed assumed that if oldtypedlinks
is not defined, and typedlinks is, they must differ.
Joey Hess [Wed, 21 Apr 2010 23:09:59 +0000 (19:09 -0400)]
add separate template variable for tag page and sanitize displayed tag name
Joey Hess [Wed, 21 Apr 2010 20:41:36 +0000 (16:41 -0400)]
remember autofiles that were tried and failed to be added
This way, if an autofile is registered for a file that already exists,
it is remembered that it was tried, and it doesn't get recreated when
removed.
Joey Hess [Wed, 21 Apr 2010 20:36:58 +0000 (16:36 -0400)]
response
Joey Hess [Wed, 21 Apr 2010 20:34:50 +0000 (16:34 -0400)]
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Joey Hess [Wed, 21 Apr 2010 20:33:03 +0000 (16:33 -0400)]
note re includes
http://smcv.pseudorandom.co.uk/ [Wed, 21 Apr 2010 20:30:14 +0000 (20:30 +0000)]
suppressing auto-creation can be quite counter-intuitive
http://smcv.pseudorandom.co.uk/ [Wed, 21 Apr 2010 20:23:19 +0000 (20:23 +0000)]
elide an older patch that's no longer under discussion
Joey Hess [Wed, 21 Apr 2010 20:19:16 +0000 (16:19 -0400)]
update
Joey Hess [Wed, 21 Apr 2010 20:14:23 +0000 (16:14 -0400)]
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Joey Hess [Wed, 21 Apr 2010 20:13:37 +0000 (16:13 -0400)]
commit autocreated tag pages
Joey Hess [Wed, 21 Apr 2010 20:07:23 +0000 (16:07 -0400)]
update
Joey Hess [Wed, 21 Apr 2010 19:59:39 +0000 (15:59 -0400)]
remember autofiles always
This fixes the problem that it did not remember if an autofile is deleted,
unless a plugin happened to register the autofile at the same time.
With the new code, we just never recreate an autofile more than once.
Only downside is that the list of autofiles is never pruned either.
And I don't really see a way to prune it.
Joey Hess [Wed, 21 Apr 2010 19:54:18 +0000 (15:54 -0400)]
bugfixes
Joey Hess [Wed, 21 Apr 2010 19:53:59 +0000 (15:53 -0400)]
Merge branch 'master' into autotag
Joey Hess [Wed, 21 Apr 2010 19:53:44 +0000 (15:53 -0400)]
update, tag deletion bug
http://hendry.iki.fi/ [Wed, 21 Apr 2010 19:48:31 +0000 (19:48 +0000)]
Joey Hess [Wed, 21 Apr 2010 19:22:05 +0000 (15:22 -0400)]
document tag_autocreate
http://hendry.iki.fi/ [Wed, 21 Apr 2010 19:21:38 +0000 (19:21 +0000)]
Joey Hess [Wed, 21 Apr 2010 19:19:47 +0000 (15:19 -0400)]
spelling
Joey Hess [Wed, 21 Apr 2010 19:18:11 +0000 (15:18 -0400)]
update; my branch is (partially) debugged now
http://hendry.iki.fi/ [Wed, 21 Apr 2010 19:07:32 +0000 (19:07 +0000)]
debugging
Joey Hess [Wed, 21 Apr 2010 19:05:59 +0000 (15:05 -0400)]
remove verify_src_file
Splitting out this function bothered me. It is conceptially similar to
file_pruned, and yet also very specific to exactly the security needs of
find_src_files.
I liked that it got rid of duplicate code in the latter function. So
instead, put a helper sub in that, which I think allows refactoring
things more cleanly, and with less boilerplate.
As to the needs of gen_autofile, I'm not convinced this needs to handle
the same set of problems that verify_src_file did. So I sat down and
wrote a custom validator for autofiles, which turned out to seem to just
need three things: Make sure the candidate filename is not something
that would be pruned; untaint the candidate filename; and make sure that
srcdir doesn't already have something with its name. (Plus, of course,
all the other checks that were already in gen_autofile.)
(In passing, also fixed a bunch of bugs I had introduced in this branch.)