summaryrefslogtreecommitdiff
path: root/IkiWiki
AgeCommit message (Collapse)Author
2008-10-24include temp file for attachment change tooJoey Hess
2008-10-24updatesJoey Hess
2008-10-24really fix calls to check_can*Joey Hess
2008-10-23untrusted committers code seems to be fully workingJoey Hess
Still need to investigate possible races, and test some more.
2008-10-23fix calls to check_*Joey Hess
These throw errors, do not have useful return codes.
2008-10-23check_canattach hooked upJoey Hess
2008-10-23more work on untrusted committersJoey Hess
Wired up check_canedit and check_canremove, still need to deal with check_canattach, and test.
2008-10-22initial support for git repos with untrusted committersJoey Hess
Still need to wire up the calls to check_* , but it's cold out here and my hands are going numb, so enough for now.
2008-10-21function injection overhaulJoey Hess
Add an inject function, that can be used by plugins that want to replace one of ikiwiki's functions with their own version. (This is a scary thing that grubs through the symbol table, and replaces all exported occurances of a function with the injected version.) external: RPC functions can be injected to replace exported functions. Removed the stupid displaytime hook, and use injection instead.
2008-10-21disable warnings when redefining functionsJoey Hess
2008-10-20use relativedate as the css class for dates that should display relativeJoey Hess
2008-10-20tag: When tagpage is set, force the links created by tagging to point at the ↵Joey Hess
toplevel tagpage, and not closer subpages. The html links already went there, but internally the links were not recorded as absolute, which could cause confusing backlinks etc. For example, with tagbase=tags, if blog/tags/bar existed and blog/foo was tagged bar, it would link to /tags/bar. But, the link would be recorded simply as a link to tags/bar, and so later blog/tags/bar would appear to have the backlink.
2008-10-20inline: Only the last feed link was put on the page, fix this to include all ↵Joey Hess
feed links. So rss will be included along with atom, and pages with multiple feeds will get links added for all feeds.
2008-10-20Merge commit 'origin/master' into prv/pointrigeri
2008-10-19Use the pure perl Data::Dumper when generating setup files to ensure that ↵Joey Hess
utf-8 characters are written out as such, and not as the encoded perl strings the C Data::Dumper produces. Note that the text produced by the C version was interpreted fine when ikiwiki loaded the setup file. But it was not user-friendly.
2008-10-19Fix issue with utf-8 in wikiname breaking session cookies, by ↵Joey Hess
entity-encoding the wikiname in the session cookie.
2008-10-19add displaytime hookJoey Hess
Need to use a hook because an exported function cannot be reliably overridden. The replacement verstion was actually only affecting plugins loaded after it. formattime doesn't need a hook, since there's no reason to export it.
2008-10-19need to use localtime, fix widthJoey Hess
2008-10-19fix relativedate timezone inclusionJoey Hess
The machine parseable date needs to include a timezone. Also, simplified the interface for date display.
2008-10-19mark up date so relativedate will workJoey Hess
2008-10-19po plugin: set every configuration item to unsafeintrigeri
We will check later which ones are actually safe enough for websetup. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-19po plugin: added ISTRANSLATION and ISTRANSLATABLE template variablesintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin(refreshpot): prevent PO references to be writtenintrigeri
... else we can fall into some kind of nasty infinite loop, when two ikiwiki instances don't store their working copy of the repository at the same place: every POT file update in one repository would trigger an update of the same POT file in the others repository, and so on. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: do not allow msgmerge to create backup filesintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: only refresh private module variables when neededintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: add correct dependencies on pages using OTHERLANGUAGESintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: bugfix (OTHERLANGUAGES)intrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: initial implementation of automatic POT/PO updateintrigeri
The updated or created PO files are put under version control. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: rebuild %translations after having created missing POT/PO filesintrigeri
This is not needed yet, but when newly created POT/PO files are added to %pagesources and other data structures, we'll need this. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: create missing POT/PO files in needsbuild hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: added and documented PERCENTTRANSLATED template variableintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: make translation percentage available in OTHERLANGUAGES loopintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: added currentlang() custom PageSpec functionintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: added lang() custom PageSpec functionintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: make any slave page dependent on the corresponding master pageintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: bugfix - only refresh POT/PO for translatable pagesintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: do not trust po4a functions return valueintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: refresh PO files when a master page is updatedintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: refresh POT files when a master page is updatedintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: build %translations in needsbuild hook rather than scanintrigeri
... because we'll need this data to refresh POT/PO files in needsbuild hook Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: created OTHERLANGUAGES template loopintrigeri
It currently only provides basic translations/master pages links. Updated documentation accordingly. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: po_slave_languages is a hash, rather than a hash of hashesintrigeri
The latter seems to be unsupported by ikiwiki config system. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: build %translations at scan timeintrigeri
... so that we can consider it as complete at preprocess time Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: memoize istranslatable and _istranslationintrigeri
Both functions are called very often, and: - istranslatable has no side effect - _istranslation is the helper function, without any side effect, for the istranslation function Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin[filter]: avoid converting more than once per destfileintrigeri
Only the first filter function call on a given {page,destpage} must convert it from the PO file, subsequent calls must leave the passed $content unmodified. Else, preprocessing loops are the rule. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: bugfix (calling function in wrong module)intrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: added *.pot to wiki_file_prune_regexpsintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: move translatable pages to setup file, refactorintrigeri
Replaced [[!translatable]] directive with po_translatable_pages setting. Moved istranslatable/istranslation code to helper functions leaving place for future caching and/or memoization. The PageSpec functions still work. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: allow pagestate update (bugfix)intrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-10-18po plugin: respect documented convention to store pagestateintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>