Commit Graph

9523 Commits (838955aba445f29b7990c7be97c505b6cbe86057)

Author SHA1 Message Date
Joey Hess 838955aba4 remove pagespec_match_list override for external
Not needed since it returns a list of pages, not a fail/success object.
2009-05-06 13:13:01 -04:00
Joey Hess 3c66e1552b Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2009-05-06 13:07:06 -04:00
Joey Hess d3188a04ff external: Fix pagespec_match and pagespec_match_list. Closes: #527281 2009-05-06 12:57:37 -04:00
http://smcv.pseudorandom.co.uk/ 6f991c7a1c 2009-05-06 06:11:53 -04:00
Jon Dowland 6cea66e2d8 remove test page (see /sandbox) 2009-05-06 10:13:21 +01:00
Joey Hess 2a7721febd 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.
2009-05-06 00:27:24 -04:00
Joey Hess 1c7c9e95f2 decruft 2009-05-05 23:27:29 -04:00
Joey Hess 968598b1bb Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2009-05-05 23:26:15 -04:00
http://ghee.livejournal.com/ a258e92c78 meh 2009-05-05 23:09:20 -04:00
Joey Hess c7303303f2 remove cruft that crept in during a debugging session 2009-05-05 20:13:40 -04:00
Joey Hess e77d0030d6 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.
2009-05-05 20:06:50 -04:00
Joey Hess ad2f1805a9 response 2009-05-05 14:28:42 -04:00
Joey Hess 39717d0dbf Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2009-05-05 14:25:08 -04:00
Joey Hess 7f6ebcd53e response 2009-05-05 14:24:55 -04:00
http://lj.rossia.org/users/imz/ 31240a9dd6 minor: fix URL 2009-05-05 14:24:41 -04:00
http://lj.rossia.org/users/imz/ e92ecd3e27 almost offtopic: is this actually a violation? 2009-05-05 14:21:38 -04:00
http://liw.fi/ 7633cc8474 2009-05-05 14:16:57 -04:00
Joey Hess 5636b62829 ikiwiki-makerepo: Avoid using abs_path, as it apparently fails on nonexistant directories with some broken perl versions. 2009-05-05 14:15:28 -04:00
Joey Hess 72736b5e72 Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info 2009-05-05 13:57:00 -04:00
http://lj.rossia.org/users/imz/ 0ee6705413 minor: trying to format the "verbatims" correctly 2009-05-05 13:46:25 -04:00
http://lj.rossia.org/users/imz/ 3a0d736412 added a clarifiaction about my understanding of what happens 2009-05-05 13:44:18 -04:00
http://lj.rossia.org/users/imz/ 39679d3a53 a problem with /etc/ikiwiki/auto.setup, perl and non-existent paths 2009-05-05 13:39:59 -04:00
http://stefano.zacchiroli.myopenid.com/ 50d6abf28b 2009-05-05 04:41:15 -04:00
Joey Hess 5e5bb93adb turn python-support back on
Should wait to upload until ikiwiki is fixed in testing.
2009-05-04 19:17:59 -04:00
Joey Hess dd175cda87 add news item for ikiwiki 3.11 2009-05-04 16:35:59 -04:00
Joey Hess 8455036ed0 releasing version 3.11 2009-05-04 16:33:10 -04:00
Joey Hess 39c8d072e8 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.
2009-05-04 14:41:21 -04:00
Joey Hess 8d5cd86593 response 2009-05-04 14:34:05 -04:00
Kai Hendry de26854d76 HTML5 story update 2009-05-04 11:08:27 +02:00
Kai Hendry a86fade7a9 anon commit test 2009-05-04 10:41:14 +02:00
simonraven 147828c62d 2009-05-02 21:21:39 -04:00
http://lj.rossia.org/users/imz/ 714f0e65cb a clarifying comment about a tool which is referred to 2009-05-02 13:30:17 -04:00
http://jmtd.net/ 559c0c42c8 published at http://github.com/jmtd/ikiwiki_todolist/ 2009-05-02 09:26:37 -04:00
http://jmtd.net/ 9e69aa5747 WIP todo list javascript in a demonstratable state 2009-05-02 07:54:00 -04:00
http://schmonz.livejournal.com/ 9e40564ecb personal experience 2009-04-30 15:18:40 -04:00
Jérémy Bobbio 19aa754ff5 passwordauth/discussion: Cosmetics 2009-04-30 00:24:41 +02:00
Jérémy Bobbio 0a6879a139 passwordauth/discussion: Document an attempt of using Apache::AuthenHook for a restricted wiki 2009-04-30 00:21:37 +02:00
albertlash 22421218d2 2009-04-28 19:42:18 -04:00
simonraven b2675a77c8 2009-04-28 19:12:52 -04:00
simonraven 31826c8b97 2009-04-28 19:11:38 -04:00
simonraven d6b095b06c 2009-04-28 17:46:21 -04:00
simonraven 0e8f7c336d 2009-04-28 16:42:35 -04:00
simonraven 972220412f 2009-04-28 16:14:44 -04:00
simonraven b8be54db22 s/choosen/chosen/ 2009-04-28 01:41:12 -04:00
Joey Hess a1bbeec148 translation.mdwn: Typo fixes. Closes: #525753 2009-04-27 13:57:35 -04:00
Joey Hess df9801a371 mention po plugin 2009-04-27 13:56:56 -04:00
Joey Hess 45c8b951a1 Updated Danish translation from Jonas Smedegaard. Closes: #525751 2009-04-27 13:54:48 -04:00
Víctor Moral a18c61c0bf upated spanish translation 2009-04-27 10:59:43 -04:00
TimBosse c70ae749a1 removed 2009-04-27 10:12:22 -04:00
TimBosse ca597d4edf 2009-04-26 23:58:47 -04:00