ikiwiki
4 years agomemoize check for up in trail (untested) mystuff
Joey Hess [Sat, 16 Feb 2013 16:20:27 +0000 (12:20 -0400)] 
memoize check for up in trail (untested)

4 years agotrail: no 'up' page if it's a member of the trail
Giuseppe Bilotta [Fri, 15 Feb 2013 21:43:50 +0000 (22:43 +0100)] 
trail: no 'up' page if it's a member of the trail

When a trail includes its index page among the members, the pages
before/after it will have “double links” to the index page (both as
next/prev and as 'up') and the index page will include an 'up' link to
itself.

Prevent this by not defining the appropriate template variables when the
index page is member of the trail itself. The default page template is
also adapted to skip the link at all in this case.

4 years agoinline: fix spurious feed removal from nested inlining
Giuseppe Bilotta [Sun, 26 Aug 2012 05:35:02 +0000 (07:35 +0200)] 
inline: fix spurious feed removal from nested inlining

Situation:

* page A has an inline directive that (directly) generates a feed F
* page B inlines A, thus (indirectly) generating F again
* page B is rendered after page A

Without this patch, F is rendered by both A and B. However, if a change
in B causes it to _not_ inline A anymore, the following would happen:

* page A is built, rendering F
* page B is built, _not_ rendering F (which it used to render)
* F is removed because it's not rendered by B anymore

With this patch, rendering of F is always controlled by A, preventing
the spurious feed removals from happening.

A wiki rebuild is necessary after this patch is included.

Note that although this issue is triggered by last year's changes
bb8f76a4a04686def8cc6f21bcca80cb2cc3b2c9 and
72c8f01b36c841b0e83a2ad7ad1365b9116075c5 (that allowed feed generation
from nested inlines, coalescing it to be page-based instead of
destpage-based), there is potential for it popping up in other cases.

Specifically, the generated pages removal logic curently relies on the
assumption that a given output has only one generator. This assumption
was violated for feeds with the introduction of the mentioned commits,
and is now being re-instated (for feeds) with this patch, but other
similar cases may pop up for other plugins in the future.

4 years agolinkbase plugin
Giuseppe Bilotta [Thu, 10 May 2012 05:52:49 +0000 (07:52 +0200)] 
linkbase plugin

The linkbase plugin defines a directive to manage linkbases in the
document. These are typically defined in the linkbases file at the
document root, much like shortcuts.

4 years agolinkbase feature
Giuseppe Bilotta [Wed, 9 May 2012 07:08:16 +0000 (09:08 +0200)] 
linkbase feature

The linkbase feature allows pages to specify one or more (other)
locations in which link targets should be searched for. This may be
defined either for pagespecs (all pages matching the spec will have
that linkbase) or for specific pagenames.

4 years agoIkiWiki: option to not inline images automatically
Giuseppe Bilotta [Thu, 19 Apr 2012 21:24:14 +0000 (23:24 +0200)] 
IkiWiki: option to not inline images automatically

4 years agoimg plugin: allow 'auto' size
Giuseppe Bilotta [Thu, 19 Apr 2012 18:37:52 +0000 (20:37 +0200)] 
img plugin: allow 'auto' size

When size=auto, width and height are not specified at the img level.

4 years agoinline: define a pageid
Giuseppe Bilotta [Mon, 20 Jun 2011 06:48:04 +0000 (08:48 +0200)] 
inline: define a pageid

4 years agoinline: make baseurl available to the inlinepage template
Giuseppe Bilotta [Thu, 5 Apr 2012 18:44:26 +0000 (20:44 +0200)] 
inline: make baseurl available to the inlinepage template

4 years agoinline: propagate inline mtime/ctime too
Giuseppe Bilotta [Wed, 25 Apr 2012 18:13:28 +0000 (20:13 +0200)] 
inline: propagate inline mtime/ctime too

If page A inlines page B that inlines page C, then we want the inline
mtime of page A to match that of C if it's more recent than the mtime of
B.

4 years agoinline: initialize mtime field with ctime
Giuseppe Bilotta [Wed, 21 Dec 2011 16:29:49 +0000 (17:29 +0100)] 
inline: initialize mtime field with ctime

This ensures proper ordering when the mtime field is absent or bogus.

4 years agoconditional: also trigger preprocessing during scan
Giuseppe Bilotta [Fri, 26 Aug 2011 16:10:16 +0000 (18:10 +0200)] 
conditional: also trigger preprocessing during scan

This is necessary to correctly support directives that have a preprocess
hook with scan=>1 and which are nested inside an if directive.

While we're at it, we also properly propagate the preview state.

4 years agometa: ignore_mtime option
Giuseppe Bilotta [Sun, 10 Apr 2011 17:35:52 +0000 (19:35 +0200)] 
meta: ignore_mtime option

This option makes 'updated' fall back to the ctime instead of the mtime.

4 years agoinline: add a couple of TODOs
Giuseppe Bilotta [Fri, 28 Jan 2011 16:42:39 +0000 (17:42 +0100)] 
inline: add a couple of TODOs

4 years agoinline: cope with addition/removal of file
Giuseppe Bilotta [Fri, 28 Jan 2011 16:36:20 +0000 (17:36 +0100)] 
inline: cope with addition/removal of file

Since the inline times must be updated during the scan of the inlining
(rather than of the inlined) document(s), we must find the inlining
pages before the scan phase (specifically, during the needsbuild
phase) and mark them as changed too.

Additionally, we must also consider if there are pages being removed,
and in the affirmative case we must know which ones they are so that
they be ignored during the scan phase.

4 years agoinline: ctime and mtime sorting
Giuseppe Bilotta [Tue, 25 Jan 2011 18:34:18 +0000 (19:34 +0100)] 
inline: ctime and mtime sorting

Two new sort methods, inline([cm]time), are defined to allow sorting
pages by the mtime/ctime of their inlined pages rather than by their
own.

4 years agopost-scan hooks
Giuseppe Bilotta [Tue, 25 Jan 2011 18:31:23 +0000 (19:31 +0100)] 
post-scan hooks

During the scan phase plugins can push anonymous functions into the
@post_scan array, to be called after all pages have been scanned.

This allows plugin to run actions between the scanning and building
phase, which is important for pre-render actions that e.g. need to
ensure that pagespec patterns will match correctly.

4 years agoinline: improve feed title and description management
Giuseppe Bilotta [Sat, 1 Jan 2011 21:39:36 +0000 (22:39 +0100)] 
inline: improve feed title and description management

Move feed title generation outside of genfeed(), and allow it to be
customized by an appropriate parameter to the inline directive.

The feed description is also extended to base it on the page description
(if present), and defaulting to a configurable union of wiki name and
page title otherwise (rather than hard-coding it to the wiki name).

4 years agoSpecify that the URL should not have a trailing /
Giuseppe Bilotta [Mon, 28 Feb 2011 16:22:11 +0000 (17:22 +0100)] 
Specify that the URL should not have a trailing /

4 years agogoogle: add google analytics
Giuseppe Bilotta [Tue, 4 Jan 2011 12:19:35 +0000 (13:19 +0100)] 
google: add google analytics

The code is based primarily on the flattr plugin.

4 years agogoogle: add config to enable/disable sitesearch
Giuseppe Bilotta [Tue, 4 Jan 2011 12:11:37 +0000 (13:11 +0100)] 
google: add config to enable/disable sitesearch

In preparation for the inclusion of other Google services, make the
Google sitesearch inclusion configurable, to allow loading the google
plugin to use the other services without having to edit the default
templates to remove the search form.

A similar effect can be achieved by creating an empty
templates/googleform.tmpl, but we don't want to force people to hack
around automatic stuff this way.

4 years agodo=goto leaks page existence
http://anastigmatix.net/ [Fri, 24 Oct 2014 23:45:23 +0000 (19:45 -0400)] 
do=goto leaks page existence

4 years agoPatch submitted for contrib/ymlfront sticky-metadata issue.
http://anastigmatix.net/ [Fri, 24 Oct 2014 23:20:13 +0000 (19:20 -0400)] 
Patch submitted for contrib/ymlfront sticky-metadata issue.

4 years agoUpdate comment
fr33domlover [Fri, 24 Oct 2014 10:19:54 +0000 (06:19 -0400)] 
Update comment

4 years agoCommand on compile plugin
fr33domlover [Fri, 24 Oct 2014 10:11:56 +0000 (06:11 -0400)] 
Command on compile plugin

4 years agoFeeling out how to present patch for review
http://anastigmatix.net/ [Fri, 24 Oct 2014 00:40:35 +0000 (20:40 -0400)] 
Feeling out how to present patch for review

4 years agoMerge branch 'master' of ssh://git.ikiwiki.info
Joey Hess [Thu, 23 Oct 2014 17:56:21 +0000 (13:56 -0400)] 
Merge branch 'master' of ssh://git.ikiwiki.info

4 years agofile bug
Joey Hess [Thu, 23 Oct 2014 17:55:29 +0000 (13:55 -0400)] 
file bug

4 years agoForgot download link
spalax [Thu, 23 Oct 2014 14:40:14 +0000 (10:40 -0400)] 
Forgot download link

4 years agoTypos...
fr33domlover [Thu, 23 Oct 2014 11:16:26 +0000 (07:16 -0400)] 
Typos...

4 years ago(no commit message)
fr33domlover [Thu, 23 Oct 2014 11:15:55 +0000 (07:15 -0400)] 

4 years ago(no commit message)
fr33domlover [Thu, 23 Oct 2014 11:15:27 +0000 (07:15 -0400)] 

4 years agowishlist: ask about using ikiwiki as ML
fr33domlover [Thu, 23 Oct 2014 11:14:16 +0000 (07:14 -0400)] 
wishlist: ask about using ikiwiki as ML

4 years agowishlist
fr33domlover [Thu, 23 Oct 2014 11:13:19 +0000 (07:13 -0400)] 
wishlist

4 years agoAdded a comment
smcv [Thu, 23 Oct 2014 08:06:51 +0000 (04:06 -0400)] 
Added a comment

4 years agoAdded a comment
smcv [Thu, 23 Oct 2014 07:57:40 +0000 (03:57 -0400)] 
Added a comment

4 years agoAdded a comment
openmedi [Wed, 22 Oct 2014 22:01:43 +0000 (18:01 -0400)] 
Added a comment

4 years agoAdded a comment
fr33domlover [Wed, 22 Oct 2014 16:46:02 +0000 (12:46 -0400)] 
Added a comment

4 years agoNew wishlist item - put /tags page in the basewiki?
fr33domlover [Wed, 22 Oct 2014 08:20:00 +0000 (11:20 +0300)] 
New wishlist item - put /tags page in the basewiki?

4 years ago(no commit message)
openmedi [Tue, 21 Oct 2014 01:11:53 +0000 (21:11 -0400)] 

4 years ago(no commit message)
openmedi [Tue, 21 Oct 2014 01:00:30 +0000 (21:00 -0400)] 

4 years agoHadn't listed any drawbacks for the FastCGI Authorizer idea.
http://anastigmatix.net/ [Mon, 20 Oct 2014 23:58:54 +0000 (19:58 -0400)] 
Hadn't listed any drawbacks for the FastCGI Authorizer idea.

4 years agoReview request for: Let plugins influence what environment variables a wrapper will...
http://anastigmatix.net/ [Mon, 20 Oct 2014 23:07:13 +0000 (19:07 -0400)] 
Review request for: Let plugins influence what environment variables a wrapper will preserve

4 years agoFix dangling link to branch I deleted after merge. Link instead to merged commits...
http://anastigmatix.net/ [Mon, 20 Oct 2014 22:39:55 +0000 (18:39 -0400)] 
Fix dangling link to branch I deleted after merge.  Link instead to merged commits in ikiwiki repo.

4 years agoAdd ikiwiki-comment to shebang_scripts.
Amitai Schlair [Mon, 20 Oct 2014 18:20:41 +0000 (14:20 -0400)] 
Add ikiwiki-comment to shebang_scripts.

4 years agoAdd missing build-depends on libcgi-formbuilder-perl, needed for t/relativity.t
Joey Hess [Mon, 20 Oct 2014 16:28:54 +0000 (12:28 -0400)] 
Add missing build-depends on libcgi-formbuilder-perl, needed for t/relativity.t

4 years agoadd ikiwiki-comment program
Joey Hess [Mon, 20 Oct 2014 16:08:07 +0000 (12:08 -0400)] 
add ikiwiki-comment program

4 years agobit on how inlinability isn't only bad
http://anastigmatix.net/ [Sun, 19 Oct 2014 21:48:47 +0000 (17:48 -0400)] 
bit on how inlinability isn't only bad

4 years agoAdd link to the proposed wrapper generation patch
http://anastigmatix.net/ [Sun, 19 Oct 2014 21:37:46 +0000 (17:37 -0400)] 
Add link to the proposed wrapper generation patch

4 years agoinitial description of signinview plugin
http://anastigmatix.net/ [Sun, 19 Oct 2014 21:07:15 +0000 (17:07 -0400)] 
initial description of signinview plugin

4 years agomore on caching behavior
http://anastigmatix.net/ [Sun, 19 Oct 2014 18:40:02 +0000 (14:40 -0400)] 
more on caching behavior

4 years agomake formatting more consistent
http://anastigmatix.net/ [Sun, 19 Oct 2014 18:17:03 +0000 (14:17 -0400)] 
make formatting more consistent

4 years agodiscuss zoned-ikiwiki implementation approaches, including signinview plugin
http://anastigmatix.net/ [Sun, 19 Oct 2014 18:12:11 +0000 (14:12 -0400)] 
discuss zoned-ikiwiki implementation approaches, including signinview plugin

4 years agoit helps to distinguish some use cases
http://anastigmatix.net/ [Sun, 19 Oct 2014 17:32:52 +0000 (13:32 -0400)] 
it helps to distinguish some use cases

4 years agoalso search
Amitai Schlair [Sun, 19 Oct 2014 17:13:07 +0000 (13:13 -0400)] 
also search

4 years agostart fleshing out "things that make zoned ikiwiki hard"
http://anastigmatix.net/ [Sun, 19 Oct 2014 17:09:33 +0000 (13:09 -0400)] 
start fleshing out "things that make zoned ikiwiki hard"

4 years agosign previous
Amitai Schlair [Sun, 19 Oct 2014 17:08:13 +0000 (13:08 -0400)] 
sign previous

4 years agoMatch word boundary (think "/usr/bin/perl5.18").
Amitai Schlair [Sun, 19 Oct 2014 16:59:53 +0000 (12:59 -0400)] 
Match word boundary (think "/usr/bin/perl5.18").

4 years ago(no commit message)
https://www.google.com/accounts/o8/id?id=AItOawlGzzISNi9sKsbbqyRjCZEecyypgaFV56U [Sun, 19 Oct 2014 16:04:48 +0000 (12:04 -0400)] 

4 years ago[patch], patch
https://www.google.com/accounts/o8/id?id=AItOawlGzzISNi9sKsbbqyRjCZEecyypgaFV56U [Sun, 19 Oct 2014 16:04:02 +0000 (12:04 -0400)] 
[patch], patch

4 years agoAdded a comment
openmedi [Fri, 17 Oct 2014 17:23:13 +0000 (13:23 -0400)] 
Added a comment

4 years agoRemove space from perl shebang path.
Amitai Schlair [Fri, 17 Oct 2014 13:05:00 +0000 (09:05 -0400)] 
Remove space from perl shebang path.

4 years agoDisambiguate myself a bit (like that's needed).
Amitai Schlair [Fri, 17 Oct 2014 01:51:18 +0000 (21:51 -0400)] 
Disambiguate myself a bit (like that's needed).

4 years agoreformat
Simon McVittie [Fri, 17 Oct 2014 00:07:50 +0000 (01:07 +0100)] 
reformat

4 years agonews
Simon McVittie [Fri, 17 Oct 2014 00:01:53 +0000 (01:01 +0100)] 
news

4 years agoMerge remote-tracking branch 'refs/remotes/dgit/dgit/sid'
Simon McVittie [Thu, 16 Oct 2014 23:02:33 +0000 (00:02 +0100)] 
Merge remote-tracking branch 'refs/remotes/dgit/dgit/sid'

4 years agorelease
Simon McVittie [Thu, 16 Oct 2014 22:28:35 +0000 (23:28 +0100)] 
release

4 years agodebian: fix some wrong paths in the copyright file
Simon McVittie [Thu, 16 Oct 2014 22:28:23 +0000 (23:28 +0100)] 
debian: fix some wrong paths in the copyright file

4 years agodebian: rename debian/link to debian/links so the intended symlinks appear
Simon McVittie [Thu, 16 Oct 2014 22:04:11 +0000 (23:04 +0100)] 
debian: rename debian/link to debian/links so the intended symlinks appear

4 years agoclose a bug
Simon McVittie [Thu, 16 Oct 2014 22:03:48 +0000 (23:03 +0100)] 
close a bug

4 years agoDrop unused python-support dependency
Simon McVittie [Thu, 16 Oct 2014 21:48:09 +0000 (22:48 +0100)] 
Drop unused python-support dependency

4 years agochangelog so far
Simon McVittie [Thu, 16 Oct 2014 21:44:29 +0000 (22:44 +0100)] 
changelog so far

4 years agobuild-depend on libcgi-pm-perl too, for tests
Simon McVittie [Thu, 16 Oct 2014 21:40:52 +0000 (22:40 +0100)] 
build-depend on libcgi-pm-perl too, for tests

4 years agoExplicitly depend on CGI.pm, which is no longer in Perl core
Simon McVittie [Thu, 16 Oct 2014 08:45:36 +0000 (09:45 +0100)] 
Explicitly depend on CGI.pm, which is no longer in Perl core

I was going to depend on the version that has CGI->param_fetch,
but that has been supported since 2.37, which is older than oldstable.

4 years agoIkiWiki::Plugin::openid: as a precaution, do not call non-coderefs
Amitai Schlair [Wed, 15 Oct 2014 22:52:43 +0000 (23:52 +0100)] 
IkiWiki::Plugin::openid: as a precaution, do not call non-coderefs

We're running under "use strict" here, so if CGI->param's array-context
misbehaviour passes an extra non-ref parameter, it shouldn't be executed
anyway... but it's as well to be safe.

[commit message added by smcv]

4 years agoCall CGI->param_fetch instead of CGI->param in array context
Amitai Schlair [Wed, 15 Oct 2014 21:32:02 +0000 (22:32 +0100)] 
Call CGI->param_fetch instead of CGI->param in array context

CGI->param has the misfeature that it is context-sensitive, and in
particular can expand to more than one scalar in function calls.
This led to a security vulnerability in Bugzilla, and recent versions
of CGI.pm will warn when it is used in this way.

In the situations where we do want to cope with more than one parameter
of the same name, CGI->param_fetch (which always returns an
array-reference) makes the intention clearer.

[commit message added by smcv]

4 years agoMake sure we do not pass multiple CGI parameters in function calls
Simon McVittie [Sat, 11 Oct 2014 08:28:22 +0000 (09:28 +0100)] 
Make sure we do not pass multiple CGI parameters in function calls

When CGI->param is called in list context, such as in function
parameters, it expands to all the potentially multiple values
of the parameter: for instance, if we parse query string a=b&a=c&d=e
and call func($cgi->param('a')), that's equivalent to func('b', 'c').
Most of the functions we're calling do not expect that.

I do not believe this is an exploitable security vulnerability in
ikiwiki, but it was exploitable in Bugzilla.

4 years agoAdded a comment: It was an Apache problem...
https://www.google.com/accounts/o8/id?id=AItOawk8U772S3jDrZJCO0WA5WaDLjJv5mMl6Yw [Thu, 16 Oct 2014 14:57:26 +0000 (10:57 -0400)] 
Added a comment: It was an Apache problem...

4 years agobranch
smcv [Thu, 16 Oct 2014 12:11:52 +0000 (08:11 -0400)] 
branch

4 years agocomment
smcv [Thu, 16 Oct 2014 11:52:05 +0000 (07:52 -0400)] 
comment

4 years agoReplace PayPal and Flattr buttons with text links
Simon McVittie [Wed, 15 Oct 2014 20:56:11 +0000 (21:56 +0100)] 
Replace PayPal and Flattr buttons with text links

In particular, this avoids loading third-party resources from the
offline documentation (see
<https://lintian.debian.org/tags/privacy-breach-donation.html>).

4 years agomention pagespec_alias patches
http://anastigmatix.net/ [Thu, 16 Oct 2014 02:53:41 +0000 (22:53 -0400)] 
mention pagespec_alias patches

4 years agoAdded a comment
smcv [Wed, 15 Oct 2014 23:30:22 +0000 (19:30 -0400)] 
Added a comment

4 years agoAdded a comment
smcv [Wed, 15 Oct 2014 23:26:52 +0000 (19:26 -0400)] 
Added a comment

4 years agoAdded a comment
openmedi [Wed, 15 Oct 2014 18:49:16 +0000 (14:49 -0400)] 
Added a comment

4 years agoAdded a comment
https://www.google.com/accounts/o8/id?id=AItOawlcaGfdn9Kye1Gc8aGb67PDVQW4mKbQD7E [Wed, 15 Oct 2014 13:43:25 +0000 (09:43 -0400)] 
Added a comment

4 years agoAdded a comment
openmedi [Wed, 15 Oct 2014 12:33:40 +0000 (08:33 -0400)] 
Added a comment

4 years ago(no commit message)
https://www.google.com/accounts/o8/id?id=AItOawmbuZI4n1RsTe3Yeaqb5F-yhtR7a8BWEIE [Wed, 15 Oct 2014 04:18:10 +0000 (00:18 -0400)] 

4 years agoas usual, macports hasn't moved
Amitai Schlair [Tue, 14 Oct 2014 22:46:41 +0000 (18:46 -0400)] 
as usual, macports hasn't moved

4 years agoAdded a comment
https://www.google.com/accounts/o8/id?id=AItOawlcaGfdn9Kye1Gc8aGb67PDVQW4mKbQD7E [Tue, 14 Oct 2014 22:41:59 +0000 (18:41 -0400)] 
Added a comment

4 years ago(no commit message)
https://www.google.com/accounts/o8/id?id=AItOawlobQ5j7hQVIGkwMWW3yKB_DWqthJcpnsQ [Tue, 14 Oct 2014 22:31:11 +0000 (18:31 -0400)] 

4 years agoAdded a comment
https://www.google.com/accounts/o8/id?id=AItOawlcaGfdn9Kye1Gc8aGb67PDVQW4mKbQD7E [Tue, 14 Oct 2014 22:25:13 +0000 (18:25 -0400)] 
Added a comment

4 years agoone report suffices; not yet clear there's a bug
Amitai Schlair [Tue, 14 Oct 2014 22:19:09 +0000 (18:19 -0400)] 
one report suffices; not yet clear there's a bug

4 years ago(no commit message)
https://www.google.com/accounts/o8/id?id=AItOawk8U772S3jDrZJCO0WA5WaDLjJv5mMl6Yw [Tue, 14 Oct 2014 13:46:55 +0000 (09:46 -0400)] 

4 years ago(no commit message)
https://www.google.com/accounts/o8/id?id=AItOawk8U772S3jDrZJCO0WA5WaDLjJv5mMl6Yw [Tue, 14 Oct 2014 13:20:24 +0000 (09:20 -0400)] 

4 years agoclarify
Amitai Schlair [Mon, 13 Oct 2014 20:21:15 +0000 (16:21 -0400)] 
clarify

4 years agofindings and questions
Amitai Schlair [Mon, 13 Oct 2014 20:13:11 +0000 (16:13 -0400)] 
findings and questions

4 years agoDo not pass ignored sid parameter to checksessionexpiry
Simon McVittie [Sat, 11 Oct 2014 08:28:02 +0000 (09:28 +0100)] 
Do not pass ignored sid parameter to checksessionexpiry

checksessionexpiry's signature changed from
(CGI::Session, CGI->param('sid')) to (CGI, CGI::Session) in commit
985b229b, but editpage still passed the sid as a useless third
parameter, and this was later cargo-culted into remove, rename and
recentchanges.

4 years agocomments: don't log remote IP address for signed-in users
Simon McVittie [Sun, 12 Oct 2014 17:03:28 +0000 (18:03 +0100)] 
comments: don't log remote IP address for signed-in users

The intention was that signed-in users (for instance via httpauth,
passwordauth or openid) are already adequately identified, but
there's nothing to indicate who an anonymous commenter is unless
their IP address is recorded.

4 years agogoogle search plugin: use https for the search
Simon McVittie [Sun, 12 Oct 2014 16:57:14 +0000 (17:57 +0100)] 
google search plugin: use https for the search