summaryrefslogtreecommitdiff
path: root/IkiWiki
AgeCommit message (Collapse)Author
2008-11-06Merge commit 'upstream/po' into prv/pointrigeri
Conflicts: IkiWiki/Plugin/po.pm doc/plugins/po.mdwn Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-05first pass over codeJoey Hess
Only change of note is quoting some strings in a regexp, just in case (also avoids the . matching any character!) Mostly whitespace changes of no consequence.
2008-11-05backup refs to injected subs laterJoey Hess
In case two plugins both inject replacements for these subs, backup the ref just before injecting to make sure the most recent version is seen.
2008-11-05minor layout changesJoey Hess
2008-11-05avoid hitting the shell with system()Joey Hess
2008-11-05another reason to require rebuilds (and not be marked safe)Joey Hess
the plugin changes html filenames, so requiring a manual transition to enable
2008-11-05Merge commit 'intrigeri/po'Joey Hess
2008-11-05use error for two messagesJoey Hess
2008-11-05po plugin(filter): redesign temp file managementintrigeri
... in a way compatible with various File::Temp versions. The result is far from being perfect (see comments in the code for details), but it does work. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-04Merge commit 'upstream/master' into prv/pointrigeri
2008-11-04po plugin: redesign refresh mechanism after master page updateintrigeri
manually triggering IkiWiki::refresh() was at least dubious, and more or less buggy (it randomly broke the whole backlinks feature); thinking a bit more to add the necessary bits to @needsbuild seems like a better way. don't play with ikiwiki's internals if not absolutely needed. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-04po plugin: remove broken parentlinks for home page's translationsintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-04po plugin: aestheticsintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-04po plugin: fix preview for PO filesintrigeri
As a trick, use editcontent hook to mark the page as unfiltered, to force our filter() sub's to proceed again. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-03po plugin: slave pages link to the master's discussion pageintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02po plugin: replace %hash=undef with undef %hashintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02po plugin: force utf-8 encoding in POT filesintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02po plugin: fix linking from a translation to its master pageintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02po plugin: fix targetpage for home page's translationsintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02po plugin: removed last (?) bit of deprecated custom hookintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02po plugin: replace targetpage hook with wrapper functionintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02Revert "added the targetpage hook"intrigeri
This reverts commit fc299df955879bf958aa78338ba64d56a7df17a9. Such functionality can now be achieved using the inject() function. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02po plugin: replace tweakurlpath hook with a wrapper functionintrigeri
Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02preprocess text before htmlizing itJoey Hess
2008-11-02Revert "added hook urlpath" and "rename urlpath hook into tweakurlpath..."intrigeri
This reverts commits d9b9022c13af3aa6c469df05beaa293fcf33cafc and 39d44d443d2271ec8787e6192b8b5811bee41ebf. This functionality should now be achieved using the new inject() function. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02po plugin: replace tweakbestlink hook with a wrapper functionintrigeri
... thanks to the new inject() feature. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02disable istranslatable memoizationintrigeri
It makes some test cases cry once every two tries; this may be related to the artificial way the testsuite is run, or not. In the meantime, stop memoizing this function. Signed-off-by: intrigeri <intrigeri@boum.org>
2008-11-02Merge commit 'origin/master' into prv/pointrigeri
2008-10-31format: New plugin, allows embedding differntly formatted text inside a page ↵Joey Hess
(ie, otl inside a mdwn page, or syntax highlighted code inside a page).
2008-10-30set ctime in --render mode if not knownJoey Hess
Avoids some uninitialised value warnings.
2008-10-30don't rely on plugin load order when determining generated directivesJoey Hess
Instead, shortcuts will explicitly be marked as such when registered, and listdirectives can filter them out.
2008-10-29fix preview of shortcutsJoey Hess
Move shortcut processing back to checkconfig, and avoid it failing if the srcdir is not defined.
2008-10-29fix display of error msgJoey Hess
2008-10-27git: Allow [[sha1_commit]] to be used in the diffurl, to support cgit.Joey Hess
2008-10-26do no-op post_commit test in wrapperJoey Hess
This speeds up web commits by 1/4th of a second or so, since perl does not have to start up for the post commit hook. perl's locking is completly FuBar, since it's impossible to tell what perl flock() really does, and thus difficult to write code in other languages that interoperates with perl's locking. (Let alone interoperating with existing fcntl locking from perl...) In this particular case, I think I was able to find a way to avoid the insanity, mostly. The C code does a true flock(2), and if perl is using an incompatable lock method that does not use the same locking primative at the kernel level, then the C code's test will fail, and it will go ahead and run the perl code. Then the perl code's test will test the right thing. On Debian, at least lately, perl's flock() does a true flock(2), so the optimisation does work.
2008-10-26move untrusted committer test into the wrapperJoey Hess
This saves around 1/4th second per trusted commit since ikiwiki doesn't need to start up.
2008-10-24remember how to write C codeJoey Hess
been a while!
2008-10-24the pre-receive wrapper needs to be suid after allJoey Hess
It needs to write to the user db.
2008-10-24export CALLER_UIDJoey Hess
2008-10-24can't lock wiki due to permissions (probably)Joey Hess
luckily, don't really need to here
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