aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
Commit message (Collapse)AuthorAge
* 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
|
* html5 optionJoey Hess2010-05-01
| | | | | | * Ikiwiki can be configured to generate html5 instead of the default xhtml 1.0. The html5 output mode is experimental, not yet fully standards compliant, and will be subject to rapid change.
* no need to use HTML::EntitiesJoey Hess2010-04-30
| | | | | That module is unused now. Long long ago, it used to be used to encode data in the index. Checked all modules, and every module that uses it imports it.
* TMPL_INCLUDE re-enabled for templates read from the templatedir. (But not ↵Joey Hess2010-04-28
| | | | in-wiki templates.)
* Add page() PageSpec, which is like glob() but matches only pages, not other ↵Joey Hess2010-04-26
| | | | files.
* Fix removal of rendered files in rebuild mode.Joey Hess2010-04-26
| | | | | | | | | | | Needed to handle the move of the .js files into ikiwiki/, but also this is a longstanding bug. Old pagemtime is not remembered in rebuild mode, and changing that would need a lot of changes. So instead, loop on pagectime, which is remembered. Change to remembering old pagesources info in rebuild mode. This seems safe enough.
* reword templatedir descriptionJoey Hess2010-04-24
|
* add support for mass dependenciesJoey Hess2010-04-24
| | | | Registered by passing "" as page name to add_depends.
* bugfixJoey Hess2010-04-24
|
* template() - return params in list contextJoey Hess2010-04-24
| | | | | I forgot CGI::Formbuilder's horrible interface that needs template parameters instead of a constructed object.
* bugfixJoey Hess2010-04-24
|
* fix return of tpageJoey Hess2010-04-23
|
* allow template pages to not be under templates/Joey Hess2010-04-23
|
* allow a bare page name to be specified as a templateJoey Hess2010-04-23
|
* refactor to remove template_paramsJoey Hess2010-04-22
| | | | template_file will be kept separate, since it needs to be memoized
* look for templates in srcdir and underlays, firstJoey Hess2010-04-22
| | | | | | | | | | | | | | | This entailed changing template_params; it no longer takes the template filename as its first parameter. Add template_depends to api and replace calls to template() with template_depends() in appropriate places, where a dependency should be added on the template. Other plugins don't use template(), so will need further work. Also, includes are disabled for security. Enabling includes only when using templates from the templatedir would be nice, but would add a lot of complexity to the implementation.
* remove add_templates optionJoey Hess2010-04-22
| | | | | Templates are moving into the srcdir, and will also be searched for in configured underlays, so this is redundant.
* only remove page from influences when influences are not staticJoey Hess2010-04-22
| | | | This matches what add_depends done
* Merge branch 'autotag'Joey Hess2010-04-22
|\
| * Merge branch 'master' into autotagJoey Hess2010-04-21
| |\ | | | | | | | | | | | | Conflicts: IkiWiki/Plugin/tag.pm
| * \ Merge branch 'master' into autotagJoey Hess2010-04-21
| |\ \
| * \ \ Merge branch 'master' into autotagJoey Hess2010-04-20
| |\ \ \
| * | | | refactor autofilesJoey Hess2010-04-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Made add_autofile take a generator function, and just register the autofile, for later possible creation. The testing is moved into Render, which allows cleaning up some stuff.
| * | | | whitespaceJoey Hess2010-04-17
| | | | |
| * | | | Merge remote branch 'davrieb/autotag' into autotagJoey Hess2010-04-17
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: IkiWiki.pm IkiWiki/Plugin/tag.pm
| | * | | | Make sure deleted tag pages don't get recreated.David Riebenbauer2010-04-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The reason to do this is basically a user interaction design decision. It is achieved by adding an entry, associated to the creating plugin, to %pagestate. To find out if files were deleted a new global hash %del_hash is %introduced.
| | * | | | Revert "Revert the effects of find_del_files() for (re)autoadded files."David Riebenbauer2010-04-03
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 31680111f0062f07727d14fcf291c98978ad5a2f.
| | * | | | Check for existence off srcfile in add_autofileDavid Riebenbauer2010-04-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add_autofile has to have checks, whether to create the file, anyway, so this will make things more consistent. Correcter check for the result of verify_src_file(). Cosmetic rename of a variable $addfile to $autofile.
| | * | | | Revert "Make srcfile() return undef, if the file isn't there."David Riebenbauer2010-02-03
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 1bde208ec9b915db0187030c33450b5accb4892c.
| | * | | | Export add_autofile() for use in Plugins.David Riebenbauer2010-02-02
| | | | | |
| | * | | | Revert the effects of find_del_files() for (re)autoadded files.David Riebenbauer2010-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also means that if autoadded files are deleted they will just be recreated.
| | * | | | Add a function add_autofiles().David Riebenbauer2010-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The objective is to provide a sensible way to let plugins add files during the "scan stage" of the build. Currently does a little verification and adds the file to the global array @add_autofiles.
| | * | | | Make srcfile() return undef, if the file isn't there.David Riebenbauer2010-02-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has the advantage that it's now possible to check for the existence of a sourcefile with that function.
* | | | | | improved fix for depends_simple_mixupJoey Hess2010-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid adding the page matched against as an influence for currently failing pagespec matches, while still adding any other influences. This avoids bloating depends_simple with lots of bogus influences when matching eg, "!link(done)". It's only necessary for the page being tested to be an influence of that if the page matches.
* | | | | | indentJoey Hess2010-04-21
| |_|_|_|/ |/| | | |
* | | | | add missing undef guard in derelJoey Hess2010-04-21
| |_|_|/ |/| | |
* | | | layoutJoey Hess2010-04-21
| | | |
* | | | Always give createlink class to links to nonexistent pagesGiuseppe Bilotta2010-04-21
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | With this change, the <span> with class createlink is always created around the link text, even when no CGI URL is defined. This allows styling of these 'links' in this case too. The same class is used as when CGI URL is defined so that e.g. clones of the same ikiwiki, one with CGI and one without, display in the same way (modulo the missing question mark link). (cherry picked from commit 290d1b498f00f63e6d41218ddb76d87e68ed5081)
* | | remove 2 argument form of file_prunedJoey Hess2010-04-20
| | |
* | | unfinished file_prune revampJoey Hess2010-04-17
|/ / | | | | | | | | | | | | | | | | Many calls to file_prune were incorrectly calling it with 2 parameters. In cases where the filename being checked is relative to the srcdir, that is not needed. Made absolute filenames be pruned. (This won't work for the 2 parameter call style.)