Joey Hess [Wed, 6 May 2009 16:57:37 +0000 (12:57 -0400)]
external: Fix pagespec_match and pagespec_match_list. Closes: #527281
http://smcv.pseudorandom.co.uk/ [Wed, 6 May 2009 10:11:53 +0000 (06:11 -0400)]
Jon Dowland [Wed, 6 May 2009 09:13:21 +0000 (10:13 +0100)]
remove test page (see /sandbox)
Joey Hess [Wed, 6 May 2009 03:40:09 +0000 (23:40 -0400)]
Avoid %links accumulating duplicates. (For TOVA)
This is sorta an optimisation, and sorta a bug fix. In one
test case I have available, it can speed a page build up from 3
minutes to 3 seconds.
The root of the problem is that $links{$page} contains arrays of
links, rather than hashes of links. And when a link is found,
it is just pushed onto the array, without checking for dups.
Now, the array is emptied before scanning a page, so there
should not be a lot of opportunity for lots of duplicate links
to pile up in it. But, in some cases, they can, and if there
are hundreds of duplicate links in the array, then scanning it
for matching links, as match_link and some other code does,
becomes much more expensive than it needs to be.
Perhaps the real right fix would be to change the data structure
to a hash. But, the list of links is never accessed like that,
you always want to iterate through it.
I also looked at deduping the list in saveindex, but that does
a lot of unnecessary work, and doesn't completly solve the problem.
So, finally, I decided to add an add_link function that handles deduping,
and make ikiwiki-transition remove the old dup links.
Joey Hess [Wed, 6 May 2009 03:27:29 +0000 (23:27 -0400)]
decruft
Joey Hess [Wed, 6 May 2009 03:26:15 +0000 (23:26 -0400)]
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
http://ghee.livejournal.com/ [Wed, 6 May 2009 03:09:20 +0000 (23:09 -0400)]
meh
Joey Hess [Wed, 6 May 2009 00:13:40 +0000 (20:13 -0400)]
remove cruft that crept in during a debugging session
Joey Hess [Wed, 6 May 2009 00:06:50 +0000 (20:06 -0400)]
inline: Minor optimisation.
When finding the pageurl, it was calling bestlink unnecessarily.
Since at this point $page contains the full name of the page that
is being inlined, there is no need to do bestlink's scan
for it.
This is only a minor optimisation, since bestlink is only called
once per displayed, inlined page.
Joey Hess [Tue, 5 May 2009 18:28:42 +0000 (14:28 -0400)]
response
Joey Hess [Tue, 5 May 2009 18:25:08 +0000 (14:25 -0400)]
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Joey Hess [Tue, 5 May 2009 18:24:55 +0000 (14:24 -0400)]
response
http://lj.rossia.org/users/imz/ [Tue, 5 May 2009 18:24:41 +0000 (14:24 -0400)]
minor: fix URL
http://lj.rossia.org/users/imz/ [Tue, 5 May 2009 18:21:38 +0000 (14:21 -0400)]
almost offtopic: is this actually a violation?
http://liw.fi/ [Tue, 5 May 2009 18:16:57 +0000 (14:16 -0400)]
Joey Hess [Tue, 5 May 2009 18:15:28 +0000 (14:15 -0400)]
ikiwiki-makerepo: Avoid using abs_path, as it apparently fails on nonexistant directories with some broken perl versions.
Joey Hess [Tue, 5 May 2009 17:57:00 +0000 (13:57 -0400)]
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
http://lj.rossia.org/users/imz/ [Tue, 5 May 2009 17:46:25 +0000 (13:46 -0400)]
minor: trying to format the "verbatims" correctly
http://lj.rossia.org/users/imz/ [Tue, 5 May 2009 17:44:18 +0000 (13:44 -0400)]
added a clarifiaction about my understanding of what happens
http://lj.rossia.org/users/imz/ [Tue, 5 May 2009 17:39:59 +0000 (13:39 -0400)]
a problem with /etc/ikiwiki/auto.setup, perl and non-existent paths
http://stefano.zacchiroli.myopenid.com/ [Tue, 5 May 2009 08:41:15 +0000 (04:41 -0400)]
Joey Hess [Mon, 4 May 2009 23:17:59 +0000 (19:17 -0400)]
turn python-support back on
Should wait to upload until ikiwiki is fixed in testing.
Joey Hess [Mon, 4 May 2009 20:35:59 +0000 (16:35 -0400)]
add news item for ikiwiki 3.11
Joey Hess [Mon, 4 May 2009 20:33:10 +0000 (16:33 -0400)]
releasing version 3.11
Joey Hess [Mon, 4 May 2009 18:41:21 +0000 (14:41 -0400)]
Avoid using python-support. Closes: #525086
Uses new debhelper feature to turn off python-support.
The tiny python module included herein certianly doesn't
need all the python-support nonsense.
Joey Hess [Mon, 4 May 2009 18:34:05 +0000 (14:34 -0400)]
response
Kai Hendry [Mon, 4 May 2009 09:08:27 +0000 (11:08 +0200)]
HTML5 story update
Kai Hendry [Mon, 4 May 2009 08:41:14 +0000 (10:41 +0200)]
anon commit test
simonraven [Sun, 3 May 2009 01:21:39 +0000 (21:21 -0400)]
http://lj.rossia.org/users/imz/ [Sat, 2 May 2009 17:30:17 +0000 (13:30 -0400)]
a clarifying comment about a tool which is referred to
http://jmtd.net/ [Sat, 2 May 2009 13:26:37 +0000 (09:26 -0400)]
published at http://github.com/jmtd/ikiwiki_todolist/
http://jmtd.net/ [Sat, 2 May 2009 11:54:00 +0000 (07:54 -0400)]
WIP todo list javascript in a demonstratable state
http://schmonz.livejournal.com/ [Thu, 30 Apr 2009 19:18:40 +0000 (15:18 -0400)]
personal experience
Jérémy Bobbio [Wed, 29 Apr 2009 22:24:41 +0000 (00:24 +0200)]
passwordauth/discussion: Cosmetics
Jérémy Bobbio [Wed, 29 Apr 2009 22:21:37 +0000 (00:21 +0200)]
passwordauth/discussion: Document an attempt of using Apache::AuthenHook for a restricted wiki
albertlash [Tue, 28 Apr 2009 23:42:18 +0000 (19:42 -0400)]
simonraven [Tue, 28 Apr 2009 23:12:52 +0000 (19:12 -0400)]
simonraven [Tue, 28 Apr 2009 23:11:38 +0000 (19:11 -0400)]
simonraven [Tue, 28 Apr 2009 21:46:21 +0000 (17:46 -0400)]
simonraven [Tue, 28 Apr 2009 20:42:35 +0000 (16:42 -0400)]
simonraven [Tue, 28 Apr 2009 20:14:44 +0000 (16:14 -0400)]
simonraven [Tue, 28 Apr 2009 05:41:12 +0000 (01:41 -0400)]
s/choosen/chosen/
Joey Hess [Mon, 27 Apr 2009 17:57:35 +0000 (13:57 -0400)]
translation.mdwn: Typo fixes. Closes: #525753
Joey Hess [Mon, 27 Apr 2009 17:56:56 +0000 (13:56 -0400)]
mention po plugin
Joey Hess [Mon, 27 Apr 2009 17:54:48 +0000 (13:54 -0400)]
Updated Danish translation from Jonas Smedegaard. Closes: #525751
Víctor Moral [Mon, 27 Apr 2009 08:18:58 +0000 (10:18 +0200)]
upated spanish translation
TimBosse [Mon, 27 Apr 2009 14:12:22 +0000 (10:12 -0400)]
removed
TimBosse [Mon, 27 Apr 2009 03:58:47 +0000 (23:58 -0400)]
TimBosse [Mon, 27 Apr 2009 03:51:30 +0000 (23:51 -0400)]
TimBosse [Mon, 27 Apr 2009 03:50:08 +0000 (23:50 -0400)]
http://jmtd.net/ [Sun, 26 Apr 2009 21:08:10 +0000 (17:08 -0400)]
htmlscrubber?
simonraven [Sun, 26 Apr 2009 20:17:41 +0000 (16:17 -0400)]
http://stefano.zacchiroli.myopenid.com/ [Sun, 26 Apr 2009 17:50:33 +0000 (13:50 -0400)]
simonraven [Sat, 25 Apr 2009 19:57:31 +0000 (15:57 -0400)]
Jon Dowland [Fri, 24 Apr 2009 13:44:28 +0000 (14:44 +0100)]
add a ' ' to prevent autosmiley eating a )
Jon Dowland [Fri, 24 Apr 2009 13:41:25 +0000 (14:41 +0100)]
another backlinks issue
Jon Dowland [Fri, 24 Apr 2009 13:40:07 +0000 (14:40 +0100)]
backlinks issue
Jon Dowland [Fri, 24 Apr 2009 13:34:32 +0000 (14:34 +0100)]
interactive todo lists todo item
Jon Dowland [Fri, 24 Apr 2009 13:26:45 +0000 (14:26 +0100)]
new todo item: more flexible inline postform
NicolasLimare [Fri, 24 Apr 2009 09:48:03 +0000 (05:48 -0400)]
Joey Hess [Thu, 23 Apr 2009 20:40:45 +0000 (16:40 -0400)]
simplifiy
Joey Hess [Thu, 23 Apr 2009 20:35:56 +0000 (16:35 -0400)]
Revert "pagespec_match_list * optimisation"
This reverts commit
2f96c49bd1826ecb213ae025ad456a714aa04863.
I forgot about internal pages. We don't want * matching them!
I left the optimisation in pagecount, where it used to live.
Internal pages probably don't matter when they're just being
counted.
Joey Hess [Thu, 23 Apr 2009 20:26:54 +0000 (16:26 -0400)]
avoid using pagespec_match_list here
I forgot to check if it was called from preprocess, and it is
not; it's called by a format hook. If an error is thrown from
a format hook, wiki build fails, so we don't want that.
Joey Hess [Thu, 23 Apr 2009 20:23:52 +0000 (16:23 -0400)]
simplify
Joey Hess [Thu, 23 Apr 2009 20:20:18 +0000 (16:20 -0400)]
pagespec_match_list * optimisation
Add an optimisation for the semi-common case of a "*" pagespec. Can
avoid doing any real processing in this case.
Joey Hess [Thu, 23 Apr 2009 20:14:35 +0000 (16:14 -0400)]
formatting
Joey Hess [Thu, 23 Apr 2009 20:13:40 +0000 (16:13 -0400)]
typo
Joey Hess [Thu, 23 Apr 2009 19:45:30 +0000 (15:45 -0400)]
pagespec_match_list added and used in most appropriate places
* pagespec_match_list: New API function, matches pages in a list
and throws an error if the pagespec is bad.
* inline, brokenlinks, calendar, linkmap, map, orphans, pagecount,
pagestate, postsparkline: Display a handy error message if the pagespec
is erronious.
Joey Hess [Thu, 23 Apr 2009 18:56:10 +0000 (14:56 -0400)]
comments: Add link to comment post form to allow user to sign in if they wish to, if the configuration makes signin optional for commenting.
Joey Hess [Thu, 23 Apr 2009 18:07:28 +0000 (14:07 -0400)]
pagespec error/failure distinction and error display by inline
* Add IkiWiki::ErrorReason objects, and modify pagespecs to return
them in cases where they fail to match due to a configuration or syntax
error.
* inline: Display a handy error message if the inline cannot display any
pages due to such an error.
This is perhaps somewhat incomplete, as other users of pagespecs do not
display the error, and will eventually need similar modifications to inline.
I should probably factor out a pagespec_match_all function and make it throw
ErrorReasons.
Joey Hess [Thu, 23 Apr 2009 17:39:42 +0000 (13:39 -0400)]
relativedate: Deal with clock skew.
If the server has a clock running a bit ahead of the web browsing client,
relativedate could cause somewhat confusing displays like "3 seconds from now"
for just posted things.
As a hack, avoid displaying times in the future if they're less than a
small slip forward. I chose 30 minutes because both client and server could
be wrong in different directions, while it's still close enough that "just
now" is not horribly wrong.
Joey Hess [Wed, 22 Apr 2009 20:12:54 +0000 (16:12 -0400)]
two problems
Joey Hess [Wed, 22 Apr 2009 20:00:36 +0000 (16:00 -0400)]
plan of attack
Joey Hess [Wed, 22 Apr 2009 19:38:50 +0000 (15:38 -0400)]
fix id
Joey Hess [Wed, 22 Apr 2009 19:36:40 +0000 (15:36 -0400)]
clarify
Joey Hess [Wed, 22 Apr 2009 18:05:37 +0000 (14:05 -0400)]
websetup: If setup fails, restore old setup file.
Joey Hess [Wed, 22 Apr 2009 17:35:17 +0000 (13:35 -0400)]
document how to get to the moderation page
Joey Hess [Wed, 22 Apr 2009 17:33:20 +0000 (13:33 -0400)]
blogspam: Load RPC::XML library in checkconfig, so that an error can be printed at that point if it's not available, allowing the admin to see it during wiki setup. Closes: #520015
Joey Hess [Wed, 22 Apr 2009 17:31:56 +0000 (13:31 -0400)]
websetup: Display stderr in browser if ikiwiki setup fails.
Víctor Moral [Wed, 22 Apr 2009 07:23:50 +0000 (09:23 +0200)]
updated spanish translation
Joey Hess [Wed, 22 Apr 2009 01:46:01 +0000 (21:46 -0400)]
Add python:Depends to control file. Closes: #525086
Joey Hess [Mon, 20 Apr 2009 17:47:53 +0000 (13:47 -0400)]
response
intrigeri [Mon, 20 Apr 2009 17:00:12 +0000 (19:00 +0200)]
pagetitle_function_does_not_respect_meta_titles: proposal
intrigeri [Mon, 20 Apr 2009 10:21:18 +0000 (12:21 +0200)]
Merge commit 'upstream/master' into pub/po
Conflicts:
debian/changelog
debian/control
intrigeri [Mon, 20 Apr 2009 09:52:16 +0000 (11:52 +0200)]
po: answered Joey, at last
Signed-off-by: intrigeri <intrigeri@boum.org>
intrigeri [Mon, 20 Apr 2009 09:38:15 +0000 (11:38 +0200)]
po: remove unneeded check on link plugin
Signed-off-by: intrigeri <intrigeri@boum.org>
simonraven [Mon, 20 Apr 2009 09:04:53 +0000 (05:04 -0400)]
Joey Hess [Sun, 19 Apr 2009 19:19:43 +0000 (15:19 -0400)]
clarification, response
simonraven [Sun, 19 Apr 2009 17:29:53 +0000 (13:29 -0400)]
typo
simonraven [Sun, 19 Apr 2009 17:28:57 +0000 (13:28 -0400)]
Joey Hess [Sun, 19 Apr 2009 02:52:17 +0000 (22:52 -0400)]
add news item for ikiwiki 3.10
Joey Hess [Sun, 19 Apr 2009 02:51:25 +0000 (22:51 -0400)]
releasing version 3.10
http://furicle.pip.verisignlabs.com/ [Thu, 16 Apr 2009 21:11:54 +0000 (17:11 -0400)]
typo - but it bugged me...
http://furicle.pip.verisignlabs.com/ [Thu, 16 Apr 2009 20:55:49 +0000 (16:55 -0400)]
Joey Hess [Wed, 15 Apr 2009 18:45:23 +0000 (14:45 -0400)]
it's a wiki, so yes
http://furicle.pip.verisignlabs.com/ [Wed, 15 Apr 2009 17:55:37 +0000 (13:55 -0400)]
http://furicle.pip.verisignlabs.com/ [Wed, 15 Apr 2009 17:50:28 +0000 (13:50 -0400)]
http://furicle.pip.verisignlabs.com/ [Wed, 15 Apr 2009 17:48:21 +0000 (13:48 -0400)]
Just dumb keyboard hammering
http://furicle.pip.verisignlabs.com/ [Wed, 15 Apr 2009 17:46:42 +0000 (13:46 -0400)]
Just dumb keyboard hammering
http://schmonz.livejournal.com/ [Wed, 15 Apr 2009 03:42:53 +0000 (23:42 -0400)]
patching Wrapper.pm no longer necessary as of 2.67