summaryrefslogtreecommitdiff
path: root/IkiWiki/Render.pm
AgeCommit message (Collapse)Author
2006-09-21* Add --render mode, which can be used to preview an edit at the commandjoey
line by test rendering a single page.
2006-09-09* Work on firming up the plugin interface:joey
- Plugins should not need to load IkiWiki::Render to get commonly used functions, so moved some functions from there to IkiWiki. - Picked out the set of functions and variables that most plugins use, documented them, and made IkiWiki export them by default, like a proper perl module should. - Use the other functions at your own risk. - This is not quite complete, I still have to decide whether to export some other things. * Changed all plugins included in ikiwiki to not use "IkiWiki::" when referring to stuff now exported by the IkiWiki module. * Anyone with a third-party ikiwiki plugin is strongly enrouraged to make like changes to it and avoid use of non-exported symboles from "IkiWiki::". * Link debian/changelog and debian/news to NEWS and CHANGELOG. * Support hyperestradier version 1.4.2, which adds a new required phraseform setting.
2006-08-31drop the loop number to 3, 10 seems a bit much..joey
2006-08-28* Change htmlize, format, and sanitize hooks to use named parameters.joey
2006-08-27fix reference counting oopsjoey
2006-08-27re-emit unprocessed preprocessor directives in full, in case they're reallyjoey
wikilinks with spaces
2006-08-26added infojoey
2006-08-26switch to > n (currently 10) cycle loop protection since eg tumov's includejoey
plugin preprocesses included pages using the name of the including page
2006-08-25use a hashjoey
2006-08-25* Generalised preprocesser loop protection code.joey
2006-08-23remove unused optionjoey
2006-08-23* Change order of linkify and preprocess; first preprocess and then linkify.joey
This allows passing a wikilink inside a parameter to a preprocessor directive without it being expanded to html, and leaking out of the parameter, which had required some non-obvious use of triple-quoting to avoid. Note that any preprocessor plugins that output something that looks like a wikilink will now have it treated as such; AFAIK this doesn't change any behavior though except for the template plugin. * Enable preprocessor directives when previewing an edit.
2006-08-23updatejoey
2006-08-23fixesjoey
2006-08-23* Allow preprocessor directives to contain python-like triple-quotedjoey
text blocks, for easy nesting of quotes inside. * Add a template plugin. * Use the template plugin to add infoboxes to each plugin page listing basic info about the plugin.
2006-08-23* Allow preprocessor directives to span multiple lines, both to makejoey
long ones with lots of values easier to write, and to allow for ones with multi-line quoted values.
2006-08-22revert broken parentlinks fix, which was broken, explain whyjoey
add plugins/contrib page to avoid broken link on this wiki
2006-08-21* Clean up behavior with broken parentlinks.joey
2006-08-21* Fixed a bug with previews of subpages having broken links to top-leveljoey
pages. * Change how the stylesheet url is determined in the templates: Remove STYLEURL and add BASEURL to all templates (some already had it). This new more general variable can be used to link to other things (eg, images) from the template, as well as stylesheets.
2006-08-13* The last release accidentially installed ikiwiki as ikiwiki.pl, now fixed.joey
* Add --version. * Man page format fixups. * Add a %pagecase which maps lower-case page names to the actual case used in the filename. Use this in bestlinks calculation instead of forcing the link to lowercase. * Also use %pagecase in various other places that want to check if a page with a given name exists. * This means that links to pages with mixed case names will now work, even if the link is in some other case mixture, and mixed case pages should be fully supported throughout ikiwiki. * Recommend rebuilding wikis on upgrade to this version.
2006-08-04* Don't run tidy with -xml as that fails if the input is not well-formed.joey
Run it with -asxhtml instead, so it will output well-formed xhtml no matter what the input. * Disable tidy warnings too. * Add a new format hook, and make tidy use it, since tidy can really only operate on and output complete html documents, not the body chunks that sanitise gets.
2006-08-04use htmlpage a couple of places instead of hardcoding the extensionjoey
2006-08-02* Renamed GlobLists to PageSpecs.joey
* PageSpecs can now include nested parens, "and", and "or". This remains backwards compatible to the old GlobList format. It's implemented by treating the GlobList as a very limited microlanguage that is transformed to perl code that does the matching. * The old GlobList format is deprecated, and I encourage users to switch to using the new PageSpec format. Compatability with the old format will be removed at some point, possibly by 2.0. * Wiki rebuild needed on upgrade to this version due to PageSpec change. * Add support for creation_month and creation_year to PageSpec. Closes: #380680 * Changes to index file encoding.
2006-07-30* ikiwiki can now download and aggregate feeds with its new aggregatejoey
plugin, so it's possible to implement a Planet using ikiwiki! * --setup --refresh no longer rebuilds wrappers. Use --setup --refresh --wrappers to do that. * Add %IkiWiki::forcerebuild to provide a way for plugins like aggregate to update pages that haven't changed on disk.
2006-07-30* Add a run_hooks function for the common task of running all hooks of ajoey
given type. * Add a savestate hook. * Don't put blog post forms on pages if there's no cgiurl set. * Reformat front page.
2006-07-29 * Build-depend on libtext-wikiformat-perl, so that the syntax check ofjoey
the wikiformat plugin works. Thanks, Emanuele Aina. * Patch from Alessandro Dotti Contra to clean up backlinks and navbar display, running them through pagetitle. This removes ugly underscores and other gunk from the display, much nicer. You may want to rebuild your wiki when upgrading to get the cleanup globally.
2006-07-27* Switch pagetemplate hooks to using named parameters.joey
* Pass a "destpage" parameter to preprocessor and pagetemplate hooks. This will be the page that a source page will be part of, which is different than the source page for inlined pages. * Audited all plugins to endure they pass page, destpage to htmllink appropriatly. This means inlining of various plugins will not work properly, with correct links generated.
2006-07-27* Patch from Enrico thatjoey
- allows preprocessor directives to have parameters with no specified value - fixes preprocessor directive parameter parsing so that foo=bar baz now means "foo=bar" and a "baz" with no value - Add a tag plugin that allows more easily tagging pages. The meta plugin can also still be used for this.
2006-07-26* Run page through any relevant filters when generating a page preview.joey
* Noticed a bug in the wikitext markup plugin -- it made CamelCase links the default throughout the wiki, not only on wikitext pages. Decided to call this a feature, and split the camelcase support out into a separate plugin that is independant of wikitext.
2006-07-05Encode:: cleanup from Recaijoey
2006-07-04* Improve display of parentlinks and page title of toplevel index page.joey
2006-07-04 * Work around very innefficient behavior in File::Spec::abs2rel. Resultjoey
is a savings of 2 pointless fork/execs per link calculation, which results in ~25% speedup of ikiwiki building its own doc wiki, and about 35% speedup displaying RecentChanges!
2006-07-03use "use open" pragma to avoid manually needing to specify utf8 everywherejoey
and also to set default stdio mode change filetype to return undef, not "unknown"
2006-07-03* Support htmlize plugins and make mdwn one such plugin, which is enabled byjoey
default (of course!). Based on a patch by Faidon Liambotis.
2006-07-03* Introduce add_plugins and disable_plugins config options in setup files.joey
This allows adding or removing plugins w/o overriding the whole list of default plugins, which makes it easier to upgrade when new default plugins are added.
2006-07-03Encode is used in nearly all code paths so stop loading it on demandjoey
2006-07-03* Support pages with utf8 filenames. Patch by Faidon Liambotis.joey
2006-07-02* Centralised all calls to HTML::Template and force all the templatesjoey
to be read as utf8.
2006-07-02perl bugnum and refixjoey
2006-07-02 so make sure to let perl know it should be handled as utf8. Also,joey
* Improve layout of edit page so formatting help link is always visible w/o getting in the way of the preview.
2006-07-02* POSIX::strftime doesn't know about encodings and doesn't return a utf8joey
flagged string even if the locale causes it to generate utf8 output, so make sure to let perl know it should be handled as utf8. Also, the optimised version used for standard time formats won't work if the user has changed locale, so drop it. Thanks, Faidon Liambotis. * Fix re-encoding of the comments field to utf8 if a commit fails due to a conflict. Thanks, Faidon Liambotis. * Let svn know that commits have utf8 commit messages. Thanks, Faidon Liambotis. * Add insane double encode/decode to utf8 around call to markdown. This works around a truely strange bug, which is apparently a bug in perl, which I lack space to describe here (see t/crazy-badass-perl-bug.t)
2006-07-02* Honor LC_CTIME when formatting a time for display. Thanks, Faidonjoey
Liambotis.
2006-06-16* Put back the encode_utf8 in the input to markdown; it's really not utf-8joey
safe.
2006-06-11* Patch from Recai Oktaş to improve utf-8 support, it should now use properjoey
utf-8 for edit and other fields, and for recentchanges. There may still be utf-8 issues with the preferences page though.
2006-06-02* Reorganised the doc wiki's todo/* pages, using a link/tag to flagjoey
* Allow pagetemplate plugins to override *anything* in the template. * Add a meta plugin, which allows specifying various metadata about pages, like license and author. It also allows for inserting html link and meta tags into html, overriding the title, and adding hidden WikiLinks, which can be useful when using link-based globbing for page categorisation. * Remove preprocessor directives from inlined pages. * Allow simple preprocessor directive values to be specified w/o quotes.
2006-06-01* More security review.joey
2006-05-29* Add --timeformat config option to allow changing how dates are displayed.joey
Note that as a side effect, dates will now be displayed using the local timezone, not as GMT.
2006-05-26* --getctime had bitrotted (well I only ever used it the once so far..),joey
* When inlining a page in another one, links from the inlined page are now expanded the same as they are when rendering the inlined page as a standalone page. So rather than being expanded from the POV of the inlining page, they are expanded from the POV of the inlined page. For example, a link from blog/foo to "bar" will now link to blog/bar if it exists. Previously this needed to be a link explicitly to "blog/bar"; such links will also continue to work. (This was slightly complex to do as the link still has to be constructed relative to the inlining page.)
2006-05-26utf-8 support seems to be working nowjoey
2006-05-26better fix for empty actions list issuejoey