aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/write.mdwn
Commit message (Collapse)AuthorAge
* Allow hooks to add sorting functions to pagespec_match_listSimon McVittie2010-03-24
|
* add ngettext support & optimize gettext handlingJoey Hess2010-02-14
| | | | | | | | | | | 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.
* formattingJoey Hess2010-02-12
|
* layoutJoey Hess2010-02-12
|
* add highlevel view of when hooks are called during compile and cgi phasesJoey Hess2010-02-12
|
* add variable value examplesJoey Hess2010-02-12
|
* move note to sideboxJoey Hess2010-02-12
|
* heading tweaksJoey Hess2010-02-12
|
* reorg and expand docs of some variablesJoey Hess2010-02-12
|
* add section informationJoey Hess2010-02-12
|
* Group related plugins into sections in the setup file, and drop unused rcs ↵Joey Hess2010-02-11
| | | | plugins from the setup file.
* document that state variables are not available in the checkconfig hookJoey Hess2010-01-31
|
* htmllink: allow a title attribute to be specifiedJoey Hess2009-11-26
|
* Moved the postscan hook to run on the raw html of a page, before the ↵Joey Hess2009-11-08
| | | | template is filled out. This improves the search plugin's indexing, since it will not include navigational elements from the page template or sidebar.
* add_depends: optimise influence calculationJoey Hess2009-10-09
| | | | | | | | 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.
* pagespec_match_list: change limit to filterJoey Hess2009-10-09
|
* pagespec_match_list allow additional pagespec limit parameters againJoey 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.
* 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..
* add use_pagespec and deptype functionsJoey Hess2009-10-08
|
* add type info to influence informationJoey Hess2009-10-07
|
* add influence info to match_*Joey Hess2009-10-07
| | | | Also update docs, test suite.
* mention that pagespec_match returns an overloaded valueJoey Hess2009-10-07
|
* Add genwrapper hook, that can be used to add code into the C wrapper.Joey Hess2009-09-10
|
* add missing backquotehttp://schmonz.livejournal.com/2009-07-29
|
* fix typohttp://schmonz.livejournal.com/2009-07-26
|
* Merge branch 'master' into poJoey Hess2009-05-19
|\ | | | | | | | | Conflicts: debian/changelog
| * document longname parameterJon Dowland2009-05-16
| |
| * 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.
| * 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.
| * clarifyJoey Hess2009-04-22
| |
* | rename hook: run once per file to be renamedintrigeri2009-03-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... 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>
* | Merge commit 'upstream/master' into prv/pointrigeri2009-03-08
|\| | | | | | | | | | | | | | | | | | | | | Conflicts: IkiWiki/Plugin/editpage.pm debian/control debian/copyright doc/todo/need_global_renamepage_hook.mdwn Signed-off-by: intrigeri <intrigeri@boum.org>
| * Add noextension parameter to htmlize hooks to support, eg, Makefile.Joey Hess2009-02-19
| |
| * revert addition of several blank linesJoey Hess2009-02-17
| |
| * correct WikiLinks to the WikiLink pageAlexandreDupas2009-02-16
| |
| * document writefile symlink checksJoey Hess2009-02-09
| |
* | rename hook: instead of modifying the passed-by-name array, return a copyintrigeri2009-01-27
| | | | | | | | | | | | | | | | | | | | | | 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>
* | revert renamepage's hook original nameintrigeri2009-01-27
| | | | | | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* | only pass named parameters to the canremove hookintrigeri2009-01-26
| | | | | | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* | only pass named parameters to the canrename hookintrigeri2009-01-26
| | | | | | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* | don't add new exported warning functionJoey Hess2009-01-26
| | | | | | | | | | | | | | 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.
* | remove cansave plugin, now replaced by Joey's checkcontent oneintrigeri2009-01-19
| | | | | | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* | make checkcontent compatible with hooks that need the full contentintrigeri2009-01-19
| | | | | | | | | | | | | | | | 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>
* | Merge commit 'upstream/master' into prv/pointrigeri2009-01-17
|\| | | | | | | | | | | | | | | | | Conflicts: IkiWiki/Plugin/editpage.pm IkiWiki/Plugin/skeleton.pm.example doc/plugins/write.mdwn t/syntax.t
| * checkcontent: New hook, can be used to implement arbitrary content filters, ↵Joey Hess2009-01-16
| | | | | | | | including spam filters.
* | add a warning (exported) function to the coreintrigeri2009-01-16
| | | | | | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* | editpage: added a cansave hookintrigeri2009-01-01
| | | | | | | | Signed-off-by: intrigeri <intrigeri@boum.org>
* | Pass src, srcfile, dest and destfile to the canrename hook.intrigeri2009-01-01
| | | | | | | | | | | | | | 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>