summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
AgeCommit message (Collapse)Author
2009-03-20fix rcs_getctime to return first, not last, change timeJoey Hess
This was being buggy and returning the file's last change time, not its creation time. (I checked all the others (except tla) and they're ok.)
2009-03-20fix rcs_getctime to return first, not last, change timeJoey Hess
This was being buggy and returning the file's last change time, not its creation time.
2009-03-19inline: Fix urls to feed when feedfile is used on an index page.Joey Hess
It would be better to use urlto() here, but will_render has not yet been called on the feed files at this point, so it won't work. (And reorganizing so it can be is tricky.)
2009-03-19avoid crashing if Sort::Naturally is not installedJoey Hess
2009-03-19implement sort=title_natural for inlinechrysn
adds a new sorting order, title_natural, that uses Sort::Naturally's ncmp function to provide better sorting for inlines
2009-03-09git: Manually decode git output from utf-8, avoids warning messages on ↵Joey Hess
invalidly encoded output.
2009-03-09git: Fix utf-8 encoding of author names.Joey Hess
I guess what's happening here is that since the name is passed to git via an environment variable, perl's normal utf-8 IO layer stuff doesn't work. So we have to explicitly decode the string from perl's internal representation into utf-8.
2009-03-09avoid uninitialized value warningsJoey Hess
2009-03-08When loading a template in scan mode, let preprocess know it only needs to scan.Joey Hess
This makes wikis such as zack's much faster in the scan pass. In that pass, when a template contains an inline, there is no reason to process the entire inline and all its pages. I'd forgotten to pass along the flag to let preprocess() know it was in scan mode, leading to much unncessary churning.
2009-03-08avoid potential infinite loop in smiley expansionJoey Hess
- In 3.05, ikiwiki began expanding templates in scan mode, for annoying, expensive, but ultimatly necessary reasons of correctness. - Smiley processing has a bug: It inserts a span for the smiley, and then continues searching forward in the content for more, starting at $end_of_smiley+1. Which means it searches for smilies in the span too! And if it somehow finds one, we get an infinite loop here. - This bug can, probably, only be tickled if a htmllink to show the smiley fails, because the smiley file doesn't exist, or because ikiwiki doesn't know about it. In that case, a link will be inserted to _create_ the missing page, and that link will include the smiley inside the <a></a>. - When a template is expanded in scan mode, and it contains an inline, the sanitize hook is run during scan mode, which never happened before. That causes the smiley processor to run, before ikiwiki is, necessarily, aware that all the smiley files exist (depending on scan order). So it inserts creation links for them, and triggers the bug. I've put in the simple fix of jumping forward past the inserted span, and it does fix the problem. I will need to look in a bit more detail into why an inline nested inside a template is fully expanded during the scan pass -- that really shouldn't be necessary, and it makes things much slower than they need to be.
2009-03-08configure wmd to leave text in markdownJoey Hess
2009-03-07look for wmd/wmd.jsJoey Hess
This means that the underlay needs to have a wmd/wmd/wmd.js, which is a trifle weird, but it isolates all the wmd stuff in a single wmd subdirectory of the built wiki. The wmd/images creating a toplevel images directory was particularly bad.
2009-03-07make wmd comment support comment editing (I think)Joey Hess
2009-03-07rebuild not neededJoey Hess
This plugin only affects the page edit, not the compiled wiki.
2009-03-07wmd plugin from willuJoey Hess
2009-02-27goto: Fix typo that broke recentchanges_link compatability.Joey Hess
2009-02-26bzr: Add missing rcs_diff. (liw)Joey Hess
2009-02-26comments: Avoid showing comment moderation button in prefs to non-admins.Joey Hess
2009-02-25bzr: Add missing stub rcs_diff.Joey Hess
2009-02-19rename tag() to tagged(); add docsJoey Hess
2009-02-19add tag() pagespecJoey Hess
patch from jon
2009-02-17typoJoey Hess
2009-02-17goto: Fix redirect to comments.Joey Hess
2009-02-17template: Load templates in scan modeJoey Hess
This is potentially expensive, but is necessary so that meta and tag directives, and other links on templates affect the page using the template reliably.
2009-02-17Revert "comments" (stupid commit)Joey Hess
This reverts commit bb8b8787ef9477c027b9e5d8b7b5e1addfd1ca32.
2009-02-17commentsJoey Hess
2009-02-14check for empty srcdirJoey Hess
This happens when using -dumpsetup
2009-02-14downgrade missing shortcuts page error to warningJoey Hess
and response to bug report
2009-02-12move check_canedit, check_content to IkiWiki library from editpageJoey Hess
It no longer makes sense to keep these functions in editpage, because serveral plugins now exist that use them, and users may want to disable editpage, while leaving those plugins enabled. Most notably, comments uses both functions, and it's entirely appropriate to disable editpage but still want to have comments enabled. Less likely, attachments, rename, and remove all use check_canedit -- but it would be unusual indeed to want to use these w/o editpage.
2009-02-12shortcut: If default_pageext is set, first look for shortcuts.default_pageextJoey Hess
Falls back to looking for shortcuts.mdwn for backwards compatabiity; there probably exist wikis that have changed the pageext but still use shortcuts.mdwn.
2009-02-11doubled semicolonsJoey Hess
2009-02-03Work around XML::Atom strangeness that results in double-encoded postsSimon McVittie
See [[bugs/Aggregated_Atom_feeds_are_double-encoded]]. By default, XML::Atom outputs strings of UTF-8 bytes with the Perl UTF8 flag stripped off, which IkiWiki assumes to be Latin-1 and re-encodes as UTF-8 on output. XML::Feed does not currently (0.41-1) set the magic variable to change this behaviour (I've filed a bug on CPAN), but IkiWiki can usefully set the same variable as a workaround.
2009-01-31rename apache404 -> 404Joey Hess
This may already work with other web servers that have copied apache's interface, and it should be easy to add support to it for web servers that use some other interface. So, make the name more general.
2009-01-31factor out IE stupididy workaroundJoey Hess
2009-01-31Split cgi_goto into a goto pluginSimon McVittie
2009-01-31Split apache404 into an independent pluginSimon McVittie
Also make it ignore the 'do' parameter at Joey's suggestion, to have one less thing to remember when configuring.
2009-01-31recentchanges: delete CGI hook in favour of the global oneSimon McVittie
2009-01-31comments: delete cgi hook in favour of the global oneSimon McVittie
2009-01-26typoJoey Hess
2009-01-26Merge commit 'smcv/underlay'Joey Hess
2009-01-26Merge commit 'smcv/updated'Joey Hess
2009-01-25git: Fix malformed utf8 recieved from git.Joey Hess
If git log outputs malformed utf8 in, eg, usernames, detect it and fix it up. This avoids commits such as f71abc92aa279fbe0b7578b8c4752d775dd4a259 breaking things.
2009-01-25format moderation queue only at end, avoid O(N^3) bugJoey Hess
It was calling format hooks for each comment on the page. When relativedate is enabled, that made it insert <script> tags for each comment. And the browser loaded the same script over and over, which was slow on its own. But that was nothing compared to running the onload even over and over.. especially since the hook system added a new call to the hook each time it loaded. For a page with 10 comments, that caused the relativedate DOM parsing code to run 1000 times, I think. Anyway, it was sloow. Now it runs once.
2009-01-25add reject all marked defer checkboxJoey Hess
2009-01-25sort comment queue by time, newest firstJoey Hess
2009-01-25add a button to prefs page for comment moderationJoey Hess
2009-01-25clean up comment previewJoey Hess
Remove actions from it, and avoid a broken title link.
2009-01-25comments: Add a moderation web interface.Joey Hess
2009-01-25comments: If comment content checks fail, store the comment (in ↵Joey Hess
.ikiwiki/comments_pending) for moderator review.
2009-01-25blogspam: Fix use of blogspam_options and blogspam_server config settings.Joey Hess