aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
Commit message (Collapse)AuthorAge
* template: Fix typo.Joey Hess2010-04-27
|
* loop on pagesources, not ctimeJoey Hess2010-04-26
|
* 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.
* added match_guid function to meta pluginJoey Hess2010-04-26
| | | | | | | | (cherry picked from commit 8b6fde73669ddf9204acb3d334c3984566f3c59d) Conflicts: IkiWiki/Plugin/meta.pm
* rebuild on template removalJoey Hess2010-04-24
|
* bugfixesJoey Hess2010-04-24
|
* add support for mass dependenciesJoey Hess2010-04-24
| | | | Registered by passing "" as page name to add_depends.
* Merge branch 'master' into templatemoveJoey Hess2010-04-24
|\
| * po: fix some uninitalized value warnings when used by websetupJoey 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.
* | chomp template valuesJoey Hess2010-04-24
| | | | | | | | Before the template reorg, this was done by a template filter.
* | Merge branch 'master' into templatemoveJoey Hess2010-04-24
|\|
| * Moved javascript files under the ikiwiki/ directory, to avoid cluttering the ↵Joey Hess2010-04-24
| | | | | | | | top of the web root. This is another things that requires a wiki rebuild on upgrade to this version.
* | special case for page.tmpl dependency handlingJoey Hess2010-04-23
| | | | | | | | | | | | Rather than wasting resources recording that every page depends on page.tmpl, add a special case. The special case curretly rebuilds non-page files too when page.tmpl changes, but that's minor.
* | updateJoey Hess2010-04-23
| |
* | use template() rather than rolling it by handJoey Hess2010-04-23
| |
* | improved error messageJoey Hess2010-04-23
| |
* | switch to using template_dependsJoey Hess2010-04-23
| | | | | | | | | | It now handles all the details of finding a page template that this used to need to implement.
* | use same error string as template.pm doesJoey Hess2010-04-23
| |
* | fix logicJoey Hess2010-04-23
| |
* | 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.
* Merge branch 'autotag'Joey Hess2010-04-22
|\
| * turn on tag_autocreate by default if tagbase is setJoey Hess2010-04-21
| |
| * Merge branch 'master' into autotagJoey Hess2010-04-21
| |\ | | | | | | | | | | | | Conflicts: IkiWiki/Plugin/tag.pm
| * | fixesJoey Hess2010-04-21
| | |
| * | clarifyJoey Hess2010-04-21
| | |
| * | Merge branch 'master' into autotagJoey Hess2010-04-21
| |\ \ | | | | | | | | | | | | | | | | Conflicts: IkiWiki/Plugin/tag.pm
| * | | add separate template variable for tag page and sanitize displayed tag nameJoey Hess2010-04-21
| | | |
| * | | remember autofiles that were tried and failed to be addedJoey Hess2010-04-21
| | | | | | | | | | | | | | | | | | | | | | | | This way, if an autofile is registered for a file that already exists, it is remembered that it was tried, and it doesn't get recreated when removed.
| * | | commit autocreated tag pagesJoey Hess2010-04-21
| | | |
| * | | remember autofiles alwaysJoey Hess2010-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the problem that it did not remember if an autofile is deleted, unless a plugin happened to register the autofile at the same time. With the new code, we just never recreate an autofile more than once. Only downside is that the list of autofiles is never pruned either. And I don't really see a way to prune it.
| * | | bugfixesJoey Hess2010-04-21
| | | |
| * | | remove verify_src_fileJoey Hess2010-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Splitting out this function bothered me. It is conceptially similar to file_pruned, and yet also very specific to exactly the security needs of find_src_files. I liked that it got rid of duplicate code in the latter function. So instead, put a helper sub in that, which I think allows refactoring things more cleanly, and with less boilerplate. As to the needs of gen_autofile, I'm not convinced this needs to handle the same set of problems that verify_src_file did. So I sat down and wrote a custom validator for autofiles, which turned out to seem to just need three things: Make sure the candidate filename is not something that would be pruned; untaint the candidate filename; and make sure that srcdir doesn't already have something with its name. (Plus, of course, all the other checks that were already in gen_autofile.) (In passing, also fixed a bunch of bugs I had introduced in this branch.)
| * | | Merge branch 'master' into autotagJoey Hess2010-04-20
| |\ \ \
| * | | | move File::Find control back into its code blocksJoey Hess2010-04-17
| | | | | | | | | | | | | | | | | | | | Ok, this is longer, but features less scary action at a distance.
| * | | | move decode_utf8 closer to reason for itJoey Hess2010-04-17
| | | | | | | | | | | | | | | | | | | | | | | | | Filenames need to be decoded, as File::Find does not provide them in decoded form, but other callers of verify_src_file will be using utf8.
| * | | | fix autotag behavior for relative tagsJoey Hess2010-04-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A tag like ./foo is searched for relative to the tagging page. However, if multiple pages use such a tag, the only one sure to be in common is in the root, so autocreate it there to avoid scattering redunadant autocreated tags around the tree. (This is probably not ideal.) Also renamed the tagpage and taglink functions for clarity.
| * | | | call gentag for taglinks tooJoey Hess2010-04-17
| | | | |
| * | | | fix autofile callJoey Hess2010-04-17
| | | | |
| * | | | tag_autocreate fixupsJoey Hess2010-04-17
| | | | | | | | | | | | | | | | | | | | | | | | | Fix style of prompt. Optional to rebuild when it is changed. (Needed to get new all missing tags)
| * | | | 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.
| | * | | | fix bugs in `find_src_files()`.David Riebenbauer2010-02-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use `_` to avoid superfluous stat. Check for `defined $file`, instead of just `$file`. Add spaces after commas. Change return values of `verify_src_file()` to not return the tainted filename. Rename `$f` to `$file_untainted in `verify_src_file()`. $f changes to `$file` in `find_src_files()`. This attempts to fix commit f3abeac919c4736429bd3362af6edf51ede8e7fe. For discussion see <http://ikiwiki.info/todo/auto-create_tag_pages_according_to_a_template/>
| | * | | | 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.