aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/inline.pm
Commit message (Collapse)AuthorAge
* revert accidentially committed changeJoey Hess2010-09-13
|
* Pass array of names of files that have been deleted to needsbuild hook as ↵Joey Hess2010-09-10
| | | | second parameter, to allow for plugins that needs access to this information earlier than the delete hook.
* inline: Call indexhtml when inlining internal pages, so their text can be ↵Joey Hess2010-05-06
| | | | indexed for searching.
* adapt comment.tmpl to html5Joey Hess2010-05-02
| | | | | | | Note that I put comment-header in a <header> despite it being below the comment. Using a <footer> would be confusing given the class name. Also, the content is semantically closer to a header than a footer.
* Add parameter to displaytime to specify that it is a pubdate, and in html5 ↵Joey Hess2010-05-02
| | | | mode, use time tag.
* improved error messageJoey Hess2010-04-23
|
* use same error string as template.pm doesJoey Hess2010-04-23
|
* fix logicJoey Hess2010-04-23
|
* look for templates in srcdir and underlays, firstJoey Hess2010-04-22
| | | | | | | | | | | | | | | This entailed changing template_params; it no longer takes the template filename as its first parameter. Add template_depends to api and replace calls to template() with template_depends() in appropriate places, where a dependency should be added on the template. Other plugins don't use template(), so will need further work. Also, includes are disabled for security. Enabling includes only when using templates from the templatedir would be nice, but would add a lot of complexity to the implementation.
* disable feeds in raw modeJoey Hess2010-04-15
|
* HTML-encode meta title, description, guid on output, but not in the pagestateSimon McVittie2010-04-06
| | | | | | This makes them consistent with the rest of the meta keys. A wiki rebuild will be needed on upgrade to this version; until the wiki is rebuilt, double-escaping will occur in the titles of pages that have not changed.
* Group related plugins into sections in the setup file, and drop unused rcs ↵Joey Hess2010-02-11
| | | | plugins from the setup file.
* inline: Avoid showing edit links if page editing is disabled. (Sjoerd)Joey Hess2010-01-04
|
* Fix several places that did not properly handle capitalization of the ↵Joey Hess2010-01-02
| | | | | | discussionpage setting. Specifically, fixes discussion actions on discussion pages, and unbreaks the opendiscussion plugin.
* inline: Fix bug that limited displayed pages when feedshow was specified w/o ↵Joey Hess2010-01-01
| | | | show.
* inline: Avoid using %links to test for page existenceJoey Hess2009-11-30
| | | | | %links is populated even for just-deleted pages, so %pagesources should be used for such tests instead.
* inline: Use caching of inlined pages to speed up builds of inlines that ↵Joey Hess2009-11-17
| | | | | | | | | | | | | include feeds. Speedup of about 25% for small inlines; could be much larger for inlines of many, or complex pages. Not bloating memory with excessive memoization data was the key to this. The method chosen does not squeeze out every erg of speed possible when inlines are nested, but that's rare. It uses less memory than other optimisation hacks (I'm looking at you, f937c1fb8074a512d8bb788fa275f5e90595cd47 !) already used in inline.pm.
* inline: Fix display of all pages when archive=yes or show=0 are used.Joey Hess2009-11-13
|
* inline: Allow direct inclusion of non-page files in raw mode.Joey Hess2009-11-13
|
* inline: Do not generated feeds for nested inlines.Joey Hess2009-11-13
| | | | | | | | | | | | My experience is that when inlines are nested, the old behavior of generating feeds for the nested inlines was never really desired. Since the feeds were numbered sequentially, the numbers could easily change, and it did not make sense to subscribe to or use those feeds. And generating those nested feeds often meant a lot of unnecessary calculation, and data being written. So, I dropped them. Looking back, nested feeds originally were a free side effect of properly handing multiple feeds on one page. Of course, that is still supported.
* inline: Fix raw mode. Closes: #552114Joey Hess2009-10-23
|
* slight optimisationJoey Hess2009-10-15
|
* inline: Optimize generation of archives, etcJoey Hess2009-10-15
| | | | Don't generate inlined page content if the template does not use it.
* pagespec_match_list: change limit to filterJoey Hess2009-10-09
|
* rename use_pagespec to pagespec_match_listJoey Hess2009-10-08
| | | | | To avoid breaking plugins, also support the old pagespec_match_list calling convention, with a deprecation warning.
* fix feedpages dependencyJoey Hess2009-10-08
| | | | | | | | 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.)
* inline: switch to use_pagespecJoey Hess2009-10-08
| | | | | Taking advantage of every single one of its features, of course. Even had to add one more..
* change how dependency types are specified to add_dependsJoey Hess2009-10-08
| | | | Also, this fixes 2 bugs in dependency info.
* remove explicit addition of dependencies for displayed pagesJoey Hess2009-10-07
| | | | that hack is not needed, thanks to pagespec influences calculation
* 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 functionintrigeri2009-08-28
| | | | | | | | | | | | | | 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>
* | inline: if using pagenames, don't add a dependency on "page1 or page2 or..."Simon McVittie2009-08-28
|/ | | | | | 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.
* Revert "Allow add_depends to take an arrayref"Joey Hess2009-08-25
| | | | | | This reverts commit e4cd168ebedd95585290c97ff42234344bfed46c. There was no benefit to this change.
* Allow add_depends to take an arrayrefSimon McVittie2009-08-25
|
* calendar, inline, map: don't pre-join dependenciesSimon McVittie2009-08-24
| | | | | | 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.
* use pagespec_match_list for feedpagesJoey Hess2009-08-16
| | | | | | | 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..
* Add discussionpage configuration settingJoey Hess2009-08-13
| | | | | | 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.
* 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 parameterSimon McVittie2009-06-16
| | | | | | | 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.
* 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.
* 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.
* formattingJoey Hess2009-04-23
|
* pagespec_match_list added and used in most appropriate placesJoey Hess2009-04-23
| | | | | | | | * 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.
* pagespec error/failure distinction and error display by inlineJoey Hess2009-04-23
| | | | | | | | | | | | | * 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.
* inline: Fix urls to feed when feedfile is used on an index page.Joey Hess2009-03-19
| | | | | | 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.)
* avoid crashing if Sort::Naturally is not installedJoey Hess2009-03-19
|
* implement sort=title_natural for inlinechrysn2009-03-19
| | | | | adds a new sorting order, title_natural, that uses Sort::Naturally's ncmp function to provide better sorting for inlines