| Commit message (Expand) | Author | Age |
* | add ngettext support & optimize gettext handling•••As I was adding ngettext support, I realized I could optimize the gettext
functions by memoizing the creation of the gettext object. Note that
the object creation is still deferred until a gettext function is called,
to avoid unnecessary startup penalties on code paths that do not need
gettext.
A side benefit is that separate stub functions are no longer needed to
handle the C language case.
| Joey Hess | 2010-02-14 |
* | formatting | Joey Hess | 2010-02-12 |
* | layout | Joey Hess | 2010-02-12 |
* | add highlevel view of when hooks are called during compile and cgi phases | Joey Hess | 2010-02-12 |
* | add variable value examples | Joey Hess | 2010-02-12 |
* | move note to sidebox | Joey Hess | 2010-02-12 |
* | heading tweaks | Joey Hess | 2010-02-12 |
* | reorg and expand docs of some variables | Joey Hess | 2010-02-12 |
* | add section information | Joey Hess | 2010-02-12 |
* | Group related plugins into sections in the setup file, and drop unused rcs pl... | Joey Hess | 2010-02-11 |
* | document that state variables are not available in the checkconfig hook | Joey Hess | 2010-01-31 |
* | htmllink: allow a title attribute to be specified | Joey Hess | 2009-11-26 |
* | Moved the postscan hook to run on the raw html of a page, before the template... | Joey Hess | 2009-11-08 |
* | add_depends: optimise influence calculation•••I made match_* functions whose influences can vary depending on the page
matched set a special "" influence to indicate this.
Then add_depends can try just one page, and if static influences are found,
stop there.
| Joey Hess | 2009-10-09 |
* | pagespec_match_list: change limit to filter | Joey Hess | 2009-10-09 |
* | pagespec_match_list allow additional pagespec limit parameters again | Joey Hess | 2009-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 Hess | 2009-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 Hess | 2009-10-08 |
* | add use_pagespec and deptype functions | Joey Hess | 2009-10-08 |
* | add type info to influence information | Joey Hess | 2009-10-07 |
* | add influence info to match_*•••Also update docs, test suite.
| Joey Hess | 2009-10-07 |
* | mention that pagespec_match returns an overloaded value | Joey Hess | 2009-10-07 |
* | Add genwrapper hook, that can be used to add code into the C wrapper. | Joey Hess | 2009-09-10 |
* | add missing backquote | http://schmonz.livejournal.com/ | 2009-07-29 |
* | fix typo | http://schmonz.livejournal.com/ | 2009-07-26 |
* | Merge branch 'master' into po•••Conflicts:
debian/changelog
| Joey Hess | 2009-05-19 |
|\ |
|
| * | document longname parameter | Jon Dowland | 2009-05-16 |
| * | Avoid %links accumulating duplicates. (For TOVA)•••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.
| Joey Hess | 2009-05-06 |
| * | 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 Hess | 2009-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 Hess | 2009-04-23 |
| * | clarify | Joey Hess | 2009-04-22 |
* | | rename hook: run once per file to be renamed•••... as Joey suggested on todo/need_global_renamepage_hook
This hook is applied recursively to returned additional rename
hashes, so that it handles the case where two plugins use the hook:
plugin A would see when plugin B adds a new file to be renamed.
The full set of rename hashes can no longer be changed by hook functions, that
are only allowed to return any additional rename hashes it wants to add.
Rationale: the correct behavior of the recursion would be hard, if not
impossible, to define, if already considered pages were changing on the run.
Signed-off-by: intrigeri <intrigeri@boum.org>
| intrigeri | 2009-03-08 |
* | | Merge commit 'upstream/master' into prv/po•••Conflicts:
IkiWiki/Plugin/editpage.pm
debian/control
debian/copyright
doc/todo/need_global_renamepage_hook.mdwn
Signed-off-by: intrigeri <intrigeri@boum.org>
| intrigeri | 2009-03-08 |
|\| |
|
| * | Add noextension parameter to htmlize hooks to support, eg, Makefile. | Joey Hess | 2009-02-19 |
| * | revert addition of several blank lines | Joey Hess | 2009-02-17 |
| * | correct WikiLinks to the WikiLink page | AlexandreDupas | 2009-02-16 |
| * | document writefile symlink checks | Joey Hess | 2009-02-09 |
* | | rename hook: instead of modifying the passed-by-name array, return a copy•••This is intended to solve Joey's concerns expressed on
http://ikiwiki.info/todo/need_global_renamepage_hook/, i.e. the need to make it
possible to use this hook from external plugins.
A plugin using this hook still can add/modify/remove elements of the
@torename array.
Signed-off-by: intrigeri <intrigeri@boum.org>
| intrigeri | 2009-01-27 |
* | | revert renamepage's hook original name•••Signed-off-by: intrigeri <intrigeri@boum.org>
| intrigeri | 2009-01-27 |
* | | only pass named parameters to the canremove hook•••Signed-off-by: intrigeri <intrigeri@boum.org>
| intrigeri | 2009-01-26 |
* | | only pass named parameters to the canrename hook•••Signed-off-by: intrigeri <intrigeri@boum.org>
| intrigeri | 2009-01-26 |
* | | don't add new exported warning function•••Nothing in the po plugin actually uses this function.
The benefit of adding the function in general is debatable, but I'd
prefer to keep the changes involved in merging po at a minimum.
| Joey Hess | 2009-01-26 |
* | | remove cansave plugin, now replaced by Joey's checkcontent one•••Signed-off-by: intrigeri <intrigeri@boum.org>
| intrigeri | 2009-01-19 |
* | | make checkcontent compatible with hooks that need the full content•••Always pass the full (modified) content in `content` named parameter. When the
user edits an existing wiki page, also pass a `diff` named parameter, which
includes only the lines that they added to the page, or modified.
Signed-off-by: intrigeri <intrigeri@boum.org>
| intrigeri | 2009-01-19 |
* | | Merge commit 'upstream/master' into prv/po•••Conflicts:
IkiWiki/Plugin/editpage.pm
IkiWiki/Plugin/skeleton.pm.example
doc/plugins/write.mdwn
t/syntax.t
| intrigeri | 2009-01-17 |
|\| |
|
| * | checkcontent: New hook, can be used to implement arbitrary content filters, i... | Joey Hess | 2009-01-16 |
* | | add a warning (exported) function to the core•••Signed-off-by: intrigeri <intrigeri@boum.org>
| intrigeri | 2009-01-16 |
* | | editpage: added a cansave hook•••Signed-off-by: intrigeri <intrigeri@boum.org>
| intrigeri | 2009-01-01 |
* | | Pass src, srcfile, dest and destfile to the canrename hook.•••This is not needed by the use I'm doing of it, but seems more consistent to me.
Future users of this hook may need this data to make their mind.
Signed-off-by: intrigeri <intrigeri@boum.org>
| intrigeri | 2009-01-01 |
* | | rename: pass the CGI and session to the rename hook•••The po plugin remame + canrename hook combination will need this.
Signed-off-by: intrigeri <intrigeri@boum.org>
| intrigeri | 2009-01-01 |