ikiwiki
15 years agoRender.pm: also use 'our' for $backlinks_calculated
intrigeri [Thu, 1 Jan 2009 12:07:08 +0000 (13:07 +0100)] 
Render.pm: also use 'our' for $backlinks_calculated

Since %backlinks are now declared with 'our', this variable must be as well.

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agopo(myurlto): more robust run_by_editpage logic
intrigeri [Thu, 1 Jan 2009 00:14:06 +0000 (01:14 +0100)] 
po(myurlto): more robust run_by_editpage logic

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agopo: some code/comments refactoring
intrigeri [Wed, 31 Dec 2008 23:58:06 +0000 (00:58 +0100)] 
po: some code/comments refactoring

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agopo: follow new coding style (removed Vim folding markers
intrigeri [Wed, 31 Dec 2008 22:54:21 +0000 (23:54 +0100)] 
po: follow new coding style (removed Vim folding markers
)
Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agopo: added postscan hook, to make pages depend on the pages linking to them
intrigeri [Wed, 31 Dec 2008 21:27:12 +0000 (22:27 +0100)] 
po: added postscan hook, to make pages depend on the pages linking to them

... so that nicepagetitle hook's effects, such as translation status displayed
in links, are updated when the linked page changes.

The replacement of 'my %backlinks' with 'our %backlinks' in Render.pm made this
work: previously, every postscan hook was called with an almost empty
%backlinks, which defeated all my attempts to implement this feature.

This feature hits performance a bit. Its cost was quite small in my real-world
use-cases (a few percents bigger refresh time), but could be bigger in worst
cases. Time will tell.

NB: this hack could also be used by my meta branch. It may even be a ikiwiki
optional feature.

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agopo/todo: reflect current link-related work status
intrigeri [Wed, 31 Dec 2008 16:10:33 +0000 (17:10 +0100)] 
po/todo: reflect current link-related work status

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agopo: new po_translation_status_in_links option
intrigeri [Wed, 31 Dec 2008 15:45:55 +0000 (16:45 +0100)] 
po: new po_translation_status_in_links option

... to make configurable the last implemented feature.

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agopo(nicepagetitle): forgot to display %
intrigeri [Wed, 31 Dec 2008 15:34:08 +0000 (16:34 +0100)] 
po(nicepagetitle): forgot to display %

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agopo(percenttranslated): fix issue with leading /
intrigeri [Wed, 31 Dec 2008 15:31:18 +0000 (16:31 +0100)] 
po(percenttranslated): fix issue with leading /

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agopo(nicepagetitle): append translation status to links to translated pages
intrigeri [Wed, 31 Dec 2008 14:45:05 +0000 (15:45 +0100)] 
po(nicepagetitle): append translation status to links to translated pages

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agopo: inject our own (currently a no-op) nicepagetitle function
intrigeri [Wed, 31 Dec 2008 14:37:25 +0000 (15:37 +0100)] 
po: inject our own (currently a no-op) nicepagetitle function

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agopo/todo: reflect current status of links-related work
intrigeri [Wed, 31 Dec 2008 14:23:59 +0000 (15:23 +0100)] 
po/todo: reflect current status of links-related work

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agopo: fix redirect after edit, using a somehow tricky hack
intrigeri [Wed, 31 Dec 2008 12:02:48 +0000 (13:02 +0100)] 
po: fix redirect after edit, using a somehow tricky hack

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agopo: delete translations of deleted master pages
intrigeri [Tue, 30 Dec 2008 23:38:47 +0000 (00:38 +0100)] 
po: delete translations of deleted master pages

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agopo: remove debug statements
intrigeri [Tue, 30 Dec 2008 22:10:12 +0000 (23:10 +0100)] 
po: remove debug statements

15 years agopo: remove renamed pages special handling, not needed anymore
intrigeri [Tue, 30 Dec 2008 22:00:46 +0000 (23:00 +0100)] 
po: remove renamed pages special handling, not needed anymore

Thanks to the new rename hook behaviour, the whole renaming work is now done
by the rename plugin, and we don't need to remember which pages were renamed.

15 years agothe rename hook can now change the list of pages to rename
intrigeri [Tue, 30 Dec 2008 21:55:04 +0000 (22:55 +0100)] 
the rename hook can now change the list of pages to rename

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agorenamed the renamepage hook to renamelink, added rename hook
intrigeri [Tue, 30 Dec 2008 20:36:40 +0000 (21:36 +0100)] 
renamed the renamepage hook to renamelink, added rename hook

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agopo.t: adapted a few tests to match the current ikiwiki behaviour
intrigeri [Tue, 30 Dec 2008 17:55:32 +0000 (18:55 +0100)] 
po.t: adapted a few tests to match the current ikiwiki behaviour

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years agoMerge commit 'upstream/master' into prv/po
intrigeri [Tue, 30 Dec 2008 17:24:36 +0000 (18:24 +0100)] 
Merge commit 'upstream/master' into prv/po

Conflicts:

debian/control
debian/copyright
doc/ikiwiki/pagespec.mdwn

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years ago(no commit message)
http://blog.mithis.net/ [Mon, 29 Dec 2008 07:01:49 +0000 (02:01 -0500)] 

15 years ago(no commit message)
http://blog.mithis.net/ [Mon, 29 Dec 2008 06:26:34 +0000 (01:26 -0500)] 

15 years ago1st comment spam
Joey Hess [Mon, 29 Dec 2008 03:31:22 +0000 (22:31 -0500)] 
1st comment spam

15 years agoformatting
Joey Hess [Mon, 29 Dec 2008 03:23:15 +0000 (22:23 -0500)] 
formatting

15 years agoclarify cgiurl setting
Joey Hess [Mon, 29 Dec 2008 03:03:34 +0000 (22:03 -0500)] 
clarify cgiurl setting

15 years agoadd news item for ikiwiki 2.72
Joey Hess [Sun, 28 Dec 2008 20:05:33 +0000 (15:05 -0500)] 
add news item for ikiwiki 2.72

15 years agoreleasing version 2.72
Joey Hess [Sun, 28 Dec 2008 20:05:05 +0000 (15:05 -0500)] 
releasing version 2.72

15 years agoinline: Run format hook first
Joey Hess [Fri, 26 Dec 2008 21:08:33 +0000 (16:08 -0500)] 
inline: Run format hook first

inline has a format hook that is an optimisation hack. Until this hook
runs, the inlined content is not present on the page. This can prevent
other format hooks, that process that content, from acting on inlined
content. In bug ##509710, we discovered this happened commonly for the
embed plugin, but it could in theory happen for many other plugins (color,
cutpaste, etc) that use format to fill in special html after sanitization.

The ordering was essentially random (hash key order). That's kinda a good
thing, because hooks should be independent of other hooks and able to run
in any order. But for things like inline, that just doesn't work.

To fix the immediate problem, let's make hooks able to be registered as
running "first". There was already the ability to make them run "last".

Now, this simple first/middle/last ordering is obviously not going to work
if a lot of things need to run first, or last, since then we'll be back to
being unable to specify ordering inside those sets. But before worrying about
that too much, and considering dependency ordering, etc, observe how few
plugins use last ordering: Exactly one needs it. And, so far, exactly one
needs first ordering. So for now, KISS.

Another implementation note: I could have sorted the plugins with
first/last/middle as the primary key, and plugin name secondary, to get a
guaranteed stable order. Instead, I chose to preserve hash order. Two
opposing things pulled me toward that decision:

1. Since has order is randomish, it will ensure that no accidental
   ordering assumptions are made.
2. Assume for a minute that ordering matters a lot more than expected.
   Drastically changing the order a particular configuration uses could
   result in a lot of subtle bugs cropping up. (I hope this assumption is
   false, partly due to #1, but can't rule it out.)

15 years agocomments: Deal with users entering unqualified or partial urls.
Joey Hess [Fri, 26 Dec 2008 19:07:19 +0000 (14:07 -0500)] 
comments: Deal with users entering unqualified or partial urls.

People seem to be able to expect to enter www.foo.com and get away with it.
The resulting my.wiki/www.foo.com link was not ideal.

To fix it, use URI::Heuristic to expand such things into a real url. It
even looks up hostnames in the DNS if necessary.

15 years agogooglecalendar: Add runtime deprecation warning.
Joey Hess [Thu, 25 Dec 2008 21:31:58 +0000 (16:31 -0500)] 
googlecalendar: Add runtime deprecation warning.

15 years agoclose
Joey Hess [Wed, 24 Dec 2008 01:08:01 +0000 (20:08 -0500)] 
close

15 years agocamelcase: Add camelcase_ignore setting.
Joey Hess [Wed, 24 Dec 2008 00:11:03 +0000 (19:11 -0500)] 
camelcase: Add camelcase_ignore setting.

15 years ago(no commit message)
http://puck.openid.org/ [Tue, 23 Dec 2008 23:05:38 +0000 (18:05 -0500)] 

15 years ago(no commit message)
http://puck.openid.org/ [Tue, 23 Dec 2008 22:48:05 +0000 (17:48 -0500)] 

15 years agohack to avoid globlist deprecaton message false positive
Joey Hess [Tue, 23 Dec 2008 22:19:27 +0000 (17:19 -0500)] 
hack to avoid globlist deprecaton message false positive

15 years agoAdd deprecation warning for GlobLists, which will stop working in 3.0.
Joey Hess [Tue, 23 Dec 2008 22:13:57 +0000 (17:13 -0500)] 
Add deprecation warning for GlobLists, which will stop working in 3.0.

15 years agofix a few directives using the old syntax
Joey Hess [Tue, 23 Dec 2008 21:25:52 +0000 (16:25 -0500)] 
fix a few directives using the old syntax

I'm turning on prefix_directives for the live wiki now.

15 years agoresponse
Joey Hess [Tue, 23 Dec 2008 18:27:16 +0000 (13:27 -0500)] 
response

15 years agofix popcon graph link
Joey Hess [Tue, 23 Dec 2008 18:19:47 +0000 (13:19 -0500)] 
fix popcon graph link

15 years agoAny other schools?
http://hendry.iki.fi/ [Tue, 23 Dec 2008 14:29:02 +0000 (09:29 -0500)] 
Any other schools?

15 years agopo: make the dev timing clearer
intrigeri [Mon, 22 Dec 2008 23:24:48 +0000 (00:24 +0100)] 
po: make the dev timing clearer

15 years agohttpauth_feature_parity_with_passwordauth: a bit more thinking
intrigeri [Mon, 22 Dec 2008 23:13:12 +0000 (00:13 +0100)] 
httpauth_feature_parity_with_passwordauth: a bit more thinking

Signed-off-by: intrigeri <intrigeri@boum.org>
15 years ago(no commit message)
http://puck.openid.org/ [Tue, 23 Dec 2008 04:14:15 +0000 (23:14 -0500)] 

15 years agomerge recentchanges comments fix
Joey Hess [Tue, 23 Dec 2008 00:04:02 +0000 (19:04 -0500)] 
merge recentchanges comments fix

15 years agoMerge commit 'smcv/recentchanges'
Joey Hess [Tue, 23 Dec 2008 00:02:03 +0000 (19:02 -0500)] 
Merge commit 'smcv/recentchanges'

15 years agoMerge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Joey Hess [Tue, 23 Dec 2008 00:00:38 +0000 (19:00 -0500)] 
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info

15 years agoreference my recentchanges branch
http://smcv.pseudorandom.co.uk/ [Mon, 22 Dec 2008 23:09:15 +0000 (18:09 -0500)] 
reference my recentchanges branch

15 years agorecentchanges_link CGI: If the linked page is internal, use its permalink
Simon McVittie [Mon, 22 Dec 2008 23:02:08 +0000 (23:02 +0000)] 
recentchanges_link CGI: If the linked page is internal, use its permalink

This fixes a bug, that comments appear in recentchanges as broken links.

15 years agoupdate
Joey Hess [Mon, 22 Dec 2008 21:41:29 +0000 (16:41 -0500)] 
update

15 years agoadd news item for ikiwiki 2.71
Joey Hess [Mon, 22 Dec 2008 05:03:15 +0000 (00:03 -0500)] 
add news item for ikiwiki 2.71

15 years agounify pagespecs
Joey Hess [Sun, 21 Dec 2008 21:50:50 +0000 (16:50 -0500)] 
unify pagespecs

15 years agofix links
Joey Hess [Sun, 21 Dec 2008 21:48:15 +0000 (16:48 -0500)] 
fix links

15 years agoformatting
Joey Hess [Sun, 21 Dec 2008 21:45:59 +0000 (16:45 -0500)] 
formatting

15 years agomention comments plugin
Joey Hess [Sun, 21 Dec 2008 21:44:02 +0000 (16:44 -0500)] 
mention comments plugin

15 years agoavoid an uninitialized value warning
Joey Hess [Sun, 21 Dec 2008 18:46:00 +0000 (13:46 -0500)] 
avoid an uninitialized value warning

15 years agoopenid branch merged
Joey Hess [Sun, 21 Dec 2008 18:14:31 +0000 (13:14 -0500)] 
openid branch merged

15 years agoMerge commit 'smcv/openid'
Joey Hess [Sun, 21 Dec 2008 18:13:28 +0000 (13:13 -0500)] 
Merge commit 'smcv/openid'

15 years agomore reorg
Joey Hess [Sun, 21 Dec 2008 18:08:26 +0000 (13:08 -0500)] 
more reorg

15 years agoclose merged bugs
Joey Hess [Sun, 21 Dec 2008 18:00:03 +0000 (13:00 -0500)] 
close merged bugs

15 years agoadd another test
Joey Hess [Sun, 21 Dec 2008 17:59:11 +0000 (12:59 -0500)] 
add another test

15 years agoMerge commit 'smcv/comments'
Joey Hess [Sun, 21 Dec 2008 17:50:30 +0000 (12:50 -0500)] 
Merge commit 'smcv/comments'

15 years agoMerge branch 'comments'
Joey Hess [Sun, 21 Dec 2008 17:48:14 +0000 (12:48 -0500)] 
Merge branch 'comments'

15 years agoAnother fixed bug in beautify_urlpath
http://smcv.pseudorandom.co.uk/ [Sun, 21 Dec 2008 17:25:55 +0000 (12:25 -0500)] 
Another fixed bug in beautify_urlpath

15 years agotrivial bug with patch
http://smcv.pseudorandom.co.uk/ [Sun, 21 Dec 2008 17:23:34 +0000 (12:23 -0500)] 
trivial bug with patch

15 years agoAnother comments improvement
Simon McVittie [Sun, 21 Dec 2008 17:18:43 +0000 (17:18 +0000)] 
Another comments improvement

15 years agorssitem.tmpl: include comments URL (HTML only)
Simon McVittie [Sun, 21 Dec 2008 17:16:24 +0000 (17:16 +0000)] 
rssitem.tmpl: include comments URL (HTML only)

15 years agoatomitem.tmpl: include comments URLs (HTML and Atom versions)
Simon McVittie [Sun, 21 Dec 2008 17:16:12 +0000 (17:16 +0000)] 
atomitem.tmpl: include comments URLs (HTML and Atom versions)

15 years agocomments: substitute commentsurl and atomcommentsurl for use in feeds
Simon McVittie [Sun, 21 Dec 2008 17:15:49 +0000 (17:15 +0000)] 
comments: substitute commentsurl and atomcommentsurl for use in feeds

15 years agoMention a patch to improve OpenID display
http://smcv.pseudorandom.co.uk/ [Sun, 21 Dec 2008 16:43:43 +0000 (11:43 -0500)] 
Mention a patch to improve OpenID display

15 years agoAdd a regression test for &openiduser
Simon McVittie [Sun, 21 Dec 2008 16:37:20 +0000 (16:37 +0000)] 
Add a regression test for &openiduser

15 years agoopenid: in &openiduser, allow subdirectory-style providers to end with '/'
Simon McVittie [Sun, 21 Dec 2008 16:35:02 +0000 (16:35 +0000)] 
openid: in &openiduser, allow subdirectory-style providers to end with '/'

This improves the display of OpenIDs like 'http://id.mayfirst.org/jamie/'
(taking an example from the IkiWiki commit log).

15 years agoopenid: in &openiduser, let domain-style providers have arbitrarily many subdomains
Simon McVittie [Sun, 21 Dec 2008 16:32:44 +0000 (16:32 +0000)] 
openid: in &openiduser, let domain-style providers have arbitrarily many subdomains

This leads to better display for OpenIDs like smcv.pseudorandom.co.uk
and thm.id.fedoraproject.org (to take a couple of examples from the
IkiWiki commit history).

15 years agoRecord another couple of pending bugfixes
Simon McVittie [Sun, 21 Dec 2008 15:39:40 +0000 (15:39 +0000)] 
Record another couple of pending bugfixes

15 years agobeautify_urlpath: add a regression test
Simon McVittie [Sun, 21 Dec 2008 15:24:53 +0000 (15:24 +0000)] 
beautify_urlpath: add a regression test

15 years agobeautify_urlpath: if path already starts with ./, don't add another ./
Simon McVittie [Sun, 21 Dec 2008 15:24:42 +0000 (15:24 +0000)] 
beautify_urlpath: if path already starts with ./, don't add another ./

15 years agobeautify_urlpath: add ./ before checking for /index.html
Simon McVittie [Sun, 21 Dec 2008 15:23:59 +0000 (15:23 +0000)] 
beautify_urlpath: add ./ before checking for /index.html

This fixes a bug: when a page links to its own #comments anchor you would
get a link like "index.html#comments" rather than "./#comments".

15 years agocomments: run pagetemplate hooks
Simon McVittie [Sun, 21 Dec 2008 15:08:14 +0000 (15:08 +0000)] 
comments: run pagetemplate hooks

This fixes the bug that comments are always said to be from an anonymous
user at an unknown IP address.

15 years agocomments: linkify and preprocess preview with correct 'page' param
Simon McVittie [Sun, 21 Dec 2008 15:07:36 +0000 (15:07 +0000)] 
comments: linkify and preprocess preview with correct 'page' param

15 years agoMerge commit 'origin/comments' into comments-joey
Simon McVittie [Sun, 21 Dec 2008 10:17:45 +0000 (10:17 +0000)] 
Merge commit 'origin/comments' into comments-joey

15 years agotodo/comments: Properly escape inline HTML
Simon McVittie [Sun, 21 Dec 2008 10:16:58 +0000 (10:16 +0000)] 
todo/comments: Properly escape inline HTML

15 years agotodo/comments: reorganise by status
Simon McVittie [Sun, 21 Dec 2008 10:11:48 +0000 (10:11 +0000)] 
todo/comments: reorganise by status

15 years agocomments: note fixed things and recommend merging origin/comments
Simon McVittie [Sun, 21 Dec 2008 10:08:53 +0000 (10:08 +0000)] 
comments: note fixed things and recommend merging origin/comments

15 years agofix markdown
http://smcv.pseudorandom.co.uk/ [Sun, 21 Dec 2008 09:31:49 +0000 (04:31 -0500)] 
fix markdown

15 years agometa: Process meta date during scan pass so that the date will always affect sorting...
Joey Hess [Sun, 21 Dec 2008 06:52:08 +0000 (01:52 -0500)] 
meta: Process meta date during scan pass so that the date will always affect sorting in inlines.

15 years agoanalysis
Joey Hess [Sun, 21 Dec 2008 06:41:00 +0000 (01:41 -0500)] 
analysis

15 years agocomment layout change
Joey Hess [Sun, 21 Dec 2008 06:04:19 +0000 (01:04 -0500)] 
comment layout change

I saw a layout similar to this on blogger, and I sorta like it

The dash avoids parens sitting next to each other in some cases.

15 years agoMerge branch 'master' into comments
Joey Hess [Sun, 21 Dec 2008 06:04:03 +0000 (01:04 -0500)] 
Merge branch 'master' into comments

15 years agoResponse; added shell code and html formating to reproduction steps
http://dtrt.org/ [Sun, 21 Dec 2008 03:28:20 +0000 (22:28 -0500)] 
Response; added shell code and html formating to reproduction steps

15 years agoavoid storing transient state in pagestate
Joey Hess [Sun, 21 Dec 2008 01:55:38 +0000 (20:55 -0500)] 
avoid storing transient state in pagestate

None of the comment state needs to be stored through the a later run of
ikiwiki, so move it all from pagestate to a more transient storage.

This is assuming that we'll never want to add pagespecs to search against
the comment state. Pagespecs like author() are why the meta plugin does
store its meta data in pagestate -- the data can be needed later to match
against.

15 years agoresponse
Joey Hess [Sun, 21 Dec 2008 01:27:42 +0000 (20:27 -0500)] 
response

15 years agoSort paramater not a problem; Revised steps to reprodce
http://dtrt.org/ [Sun, 21 Dec 2008 00:36:15 +0000 (19:36 -0500)] 
Sort paramater not a problem; Revised steps to reprodce

15 years agoalternate idea
Joey Hess [Sat, 20 Dec 2008 23:51:09 +0000 (18:51 -0500)] 
alternate idea

15 years agoremove signin icons, use title
Joey Hess [Sat, 20 Dec 2008 23:46:56 +0000 (18:46 -0500)] 
remove signin icons, use title

15 years agotweak author display
Joey Hess [Sat, 20 Dec 2008 23:36:16 +0000 (18:36 -0500)] 
tweak author display

Put the icon after the name, mostly because it scans better on
non-graphical browsers where the alt text is displayed. And because the
name is really the more important part.

15 years agomy try at improving comment styling
Joey Hess [Sat, 20 Dec 2008 23:30:14 +0000 (18:30 -0500)] 
my try at improving comment styling

Makes it look more like a blog, but not enough to be confusing, and with
nothing as large as in a blog. Removal of the vertical line under the
subject imho makes it easier to scan through comments as each box is a new
one. Bolding the subject seems to make it stand out enough, especially as
its a link now. (Also considered increasing its font size to 110%.)

15 years agonote new bug
Joey Hess [Sat, 20 Dec 2008 23:18:19 +0000 (18:18 -0500)] 
note new bug

15 years agoresponse
Joey Hess [Sat, 20 Dec 2008 23:14:49 +0000 (18:14 -0500)] 
response

15 years agoMerge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
Joey Hess [Sat, 20 Dec 2008 23:07:45 +0000 (18:07 -0500)] 
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info

15 years agoWorkaround and possible cause
http://dtrt.org/ [Sat, 20 Dec 2008 23:06:21 +0000 (18:06 -0500)] 
Workaround and possible cause

15 years agoMerge commit 'smcv/comments'
Joey Hess [Sat, 20 Dec 2008 22:58:56 +0000 (17:58 -0500)] 
Merge commit 'smcv/comments'