aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
Commit message (Collapse)AuthorAge
* Yaml formatted setup files are now produced by defaultJoey Hess2011-03-24
| | | | | | | This has been a while coming. It turns out that non-excutable setup files have a number of benefits. Also, I find YAML setup files easier to edit myself, and I suspect many users will prefer not needing to deal with perl syntax.
* Add timezone setting in setup file. This alows time zone to be configured ↵Joey Hess2011-03-24
| | | | via the web.
* avoid uninitlized value when urlto is called with 1 parameter and no url is ↵Joey Hess2011-02-27
| | | | | | | | | configured This brings back the old behavior before urlto changes for this case. It will generate a path like "/foo", which is not right, but is the same as is generated by urlto($page, "", 1) -- which is what the code that now uses 1-parameter urlto used to use.
* Add add_literal_underlay and use it for the transient underlaySimon McVittie2011-01-07
| | | | This means we don't need to import Cwd and use abs_path.
* use cgitemplate, remove misctemplateJoey Hess2011-01-05
|
* make urlabs a noop if base url is not providedJoey Hess2011-01-05
| | | | | This allows urlabs($foo, $config{url}) to be used safely, even if no url is configured.
* factored out an urlabs from aggregate and cgiJoey Hess2011-01-05
|
* oopsJoey Hess2011-01-05
|
* Temporarily revert one part of the multiple url support in the last release. ↵Joey Hess2011-01-05
| | | | Non-edit pages are now back to having `<base>` set to the site's main url.
* Add a second parameter to the rcs_diff hook, and avoid bloating memory ↵Joey Hess2010-12-29
| | | | reading in enormous commits.
* urlto: simplify the to='' special case to allow it to be made absoluteSimon McVittie2010-12-25
|
* checkconfig: don't warn if $config{url} is undefSimon McVittie2010-12-25
| | | | | The warning was "Use of uninitialized value $IkiWiki::config{"url"} in length" when running a modified t/tag.t.
* Enable HTML::Template's parent_global_vars option.intrigeri2010-12-22
| | | | | Else setting parameters that do not appear in the template (such as title_overridden) fails horribly.
* second parameter of urlto is optionalJoey Hess2010-11-29
|
* Merge remote branch 'smcv/ready/localurl'Joey Hess2010-11-29
|\
| * If cgiurl is set, but url isn't, use an absolute $local_cgiurlSimon McVittie2010-11-23
| |
| * urlto(): if $from is undef, return a local path, not an absolute URLSimon McVittie2010-11-22
| |
| * baseurl(): return local path, not absolute URL, if the argument is undefSimon McVittie2010-11-22
| |
| * cgiurl(): return a locally-valid path by defaultSimon McVittie2010-11-22
| | | | | | | | | | | | To get an absolute version you can use cgiurl(cgiurl => $config{cgiurl}). The only place in IkiWiki that seems to actually need an absolute URL is the openid plugin, and that already uses the named parameter.
| * cgiurl: don't append "?" if there are no parametersSimon McVittie2010-11-22
| | | | | | | | | | This means we can use cgiurl() instead of $config{cgiurl} if an absolute URL isn't desired.
| * Compute local paths to the top of the wikiSimon McVittie2010-11-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "local" here is short for "locally valid" - the idea is that we can use URLs that are relative in the sense of only having the path part, but absolute in the sense that they start from '/', such as '/~smcv/ikiwiki.cgi'. There's no particularly good name that I can find for these between-relative-and-absolute URLs. They're useful because in the common case where the pages and the CGI script have the same scheme and authority component, each page is identified by the same locally-valid URL when linking from any page or from the CGI, without hard-coding a choice between HTTP and HTTPS, or between multiple virtual hostnames with the same path layout. As such, we can use them in many situations that previously used an absolute URL. If there's no suitable semi-absolute value for local_url (for instance, if your pages and your CGI reside on different servers), we can just fall back to using the absolute URL. I append '/' because $config{url} doesn't end with '/', but the common case for local_url (on all branchable.com sites, for instance) is that it's just '/'.
* | Merge remote branch 'blipvert/fixes'Joey Hess2010-11-28
|\ \ | |/ |/|
| * check that user is defined before regexp compareCraig Lennox2010-11-28
| |
* | avoid an unnecessary hash lookupJoey Hess2010-11-20
| |
* | make use of precompiled regex objectsSimon McVittie2010-11-20
| |
* | glob2re: return a precompiled, anchored case-insensitive regexSimon McVittie2010-11-19
| | | | | | | | In practice every use of glob2re uses it like that.
* | match_glob: streamline glob cache slightlySimon McVittie2010-11-19
| |
* | Improve the speed of match_globKathryn Andersen2010-11-19
|/
* bugfixJoey Hess2010-10-23
|
* add a hint that creation_month takes a number, not a month nameJoey Hess2010-10-20
|
* avoid perl warning when passed bad non-numeric year/month/dayJoey Hess2010-10-20
|
* refactor check_canchange into IkiWiki libraryJoey Hess2010-10-08
|
* make revert hooks optionalJoey Hess2010-10-08
| | | | | | I removed the IkiWiki::rcs_ stubs for the revert hooks. Instead recentchanges tests to see if the hooks are available and calls them directly.
* convert rcs_revert to only stage the reversionJoey Hess2010-10-06
|
* remove rcs_showpatchJoey Hess2010-10-06
|
* indentationJoey Hess2010-10-04
|
* Complete rcs_preprevert and lightly test.Peter Gammie2010-10-01
|
* First cut at the revert plugin.Peter Gammie2010-09-29
|
* template_depends: throw nice error message when template cannot be foundJoey Hess2010-09-27
| | | | | | | | | | | | plovs reported a crash when templates were not installed properly, with a non-useful error about the template object not being defined. I've audited all uses of template_depends(), and template(), and it makes sense for them to throw an error if the template cannot be found. All code with a user-supplied template catches errors already, to handle template parse failures. It did not make sense for template_file to throw errors, as some code uses it to probe if a template file is available.
* revert check_canedit nosubs thingJoey Hess2010-08-30
| | | | | Abstraction violation. I now think the problem should be treated as a bug in httpauth.
* Receive: avoid hiding check_canedit error messagesJoey Hess2010-08-30
| | | | | | | | Avoid the generic "you are not allowed to change" message, and instead allow check_canedit to propigate out useful error messages. Went back to calling check_canedit in fatal mode, but added a parameter to avoid calling the troublesome subs that might cause a login attempt.
* optimise single dot detectionJoey Hess2010-08-30
| | | | | | | | Since it already looks for things starting with a dot, I was able to avoid matching against the string twice. This also fixes a minor bug; $from may not be defined. Avoid uninitialized value warnings in this case.
* Single dot in pagespec translates to 'current page'Giuseppe Bilotta2010-08-30
|
* Fixes a bug that prevented matching deleted pages when using the page() ↵Joey Hess2010-08-04
| | | | PageSpec.
* Add new disable hook, allowing plugins to perform cleanup after they have ↵Joey Hess2010-07-26
| | | | been disabled.
* template: Fix dependency tracking. Broken in version 3.20100427.Joey Hess2010-07-23
| | | | | | template_depends was adding a dependency on the source filename, instead of on the page name when a template is a page. Such a dependency doesn't work.
* Merge remote branch 'intrigeri/po'Joey Hess2010-07-18
|\
| * Make the rationale clearer.intrigeri2010-07-11
| |
| * Revert po vs. template kludges.intrigeri2010-07-11
| | | | | | | | | | | | This reverts commits dcd57dd5c9f3265bb7a78a5696b90976698c43aa, d4136aea8aa8968d2cd87b40e8d85301a3549323 and d877b9644bcfbbfc5eaf3f7fc13cb96ecda946c9.
| * Merge remote branch 'upstream/master' into prv/pointrigeri2010-07-11
| |\ | | | | | | | | | | | | | | | Conflicts: IkiWiki/Plugin/po.pm doc/plugins/po.mdwn