aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/inline.pm
Commit message (Expand)AuthorAge
* inline: Fix raw mode. Closes: #552114Joey Hess2009-10-23
* slight optimisationJoey Hess2009-10-15
* inline: Optimize generation of archives, etc•••Don't generate inlined page content if the template does not use it. Joey Hess2009-10-15
* pagespec_match_list: change limit to filterJoey Hess2009-10-09
* rename use_pagespec to pagespec_match_list•••To avoid breaking plugins, also support the old pagespec_match_list calling convention, with a deprecation warning. Joey Hess2009-10-08
* fix feedpages dependency•••This dependency was missing before switching to use_pagespec. It is correct to add it, but it needs to be combined with the regular "pages" dependency to ensure that it does not match extra pages. (Also fixed its dependency type.) Joey Hess2009-10-08
* inline: switch to use_pagespec•••Taking advantage of every single one of its features, of course. Even had to add one more.. Joey Hess2009-10-08
* change how dependency types are specified to add_depends•••Also, this fixes 2 bugs in dependency info. Joey Hess2009-10-08
* remove explicit addition of dependencies for displayed pages•••that hack is not needed, thanks to pagespec influences calculation Joey Hess2009-10-07
* fix add_depends to new apiJoey Hess2009-10-05
* inline: Use a contentless dependency in quick mode.Joey Hess2009-10-04
* Merge commit 'intrigeri/po'Joey Hess2009-08-28
|\
| * inline: moved rootpage logic to a function•••The po plugin's injected bestlink must do something special when called by this exact part of inline's code. Signed-off-by: intrigeri <intrigeri@boum.org> intrigeri2009-08-28
* | inline: if using pagenames, don't add a dependency on "page1 or page2 or..."•••This is unnecessary and just slows us down (by a factor of 2, in the pessimal case where every page has an inline with pagenames); it's also not possible to optimize it into add_depends_exact calls. Simon McVittie2009-08-28
|/
* Revert "Allow add_depends to take an arrayref"•••This reverts commit e4cd168ebedd95585290c97ff42234344bfed46c. There was no benefit to this change. Joey Hess2009-08-25
* Allow add_depends to take an arrayrefSimon McVittie2009-08-25
* calendar, inline, map: don't pre-join dependencies•••The new dependency handling works better (eliminates more duplicates) if dependencies are split up. On the same wiki mentioned in the previous commit, this saves about a second (i.e. 4%) on the same test. Simon McVittie2009-08-24
* use pagespec_match_list for feedpages•••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.. Joey Hess2009-08-16
* Add discussionpage configuration setting•••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. Joey Hess2009-08-13
* optimise gettext callsJoey Hess2009-08-13
* inline: Avoid use of my $_ as it fails with older perls. Closes: #541215Joey Hess2009-08-12
* inline: add pagenames parameter•••If given instead of pages, this is interpreted as a space-separated list of links to pages (with the same LinkingRules as in a WikiLink), and they are inlined in exactly the order given. The sort and pages parameters cannot be used in conjunction with this one. Simon McVittie2009-06-16
* fix further places where translated discussion case was assumed•••Another benefit is that consistently using gettext("Discussion") eliminates the need to translate one string. Joey Hess2009-06-04
* inline: Minor optimisation.•••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. Joey Hess2009-05-05
* formattingJoey Hess2009-04-23
* pagespec_match_list added and used in most appropriate places•••* pagespec_match_list: New API function, matches pages in a list and throws an error if the pagespec is bad. * inline, brokenlinks, calendar, linkmap, map, orphans, pagecount, pagestate, postsparkline: Display a handy error message if the pagespec is erronious. Joey Hess2009-04-23
* pagespec error/failure distinction and error display by inline•••* Add IkiWiki::ErrorReason objects, and modify pagespecs to return them in cases where they fail to match due to a configuration or syntax error. * inline: Display a handy error message if the inline cannot display any pages due to such an error. This is perhaps somewhat incomplete, as other users of pagespecs do not display the error, and will eventually need similar modifications to inline. I should probably factor out a pagespec_match_all function and make it throw ErrorReasons. Joey Hess2009-04-23
* inline: Fix urls to feed when feedfile is used on an index page.•••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.) Joey Hess2009-03-19
* avoid crashing if Sort::Naturally is not installedJoey Hess2009-03-19
* implement sort=title_natural for inline•••adds a new sorting order, title_natural, that uses Sort::Naturally's ncmp function to provide better sorting for inlines chrysn2009-03-19
* Add meta field "updated", which can alter the <updated> Atom element•••Some aggregators, like Planet, sort by mtime rather than ctime. This means that posts with modified content come to the top (which seems odd to me, but is presumably what the aggregator's author or operator wants), but it also means that posts with insignificant edits (like adding tags) come to the top too. Atom defines <updated> to be the date of the last *significant* change, so it's fine that ikiwiki defaults to using the mtime, but it would be good to have a way for the author to say "that edit was insignificant, don't use that mtime". Simon McVittie2009-01-18
* typoJoey Hess2008-12-26
* Merge branch 'master' into nextJoey Hess2008-12-26
|\
| * inline: Run format hook first•••inline has a format hook that is an optimisation hack. Until this hook runs, the inlined content is not present on the page. This can prevent other format hooks, that process that content, from acting on inlined content. In bug ##509710, we discovered this happened commonly for the embed plugin, but it could in theory happen for many other plugins (color, cutpaste, etc) that use format to fill in special html after sanitization. The ordering was essentially random (hash key order). That's kinda a good thing, because hooks should be independent of other hooks and able to run in any order. But for things like inline, that just doesn't work. To fix the immediate problem, let's make hooks able to be registered as running "first". There was already the ability to make them run "last". Now, this simple first/middle/last ordering is obviously not going to work if a lot of things need to run first, or last, since then we'll be back to being unable to specify ordering inside those sets. But before worrying about that too much, and considering dependency ordering, etc, observe how few plugins use last ordering: Exactly one needs it. And, so far, exactly one needs first ordering. So for now, KISS. Another implementation note: I could have sorted the plugins with first/last/middle as the primary key, and plugin name secondary, to get a guaranteed stable order. Instead, I chose to preserve hash order. Two opposing things pulled me toward that decision: 1. Since has order is randomish, it will ensure that no accidental ordering assumptions are made. 2. Assume for a minute that ordering matters a lot more than expected. Drastically changing the order a particular configuration uses could result in a lot of subtle bugs cropping up. (I hope this assumption is false, partly due to #1, but can't rule it out.) Joey Hess2008-12-26
* | finalise version 3.00 of the plugin apiJoey Hess2008-12-23
|/
* jump to comment after posting•••Jumping to the just posted comment was the imputus, but I killed a number of birds here. Added a INLINEPAGE template variable, which can be used to add anchors to any inline template. To keep that sufficiently general, it is the full page name, so the comment anchors and links changed form. Got rid of the FIXMEd hardcoded html anchor div. More importantly, the anchor is now to the very top of the comment, not the text below. So you can see the title, and how it attributes you. Avoid changing the permalink of pages that are not really comments, but happen to contain the _comment directive. I think that behavior was a bug, though not a likely one to occur since _comment should only really be used on comment pages. Joey Hess2008-12-18
* Coding style change: Remove explcit vim folding markers.Joey Hess2008-12-17
* simplifiy logicJoey Hess2008-12-11
* inline: Support feedfile option to change the filename of the feed generated.Joey Hess2008-12-11
* inline: Support emptyfeeds=no option to skip generating empty feeds.Joey Hess2008-12-11
* move feedpages application up•••I wanted this nearer to the top, but decided to put it after the add_depends. Reasoning: It's possible with a combinaton of feedpages and show options to make @list and @feedlist contain completly differing sets of pages. We want to add_depends all pages in both sets. We could combine the two lists and add_depends that, but it's slightly more efficient to defer reducing @feedlist, and add_depends whichever list is longer. Joey Hess2008-12-11
* use error for two messagesJoey Hess2008-11-05
* inline: Only the last feed link was put on the page, fix this to include all ...Joey Hess2008-10-20
* fix relativedate timezone inclusion•••The machine parseable date needs to include a timezone. Also, simplified the interface for date display. Joey Hess2008-10-19
* relativedate: New javascript-alicious plugin that makes all dates display rel...Joey Hess2008-10-17
* inline: Use the feed's description in the rss and atom links. Closes: #502113Joey Hess2008-10-15
* fix prototypeJoey Hess2008-10-14
* inline: Allow MTIME to be used in inlinepage.tmpl.Joey Hess2008-10-14
* inline: Fix handling of rootpage that doesn't exist.•••It makes sense to use bestlink to determine which page rootpage refers to, but if no page matches, just use the raw value. Joey Hess2008-10-01
* Export pagetitle, titlepage, linkpage.Joey Hess2008-09-27