aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
Commit message (Collapse)AuthorAge
* updateJoey Hess2009-07-21
|
* updateJoey Hess2009-07-21
|
* po: Add support for mo files in underlaysJoey Hess2009-07-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* fix exampleJoey Hess2009-07-21
|
* po: Support running with a non-english master lang; add translated underlaysJoey Hess2009-07-20
| | | | | 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.
* remove prototype from renamehookJoey Hess2009-07-20
| | | | | Recursive calls make perl whine about protypes, and it wasn't adding any value.
* create translated underlays in mdwn formatJoey Hess2009-07-20
| | | | | | These are for use by wikis where the primary language is not English. On such a wiki, it makes sense to use an underlay has the source for pages in the native language.
* s//bad//invalid// # jonas=Joey Hess2009-07-19
|
* avoid Po4a::Common exporting anythingJoey Hess2009-07-19
| | | | | It exports gettext and stuff by default, which conflicts with IkiWiki exports.
* shut up msgmergeJoey Hess2009-07-19
|
* bugfix: Avoid generating po files for files that are not httmlizableJoey Hess2009-07-19
|
* improve error messageJoey Hess2009-07-19
|
* Merge branch 'master' into poJoey Hess2009-07-19
|\ | | | | | | | | Conflicts: debian/changelog
| * Merge commit 'e12b7f5e54730325c751a889ed2e08580b5ef6ba'Joey Hess2009-07-11
| |\
| | * Move OpenID pretty-printing from openid plugin to coreSimon McVittie2009-07-10
| | | | | | | | | | | | | | | | | | | | | | | | On various sites I have two IkiWiki instances running from the same repository: one accessible via http and only accepting openid logins, and one accessible via authenticated https and only accepting httpauth. The https version should still pretty-print OpenIDs seen in git history, even though it does not itself accept OpenID logins.
| * | img: Pass the align parameter through to the generated img tag.Joey Hess2009-07-11
| |/
| * svn: Fix rcs_rename to properly scope call to dirname.Joey Hess2009-07-08
| |
| * highlight: Fix utf-8 encoding bug. Closes: #535028Joey Hess2009-07-07
| |
| * Update IkiWiki::openiduser to work with Net::OpenID 2.xSimon McVittie2009-07-07
| | | | | | | | | | | | | | openiduser previously used a constructor that no longer works in 2.x. However, all we actually want is the (undocumented) DisplayOfURL function that is invoked by the display method, so try to use that. (cherry picked from commit c3dd0ff5c7c10743107f203a5b456fdcd1b171df)
| * typoJoey Hess2009-07-01
| |
| * img plugin: do not emit a redundant double-quote before alt attributeSimon McVittie2009-06-16
| |
| * aggregate: Avoid resetting ctime when an item md5 changes.Joey Hess2009-06-12
| | | | | | | | | | | | | | | | | | | | | | Besides being wrong to do, this could lead to the wrong item being expired, as follows: If B is added and at the same time A is changed, then A's ctime may be set to the current time, while B's is set to its creation time. Thus the new item, A, is incorrectly removed as older. (This interacted especially badly with the bug fixed by 90b4d079605b72bb50d1da41402d994960e10937.)
| * aggregate: Fix storing of changed md5.Joey Hess2009-06-12
| | | | | | | | | | | | | | The aggregate state merge code neglected to merge changes to the md5 field of an item. Therefore, if an item's md5 changed after initial aggregation, it would be updated, and rewritten, each time thereafter. This was wasteful and indirectly led to some expire problems.
| * Disable the Preferences link if no plugin with an auth hook is enabled.Joey Hess2009-06-09
| |
| * meta: Add openid delegate parameter to allow delegating only openid or openid2.Joey Hess2009-06-08
| |
* | Merge commit 'upstream/master' into pub/pointrigeri2009-06-06
|\| | | | | | | | | | | | | | | | | Conflicts: debian/changelog debian/control Signed-off-by: intrigeri <intrigeri@boum.org>
| * goto: Support being passed a page title that is not a valid page name, to ↵Joey Hess2009-06-06
| | | | | | | | support several cases including mercurial's long user names on the RecentChanges page, and urls with spaces being handled by the 404 plugin.
| * pagecount: Fix broken optimisation for * pagespec.Joey Hess2009-06-05
| |
| * fix further places where translated discussion case was assumedJoey Hess2009-06-04
| | | | | | | | | | Another benefit is that consistently using gettext("Discussion") eliminates the need to translate one string.
| * comment: Make comment directives no longer use the internal "_comment" form, ↵Joey Hess2009-06-02
| | | | | | | | | | | | | | | | | | and document the comment directive syntax. Rationalle: Comments need to be user-editable so that they can be posted via git commit etc. The _comment directive is still supported, for back-compat.
| * call initLanguage after initThemeJoey Hess2009-05-26
| | | | | | | | See #530654
| * cache highlighters to optimiseJoey Hess2009-05-23
| | | | | | | | | | | | | | | | Setting up a new highlighter object is slightly expensive since it reads and parses the langfile each time. So cache them. This also speeds up ext2langfile by avoiding it needing to check for the existence of a language file in some cases.
| * updateJoey Hess2009-05-23
| |
| * allow format to use any language supported by highlightJoey Hess2009-05-23
| | | | | | | | | | | | | | | | | | | | | | format: Provide a htmlizefallback hook that other plugins can use to handle formats that are not suitable for general-purpose htmlize hooks. highlight: Use the hook to allow formatting of any language/extension, without it needing to be enabled for standalone source files. highlight: If the highlight perl binding is not available, fallback safely to a passthrough mode.
| * remove commas in tohighlight listJoey Hess2009-05-23
| |
| * highlight: New plugin supporting syntax highlighting of pretty much anything.Joey Hess2009-05-22
| | | | | | | | | | | | * debian/control: Add suggests for libhighlight-perl, although that package is not yet created by Debian's highlight source package. (See #529869)
| * listdirectives: Avoid listing _comment directives and generally assume any ↵Joey Hess2009-05-22
| | | | | | | | directive starting with _ is likewise internal.
| * support longname for page types in commands and renameJoey Hess2009-05-21
| | | | | | | | Also, sort the list of page types.
* | po: better discussion link logicintrigeri2009-06-03
| | | | | | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* | Merge branch 'master' into poJoey Hess2009-05-19
|\| | | | | | | | | Conflicts: debian/changelog
| * tidy up new page_types codeJon Dowland2009-05-16
| |
| * add a long name for textile/txtl ("Textile")Jon Dowland2009-05-16
| |
| * add a long name for mdwn ("Markdown")Jon Dowland2009-05-16
| |
| * check for longname for each syntax pluginJon Dowland2009-05-16
| | | | | | | | | | | | | | | | We build an array of [ plugin name, long name ] pairs, where long name is an optional argument to hook(). So, a syntax plugin could define long "friendly" name, such as "Markdown" instead of mdwn, and we would then pass this array to formbuilder to populate the drop-down on the edit page.
| * remove pagespec_match_list override for externalJoey Hess2009-05-06
| | | | | | | | Not needed since it returns a list of pages, not a fail/success object.
| * external: Fix pagespec_match and pagespec_match_list. Closes: #527281Joey Hess2009-05-06
| |
| * Avoid %links accumulating duplicates. (For TOVA)Joey Hess2009-05-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is sorta an optimisation, and sorta a bug fix. In one test case I have available, it can speed a page build up from 3 minutes to 3 seconds. The root of the problem is that $links{$page} contains arrays of links, rather than hashes of links. And when a link is found, it is just pushed onto the array, without checking for dups. Now, the array is emptied before scanning a page, so there should not be a lot of opportunity for lots of duplicate links to pile up in it. But, in some cases, they can, and if there are hundreds of duplicate links in the array, then scanning it for matching links, as match_link and some other code does, becomes much more expensive than it needs to be. Perhaps the real right fix would be to change the data structure to a hash. But, the list of links is never accessed like that, you always want to iterate through it. I also looked at deduping the list in saveindex, but that does a lot of unnecessary work, and doesn't completly solve the problem. So, finally, I decided to add an add_link function that handles deduping, and make ikiwiki-transition remove the old dup links.
| * inline: Minor optimisation.Joey Hess2009-05-05
| | | | | | | | | | | | | | | | | | | | When finding the pageurl, it was calling bestlink unnecessarily. Since at this point $page contains the full name of the page that is being inlined, there is no need to do bestlink's scan for it. This is only a minor optimisation, since bestlink is only called once per displayed, inlined page.
| * simplifiyJoey Hess2009-04-23
| |
| * Revert "pagespec_match_list * optimisation"Joey Hess2009-04-23
| | | | | | | | | | | | | | | | | | | | This reverts commit 2f96c49bd1826ecb213ae025ad456a714aa04863. I forgot about internal pages. We don't want * matching them! I left the optimisation in pagecount, where it used to live. Internal pages probably don't matter when they're just being counted.