summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
AgeCommit message (Collapse)Author
2009-08-16use pagespec_match_list for feedpagesJoey Hess
This is both faster, and propigates any error in processing the feedpages pagespec out to display on the page. Which may have been why I didn't use it before, but currently seems like a good thing to do, since it explains why your feeds are empty..
2009-08-15po: Better fix for missing underlay translation problem.Joey Hess
If a page is taken from the underlay, and one of the specified languages does not have po files in the underlay, it would create a broken link to the translated version of the page for that language. With this change, there's no broken link.
2009-08-15replace N/A with 0Joey Hess
I think the N/A was not intended to be visible, but it can show up as the percent translated to a language. This happens if the page is located in an underlay, and not translated to the language in any other underlay.
2009-08-15update for consistencyJoey Hess
2009-08-15indentationJoey Hess
2009-08-15meta: depend on absolute page name, not relativeSimon McVittie
Previously, [[!meta redir="foo"]] on bar, where bar/foo exists, would depend on "foo" (which matches nothing, probably) rather than "bar/foo". (cherry picked from commit f27ec09b72f886415e63fe394e18d9c3cb3913bf)
2009-08-15img: depend on absolute page name, not relativeSimon McVittie
Previously, [[!img bar.jpg]] on foo, where foo/bar.jpg exists, would get a dependency equivalent to "glob(bar.jpg)" (which might not match anything), rather than the correct "glob(foo/bar.jpg)". (cherry picked from commit 85b2ec49ecd12dd23e5c432933457a72744ce7cb)
2009-08-14optimise brokenlinks by gathering the data when calculating backlinksJoey Hess
During backlink calulation, all links are examined and broken links can be detected for free, so store a list of broken links and have brokenlinks use it. Exposing the %brokenlinks structure is a bit ugly, but the speedup seems worth it: Around 1 second for wikis the size of the doc wiki that use brokenlinks.
2009-08-14orphans: Reuse backlinks infoJoey Hess
This plugin was building essentially the same data that is built to handle backlinks, so reuse that as an optimisation.
2009-08-13po: use discussionpage config settingJoey Hess
This was tricky. $links{$page/discussion} must be checked; with it in lowercase.
2009-08-13Add discussionpage configuration settingJoey Hess
By adding this setting, we get both more configurability, and a minor optimisation too, since gettext does not need to be called continually to get the Discussion value.
2009-08-13optimise gettext callsJoey Hess
2009-08-13Add my CVS plugin and related patches.Amitai Schlair
2009-08-12more idiomatic use of foreachJoey Hess
2009-08-12use a more idiomatic foreach myJoey Hess
2009-08-12inline: Avoid use of my $_ as it fails with older perls. Closes: #541215Joey Hess
2009-08-12po: Detect if nowrapi18n can't be passed to po4a, and warn about the old ↵Joey Hess
version, but continue. Closes: #541205
2009-08-10po: Fix copy of po file from underlay when editingJoey Hess
When first editing a page that was in the underlay, avoid losing the translation by copying the po file over from the underlay.
2009-08-08verify page name is saneJoey Hess
paranoia; I was thinking about XSS attacks specificaly
2009-08-08fix misleading commentJoey Hess
2009-08-08Merge commit 'smcv/ready/getsource'Joey Hess
Conflicts: debian/changelog
2009-07-31Merge commit 'remotes/smcv/ready/inline-pagenames' into stagingJoey Hess
2009-07-31Merge commit 'remotes/smcv/ready/harishcm-map-fix' into stagingJoey Hess
2009-07-31Merge commit 'remotes/smcv/ready/among'Joey Hess
2009-07-27img: Fix adding of dependency from page to the image.Joey Hess
This was impressively broken. add_depends was being called with params backwards, and on parameter was set to the name of the generated file, which isn't in the source. Now updates to images will update the page that contains them, thus updating them. This is unncessary for fullsize images, so skipped.
2009-07-27getsource: remove temporary variableSimon McVittie
2009-07-26getsource: remove unnecessary IkiWiki:: prefixesSimon McVittie
Many variables and functions are exported.
2009-07-26getsource: don't allow getting the source of an attachmentSimon McVittie
Serving up images etc. as text/plain; charset=utf-8 is unlikely to work very well, and there's no point in having this CGI action for attachments (since they're copied into the output as-is anyway).
2009-07-26getsource: turn missing pages into a 404Simon McVittie
Also restructure so we return early on missing pages.
2009-07-26getsource: default to saying page source is in UTF-8, and make the example ↵Simon McVittie
match the default IkiWiki mostly assumes that pages are in UTF-8; anyone this doesn't work for can override it in the setup file.
2009-07-26getsource: run as plain CGI, rather than sessioncgiSimon McVittie
As I suggested when reviewing Will's code, calling loadindex() should be sufficient.
2009-07-26Add getsource pluginWill Uther
2009-07-25Fix failure to close <ul> in maps with no itemsharishcm
Signed-off-by: Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
2009-07-23revert revertJoey Hess
2009-07-23improve string to be less confusingJoey Hess
2009-07-23reverted a few of the string changesJoey Hess
Improved one string.
2009-07-23Merge branch 'master' of git://git.ikiwiki.infoJonas Smedegaard
2009-07-23Change rendering→building in translatable strings, to ease translations.Jonas Smedegaard
2009-07-23Rephrase suggestion to not get confused as info on action already done.Jonas Smedegaard
2009-07-23Rephrase 'linked to by' confusing for translators.Jonas Smedegaard
2009-07-23Improve translatable texts to ease translation (e.g. to→into and ↵Jonas Smedegaard
from→inside)
2009-07-22add --previous at bubulle's suggestionJoey Hess
2009-07-21relocate po directory up a levelJoey Hess
2009-07-21turn off pot file underlay againJoey Hess
2009-07-21improve invalid gettext messageJoey Hess
(and gettext it as translators will see this!)
2009-07-21updateJoey Hess
2009-07-21updateJoey Hess
2009-07-21po: Add support for mo files in underlaysJoey Hess
In order to support translated basewiki and other underlays, we need support for mo files in underlays. The code did not allow this before, because if a mo file was in an underlay, then it might try to update it, and its pot, and write to the underlay, which is guaranteed to either fail due to permissions, or be undesirable. To fix, my approach is to just detect if a mo or pot file that is about to be updated is in an underlay, and skip updating it. This seems to work well: - If the mo is out of date in the underlay, it won't get updated, but this would probably be due to a problem in the underlay, or more likely, the wiki is being rebuilt and so it *thinks* the mo is out of date, but it's really not (and it would be a waste of time to rebuild it anyway). - If a page from the basewiki is edited, it is saved to the srcdir, which causes generation of an updated mo and pot also in the srcdir; the underlay stops being used for that page, and everything seems to work. Note that I am not including an underlay search directory for pot files. They *seem* to be unnecessary for the underlay, since the mo files in there never need to be updated.
2009-07-21fix exampleJoey Hess
2009-07-20po: Support running with a non-english master lang; add translated underlaysJoey Hess
It seem to make sense to remove the check for there being slave languages as part of this, since one might want a wiki that is only in non-English.