ikiwiki.git
7 years agoAssume that every page has been scanned by the time the scan phase ends
Simon McVittie [Wed, 5 Mar 2014 10:42:00 +0000 (10:42 +0000)] 
Assume that every page has been scanned by the time the scan phase ends

This doesn't prevent memory from being used to track what we have
and haven't scanned, but it does make it temporary. The existing
%rendered hash, which is filled afterwards, will be larger than %scanned
in practice anyway: %scanned will contain an entry for each page
that changed, plus an entry for each template used by templatebody,
whereas %rendered will contain an entry for each page that changed
plus an entry for each page rendered due to links or dependencies.

7 years agoTrack whether we're in the scan or render phase
Simon McVittie [Wed, 5 Mar 2014 10:11:04 +0000 (10:11 +0000)] 
Track whether we're in the scan or render phase

In the scan phase, it's too early to match pagespecs or sort pages;
in the render phase, both of those are OK.

It would be possible to add phases later, renumbering them if necessary
to maintain numerical order.

7 years agoUse templatebody for the templates in the basewiki and docwiki
Simon McVittie [Fri, 13 Sep 2013 09:30:24 +0000 (10:30 +0100)] 
Use templatebody for the templates in the basewiki and docwiki

7 years agoAdd templatebody plugin and directive, and enable it by default
Simon McVittie [Fri, 21 Feb 2014 22:45:29 +0000 (22:45 +0000)] 
Add templatebody plugin and directive, and enable it by default

Also add a regression test for templatebody.

7 years agoadd readtemplate hook
Simon McVittie [Fri, 21 Feb 2014 21:10:43 +0000 (21:10 +0000)] 
add readtemplate hook

7 years agoIkiWiki::Render: make 'scan' idempotent
Simon McVittie [Fri, 13 Sep 2013 08:14:24 +0000 (09:14 +0100)] 
IkiWiki::Render: make 'scan' idempotent

If it does nothing when a page has already been scanned, we can use it
at any time to force a page to be scanned. In particular, the
templatebody plugin is going to need this.

7 years agoescape pagespec
http://smcv.pseudorandom.co.uk/ [Wed, 5 Mar 2014 09:04:57 +0000 (05:04 -0400)] 
escape pagespec

7 years agonew bug
http://smcv.pseudorandom.co.uk/ [Wed, 5 Mar 2014 09:03:39 +0000 (05:03 -0400)] 
new bug

7 years agoPoint to my Email::Send patch.
Thomas Schwinge [Tue, 4 Mar 2014 13:21:04 +0000 (14:21 +0100)] 
Point to my Email::Send patch.

7 years agoReanimate some of my URLs.
Thomas Schwinge [Tue, 4 Mar 2014 13:16:18 +0000 (14:16 +0100)] 
Reanimate some of my URLs.

7 years agodiagnosis
http://smcv.pseudorandom.co.uk/ [Mon, 3 Mar 2014 16:19:44 +0000 (12:19 -0400)] 
diagnosis

7 years agoanother unicode problem, again with the title
https://id.koumbit.net/anarcat [Mon, 3 Mar 2014 15:49:55 +0000 (11:49 -0400)] 
another unicode problem, again with the title

7 years agodocumentation merge request
http://smcv.pseudorandom.co.uk/ [Mon, 3 Mar 2014 12:18:00 +0000 (08:18 -0400)] 
documentation merge request

7 years agonew bug report with patch
http://smcv.pseudorandom.co.uk/ [Mon, 3 Mar 2014 12:06:27 +0000 (08:06 -0400)] 
new bug report with patch

7 years agoescape sample directive
http://smcv.pseudorandom.co.uk/ [Mon, 3 Mar 2014 11:45:22 +0000 (07:45 -0400)] 
escape sample directive

7 years agoan order-of-magnitude optimization which also improves correctness
http://smcv.pseudorandom.co.uk/ [Mon, 3 Mar 2014 11:44:31 +0000 (07:44 -0400)] 
an order-of-magnitude optimization which also improves correctness

7 years ago(no commit message)
http://smcv.pseudorandom.co.uk/ [Mon, 3 Mar 2014 09:06:44 +0000 (05:06 -0400)] 

7 years ago(no commit message)
http://thomaslevine.com/ [Sun, 2 Mar 2014 21:58:41 +0000 (17:58 -0400)] 

7 years ago(no commit message)
http://thomaslevine.com/ [Sun, 2 Mar 2014 21:58:04 +0000 (17:58 -0400)] 

7 years ago(no commit message)
http://thomaslevine.com/ [Sun, 2 Mar 2014 21:57:17 +0000 (17:57 -0400)] 

7 years agoAnswer
spalax [Sat, 1 Mar 2014 15:49:01 +0000 (11:49 -0400)] 
Answer

7 years agounconfuse
wouter [Sat, 1 Mar 2014 14:43:56 +0000 (10:43 -0400)] 
unconfuse

7 years agoadd wishlist item
wouter [Sat, 1 Mar 2014 14:43:02 +0000 (10:43 -0400)] 
add wishlist item

7 years agono test edits outside /sandbox, please
http://smcv.pseudorandom.co.uk/ [Sat, 1 Mar 2014 12:42:12 +0000 (08:42 -0400)] 
no test edits outside /sandbox, please

This reverts commit 77e987059bf303b44f5ab7e95af390cfe0efbdf1

7 years ago(no commit message)
https://www.google.com/accounts/o8/id?id=AItOawnUpGSwiQsCiOrV0Zry0t0J15wZl1cFyeY [Sat, 1 Mar 2014 07:06:53 +0000 (03:06 -0400)] 

7 years ago(no commit message)
https://www.google.com/accounts/o8/id?id=AItOawnUpGSwiQsCiOrV0Zry0t0J15wZl1cFyeY [Sat, 1 Mar 2014 07:05:51 +0000 (03:05 -0400)] 

7 years ago+ rescaling distortion
bastla [Fri, 28 Feb 2014 16:59:08 +0000 (12:59 -0400)] 
+ rescaling distortion

7 years ago(no commit message)
http://aaronparecki.com/ [Fri, 28 Feb 2014 03:19:14 +0000 (23:19 -0400)] 

7 years agoadd news item for ikiwiki 3.20140227
Joey Hess [Thu, 27 Feb 2014 16:02:45 +0000 (12:02 -0400)] 
add news item for ikiwiki 3.20140227

7 years agoprep release
Joey Hess [Thu, 27 Feb 2014 15:58:54 +0000 (11:58 -0400)] 
prep release

7 years agopython proxy: Avoid utf-8 related crash. Thanks, Antoine Beaupré
Joey Hess [Tue, 25 Feb 2014 04:16:14 +0000 (00:16 -0400)] 
python proxy: Avoid utf-8 related crash. Thanks, Antoine Beaupré

7 years agoMerge branch 'master' of ssh://git.ikiwiki.info
Joey Hess [Tue, 25 Feb 2014 04:14:50 +0000 (00:14 -0400)] 
Merge branch 'master' of ssh://git.ikiwiki.info

7 years agoMerge remote-tracking branch 'anarcat/dev/proxy-utf8-fail'
Joey Hess [Tue, 25 Feb 2014 04:13:36 +0000 (00:13 -0400)] 
Merge remote-tracking branch 'anarcat/dev/proxy-utf8-fail'

7 years agopushed the branch, sorry!!
https://id.koumbit.net/anarcat [Tue, 25 Feb 2014 04:05:31 +0000 (00:05 -0400)] 
pushed the branch, sorry!!

7 years agocomments, and thanks!
https://id.koumbit.net/anarcat [Tue, 25 Feb 2014 04:03:12 +0000 (00:03 -0400)] 
comments, and thanks!

7 years agomention fdo
https://id.koumbit.net/anarcat [Tue, 25 Feb 2014 03:52:43 +0000 (23:52 -0400)] 
mention fdo

7 years ago(no commit message)
http://smcv.pseudorandom.co.uk/ [Mon, 24 Feb 2014 18:10:30 +0000 (14:10 -0400)] 

7 years ago(no commit message)
https://www.google.com/accounts/o8/id?id=AItOawkwqKsWfFCk-NK99S77R2v1JorVCnpzXUA [Mon, 24 Feb 2014 17:46:56 +0000 (13:46 -0400)] 

7 years ago(no commit message)
http://smcv.pseudorandom.co.uk/ [Mon, 24 Feb 2014 10:50:12 +0000 (06:50 -0400)] 

7 years ago(no commit message)
http://smcv.pseudorandom.co.uk/ [Mon, 24 Feb 2014 00:02:34 +0000 (20:02 -0400)] 

7 years ago(no commit message)
http://smcv.pseudorandom.co.uk/ [Sun, 23 Feb 2014 23:14:00 +0000 (19:14 -0400)] 

7 years agoprofiling
http://smcv.pseudorandom.co.uk/ [Sun, 23 Feb 2014 22:40:12 +0000 (18:40 -0400)] 
profiling

7 years agoreviewed, not merged
Joey Hess [Sun, 23 Feb 2014 18:42:25 +0000 (14:42 -0400)] 
reviewed, not merged

7 years agoImprove templates testing. Thanks, smcv
Joey Hess [Sun, 23 Feb 2014 18:32:18 +0000 (14:32 -0400)] 
Improve templates testing. Thanks, smcv

7 years agoMerge remote-tracking branch 'remotes/smcv/ready/template-syntax-test'
Joey Hess [Sun, 23 Feb 2014 18:31:51 +0000 (14:31 -0400)] 
Merge remote-tracking branch 'remotes/smcv/ready/template-syntax-test'

7 years agoforgot to close this one when merging
Joey Hess [Sun, 23 Feb 2014 18:30:37 +0000 (14:30 -0400)] 
forgot to close this one when merging

7 years agopatchmeister
Joey Hess [Sun, 23 Feb 2014 18:29:27 +0000 (14:29 -0400)] 
patchmeister

7 years agoCleanup of the openid login widget, including replacing of hotlinked images from...
Joey Hess [Sun, 23 Feb 2014 18:28:22 +0000 (14:28 -0400)] 
Cleanup of the openid login widget, including replacing of hotlinked images from openid providers with embedded, freely licensed artwork. Thanks, smcv

7 years agoMerge remote-tracking branch 'remotes/smcv/ready/openid'
Joey Hess [Sun, 23 Feb 2014 18:24:15 +0000 (14:24 -0400)] 
Merge remote-tracking branch 'remotes/smcv/ready/openid'

7 years agoDeal with nasty issue with gettext clobbering $@ while printing error message contain...
Joey Hess [Sun, 23 Feb 2014 18:21:44 +0000 (14:21 -0400)] 
Deal with nasty issue with gettext clobbering $@ while printing error message containing it. Thanks, smcv

7 years agoMerge remote-tracking branch 'remotes/smcv/ready/careful-eval'
Joey Hess [Sun, 23 Feb 2014 18:21:13 +0000 (14:21 -0400)] 
Merge remote-tracking branch 'remotes/smcv/ready/careful-eval'

7 years agogit: Explicity push master branch, as will be needed by git 2.0's change to push...
Joey Hess [Sun, 23 Feb 2014 18:20:27 +0000 (14:20 -0400)] 
git: Explicity push master branch, as will be needed by git 2.0's change to push.default=matching by default. Thanks, smcv

7 years agoMerge remote-tracking branch 'remotes/smcv/ready/git-push-origin-master'
Joey Hess [Sun, 23 Feb 2014 18:19:39 +0000 (14:19 -0400)] 
Merge remote-tracking branch 'remotes/smcv/ready/git-push-origin-master'

7 years agogit diffurl: Do not escape / in paths to changed files, in order to interoperate...
Joey Hess [Sun, 23 Feb 2014 18:15:49 +0000 (14:15 -0400)] 
git diffurl: Do not escape / in paths to changed files, in order to interoperate with cgit (gitweb works either way) Thanks, intrigeri.

7 years agoMerge remote-tracking branch 'intrigeri/fix_diffurl_vs._cgit'
Joey Hess [Sun, 23 Feb 2014 18:13:53 +0000 (14:13 -0400)] 
Merge remote-tracking branch 'intrigeri/fix_diffurl_vs._cgit'

7 years agoAllow up to 8 levels of nested directives, rather than previous 3 in directive infini...
Joey Hess [Sun, 23 Feb 2014 18:11:54 +0000 (14:11 -0400)] 
Allow up to 8 levels of nested directives, rather than previous 3 in directive infinite loop guard.

7 years agomerged patch; bug left open
Joey Hess [Sun, 23 Feb 2014 18:10:12 +0000 (14:10 -0400)] 
merged patch; bug left open

7 years agoMerge remote-tracking branch 'anarcat/dev/syslog_utf8'
Joey Hess [Sun, 23 Feb 2014 18:09:51 +0000 (14:09 -0400)] 
Merge remote-tracking branch 'anarcat/dev/syslog_utf8'

7 years agopo: Add html_lang_code and html_lang_dir template variables for the language code...
Joey Hess [Sun, 23 Feb 2014 18:08:22 +0000 (14:08 -0400)] 
po: Add html_lang_code and html_lang_dir template variables for the language code and direction of text. Thanks, Mesar Hameed

7 years agoMerge remote-tracking branch 'mhameed/html_lang_and_dir'
Joey Hess [Sun, 23 Feb 2014 18:06:40 +0000 (14:06 -0400)] 
Merge remote-tracking branch 'mhameed/html_lang_and_dir'

7 years agoMerge branch 'master' of ssh://git.ikiwiki.info
Joey Hess [Sun, 23 Feb 2014 18:05:36 +0000 (14:05 -0400)] 
Merge branch 'master' of ssh://git.ikiwiki.info

7 years agoperformance problem
http://smcv.pseudorandom.co.uk/ [Sun, 23 Feb 2014 17:58:54 +0000 (13:58 -0400)] 
performance problem

7 years agonew version of the branch; thanks to chrysn for early feedback
http://smcv.pseudorandom.co.uk/ [Sun, 23 Feb 2014 17:38:38 +0000 (13:38 -0400)] 
new version of the branch; thanks to chrysn for early feedback

7 years agoduplicate
http://smcv.pseudorandom.co.uk/ [Sun, 23 Feb 2014 17:33:19 +0000 (13:33 -0400)] 
duplicate

7 years agoreview
http://smcv.pseudorandom.co.uk/ [Sun, 23 Feb 2014 14:09:19 +0000 (10:09 -0400)] 
review

7 years agoadd an inline
http://smcv.pseudorandom.co.uk/ [Sun, 23 Feb 2014 00:53:29 +0000 (20:53 -0400)] 
add an inline

7 years ago(no commit message)
http://smcv.pseudorandom.co.uk/ [Sun, 23 Feb 2014 00:52:10 +0000 (20:52 -0400)] 

7 years agoupdate for rename of users/smcv/approved.mdwn to users/smcv/yesplease.mdwn
http://smcv.pseudorandom.co.uk/ [Sun, 23 Feb 2014 00:48:55 +0000 (20:48 -0400)] 
update for rename of users/smcv/approved.mdwn to users/smcv/yesplease.mdwn

7 years agoupdate for rename of users/smcv/approved.mdwn to users/smcv/yesplease.mdwn
http://smcv.pseudorandom.co.uk/ [Sun, 23 Feb 2014 00:48:55 +0000 (20:48 -0400)] 
update for rename of users/smcv/approved.mdwn to users/smcv/yesplease.mdwn

7 years agoupdate for rename of users/smcv/approved.mdwn to users/smcv/yesplease.mdwn
http://smcv.pseudorandom.co.uk/ [Sun, 23 Feb 2014 00:48:54 +0000 (20:48 -0400)] 
update for rename of users/smcv/approved.mdwn to users/smcv/yesplease.mdwn

7 years agoupdate for rename of users/smcv/approved.mdwn to users/smcv/yesplease.mdwn
http://smcv.pseudorandom.co.uk/ [Sun, 23 Feb 2014 00:48:54 +0000 (20:48 -0400)] 
update for rename of users/smcv/approved.mdwn to users/smcv/yesplease.mdwn

7 years agorename users/smcv/approved.mdwn to users/smcv/yesplease.mdwn
http://smcv.pseudorandom.co.uk/ [Sun, 23 Feb 2014 00:48:53 +0000 (20:48 -0400)] 
rename users/smcv/approved.mdwn to users/smcv/yesplease.mdwn

7 years agoreview: I would suggest cherry-picking part of the branch
http://smcv.pseudorandom.co.uk/ [Sun, 23 Feb 2014 00:21:58 +0000 (20:21 -0400)] 
review: I would suggest cherry-picking part of the branch

7 years agolooks good to me
http://smcv.pseudorandom.co.uk/ [Sat, 22 Feb 2014 23:58:04 +0000 (19:58 -0400)] 
looks good to me

7 years agobetter description
http://smcv.pseudorandom.co.uk/ [Sat, 22 Feb 2014 23:44:39 +0000 (19:44 -0400)] 
better description

7 years agoer, better markup
http://smcv.pseudorandom.co.uk/ [Sat, 22 Feb 2014 23:43:07 +0000 (19:43 -0400)] 
er, better markup

7 years agolooks good to me
http://smcv.pseudorandom.co.uk/ [Sat, 22 Feb 2014 23:42:18 +0000 (19:42 -0400)] 
looks good to me

7 years agomissing branch?
http://smcv.pseudorandom.co.uk/ [Sat, 22 Feb 2014 23:31:29 +0000 (19:31 -0400)] 
missing branch?

7 years agoreview
http://smcv.pseudorandom.co.uk/ [Sat, 22 Feb 2014 23:24:58 +0000 (19:24 -0400)] 
review

7 years agoreview
http://smcv.pseudorandom.co.uk/ [Sat, 22 Feb 2014 23:10:14 +0000 (19:10 -0400)] 
review

7 years agopseudocode to make orphans plugin more useful
http://smcv.pseudorandom.co.uk/ [Sat, 22 Feb 2014 18:43:08 +0000 (14:43 -0400)] 
pseudocode to make orphans plugin more useful

7 years ago(no commit message)
holger [Sat, 22 Feb 2014 15:32:38 +0000 (11:32 -0400)] 

7 years ago(no commit message)
holger [Sat, 22 Feb 2014 15:31:32 +0000 (11:31 -0400)] 

7 years ago(no commit message)
holger [Sat, 22 Feb 2014 15:30:18 +0000 (11:30 -0400)] 

7 years agoI'd merge it
http://smcv.pseudorandom.co.uk/ [Sat, 22 Feb 2014 15:21:28 +0000 (11:21 -0400)] 
I'd merge it

7 years ago(no commit message)
http://smcv.pseudorandom.co.uk/ [Sat, 22 Feb 2014 15:11:25 +0000 (11:11 -0400)] 

7 years agoI can't commit this, but I would if I could
http://smcv.pseudorandom.co.uk/ [Sat, 22 Feb 2014 15:10:13 +0000 (11:10 -0400)] 
I can't commit this, but I would if I could

7 years ago(no commit message)
http://smcv.pseudorandom.co.uk/ [Sat, 22 Feb 2014 15:01:39 +0000 (11:01 -0400)] 

7 years agobug report, patch
http://smcv.pseudorandom.co.uk/ [Fri, 21 Feb 2014 19:42:03 +0000 (15:42 -0400)] 
bug report, patch

7 years agotemplate_syntax.t: include doc/templates/*.mdwn in test
Simon McVittie [Fri, 21 Feb 2014 18:38:10 +0000 (18:38 +0000)] 
template_syntax.t: include doc/templates/*.mdwn in test

Previously, this test assigned the first glob to @templates, and
evaluated the second for its (practically nonexistent) side-effects.

7 years agoreinstate linebreak
Simon McVittie [Fri, 21 Feb 2014 18:35:54 +0000 (18:35 +0000)] 
reinstate linebreak

7 years agoFix template syntax, again
Simon McVittie [Fri, 21 Feb 2014 18:35:02 +0000 (18:35 +0000)] 
Fix template syntax, again

7 years agouse a <div> for the infobox so mdwn doesn't insert <p> inside a <span>
http://smcv.pseudorandom.co.uk/ [Fri, 21 Feb 2014 18:19:09 +0000 (14:19 -0400)] 
use a <div> for the infobox so mdwn doesn't insert <p> inside a <span>

7 years agonew bug report with patch
http://smcv.pseudorandom.co.uk/ [Fri, 21 Feb 2014 18:12:00 +0000 (14:12 -0400)] 
new bug report with patch

7 years agobalance end tag
http://smcv.pseudorandom.co.uk/ [Fri, 21 Feb 2014 17:37:07 +0000 (13:37 -0400)] 
balance end tag

7 years agoadd optional gitweb/cgit link
http://smcv.pseudorandom.co.uk/ [Fri, 21 Feb 2014 17:20:12 +0000 (13:20 -0400)] 
add optional gitweb/cgit link

7 years agoadd gitweb link
http://smcv.pseudorandom.co.uk/ [Fri, 21 Feb 2014 17:18:05 +0000 (13:18 -0400)] 
add gitweb link

7 years agofix branch template, add Try::Tiny references
http://smcv.pseudorandom.co.uk/ [Fri, 21 Feb 2014 17:16:23 +0000 (13:16 -0400)] 
fix branch template, add Try::Tiny references

7 years agonew bug, new branch
http://smcv.pseudorandom.co.uk/ [Fri, 21 Feb 2014 17:12:17 +0000 (13:12 -0400)] 
new bug, new branch

7 years agoprotect $@ whenever a block using $@ is non-trivial
Simon McVittie [Fri, 21 Feb 2014 17:06:36 +0000 (17:06 +0000)] 
protect $@ whenever a block using $@ is non-trivial

As noted in the Try::Tiny man page, eval/$@ can be quite awkward in
corner cases, because $@ has the same properties and problems as C's
errno. While writing a regression test for definetemplate
in which it couldn't find an appropriate template, I received

    <span class="error">Error: failed to process template
    <span class="createlink">deftmpl</span> </span>

instead of the intended

    <span class="error">Error: failed to process template
    <span class="createlink">deftmpl</span> template deftmpl not
    found</span>

which turned out to be because the "catch"-analogous block called
gettext before it used $@, and gettext can call define_gettext,
which uses eval.

This commit alters all current "catch"-like blocks that use $@, except
those that just do trivial things with $@ (string interpolation, string
concatenation) and call a function (die, error, print, etc.)