aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
Commit message (Collapse)AuthorAge
...
* 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
| * | Add a fullpage arg to filter.intrigeri2010-06-29
| | | | | | | | | | | | | | | | | | | | | Set it to true every time IkiWiki::filter is called on a full page's content. This is a much nicer solution, for the po plugin, than previous whitelisting using caller().
| * | Merge remote branch 'upstream/master' into prv/pointrigeri2010-06-25
| |\ \ | | | | | | | | | | | | | | | | Conflicts: IkiWiki/Plugin/po.pm
| * | | moved selflink test to its own isselflink (overridable) subintrigeri2010-01-09
| | | |
* | | | remove dead caseJoey Hess2010-07-18
| | | |
* | | | fix other 2 cases of conflicting destdir filesJoey Hess2010-07-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cleanly fixed case where destdir file failed to be written because there was a directory with the same name. This can be detected with no extra system calls, and dealt with by finding all pages that wrote files inside the directory, and removing them and the directory. The other, inverse case would be expensive to detect in will_render, since it would need to check each parent directory of the file to see if the directory is really a conflicting file. But prep_writefile already does a similar scan for symlinks in the path, so I added code there to remove the conflicting file. This fix assumes that the file is written using writefile, and not some other means (but using other means would be a security hole too, so hopefully nothing does).
* | | | check oldrenderedfiles tooJoey Hess2010-07-18
| | | | | | | | | | | | | | | | Handles the case where foo.mdwn is moved too foo/index.html
* | | | avoid error if two source files render the same destination fileJoey Hess2010-07-18
| |_|/ |/| | | | | | | | | | | | | | | | | There are two sub-caces. If both source files still exist, the winner that renders the destination file is undefined. If one source file is deleted and the other added, in a refresh, the new file will take over the destination file.
* | | git: Added git_wrapper_background_command option. Can be used to eg, make ↵Joey Hess2010-07-01
| |/ |/| | | | | the git wrapper push to github in the background after ikiwiki runs.
* | rcs_commit and rcs_commit_staged api changesJoey Hess2010-06-23
| | | | | | | | | | | | | | | | | | | | | | Using named parameters for these is overdue. Passing the session in a parameter instead of passing username and IP separately will later allow storing other session info, like username or part of the email. Note that these functions are not part of the exported API, and the prototype change will catch (most) skew, so I am not changing API versions. Any third-party plugins that call them will need updated though.
* | websetup: Allow enabling plugins listed in disable_plugins.Joey Hess2010-06-13
| | | | | | | | | | | | | | | | The bug here was that disabling a plugin included thru goodstuff, like htmlscrubber, caused it to be added to disable_plugins, and those plugins were never loaded, so could not be re-enabled. Fix by allowing them to be force loaded when appropriate. (Also that allows disabled plugins to still record their setup options when dumping a setup file.)
* | When editing a page, show that page's sidebar. (Thanks, privat)Joey Hess2010-06-09
| |
* | Fix support for globbing in tagged() pagespecs.Joey Hess2010-06-09
| | | | | | | | | | | | | | | | | | The linktype check was being done on the relativised link target, but %typedlinks uses the same link targets as %links, so that didn't work. I think the bug only appeared when tagbase was not set. This bugfix also let me factor out the common typedlink checking code.
* | creation_day() etc use local time, not gmtime.Joey Hess2010-05-31
| | | | | | | | | | | | | | | | To match calendars, which use local time. Particularly important at the end of the month. I checked the history, and there seemed no good rationalle for the pagespecs to use gmtime.
* | Fix a bug that prevented matching deleted comments, and so did not update ↵Joey Hess2010-05-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | pages that had contained them. Problem is that by the time rendering calls render_dependent, %pagesources has had deleted files removed from it. So match_comment's lookup of files in there to see if they had the _comment extension failed. I had to introduce a hash that temporarily holds filenames of deleted pages to fix this. Note that unlike comment(), internal() had avoided this pitfall by being defined to match both internal and non-internal pages.
* | allow misctemplate callers to pass params to suppress actions etcJoey Hess2010-05-14
| | | | | | | | | | Suppress disiplay of small search for on search results page, and of Prefrences link on prefs page.
* | refactor template actionsJoey Hess2010-05-14
| |
* | enable action bar on misctemplatesJoey Hess2010-05-14
| | | | | | | | | | | | So RecentChanges shows on the action bar there, convert recentchanges to use new pageactions hook, with compatability code to avoid breaking old templates.
* | Use xhtml friendly pubdate setting.Joey Hess2010-05-08
| |
* | fix undef warning when page() tests a deleted fileJoey Hess2010-05-07
| |
* | fix param passing to match_globJoey Hess2010-05-06
| |
* | move meat of type checking to match_page where it belongsJoey Hess2010-05-06
| |
* | refactorJoey Hess2010-05-05
| |
* | rename ispage variableJoey Hess2010-05-05
| |
* | remove unused indexlink function and template variableJoey Hess2010-05-05
| |
* | remove misc.tmpl checkingJoey Hess2010-05-05
| | | | | | | | | | | | Turns out that users with a modified page.tmpl need to modify it on upgrade, at least to add the FORCEBASEURL (so edit preview works), so there is no point in trying to retain compatability.
* | allow search form visibility to be controlled on the templateJoey Hess2010-05-05
| | | | | | | | hide extrafooter from misctemplate display per default
* | no more misc.tmplJoey Hess2010-05-05
| | | | | | | | | | | | | | * Removed misc.tmpl. Now to theme ikiwiki, you only need to customise a single template, page.tmpl. * misc.tmpl will, however, still be read if a locally modified version exists. This is to avoid forcing users to update page.tmpl right now.
* | Add parameter to displaytime to specify that it is a pubdate, and in html5 ↵Joey Hess2010-05-02
| | | | | | | | mode, use time tag.
* | set html5 option as advanced for nowJoey Hess2010-05-01
| |