aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Render.pm
Commit message (Collapse)AuthorAge
* * The last release accidentially installed ikiwiki as ikiwiki.pl, now fixed.joey2006-08-13
| | | | | | | | | | | | | | * 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.
* * Don't run tidy with -xml as that fails if the input is not well-formed.joey2006-08-04
| | | | | | | | | 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.
* use htmlpage a couple of places instead of hardcoding the extensionjoey2006-08-04
|
* * Renamed GlobLists to PageSpecs.joey2006-08-02
| | | | | | | | | | | | | | * 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.
* * ikiwiki can now download and aggregate feeds with its new aggregatejoey2006-07-30
| | | | | | | | 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.
* * Add a run_hooks function for the common task of running all hooks of ajoey2006-07-30
| | | | | | | given type. * Add a savestate hook. * Don't put blog post forms on pages if there's no cgiurl set. * Reformat front page.
* * Build-depend on libtext-wikiformat-perl, so that the syntax check ofjoey2006-07-29
| | | | | | | | | 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.
* * Switch pagetemplate hooks to using named parameters.joey2006-07-27
| | | | | | | | | * 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.
* * Patch from Enrico thatjoey2006-07-27
| | | | | | | | | - 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.
* * Run page through any relevant filters when generating a page preview.joey2006-07-26
| | | | | | | * 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.
* Encode:: cleanup from Recaijoey2006-07-05
|
* * Improve display of parentlinks and page title of toplevel index page.joey2006-07-04
|
* * Work around very innefficient behavior in File::Spec::abs2rel. Resultjoey2006-07-04
| | | | | | | 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!
* use "use open" pragma to avoid manually needing to specify utf8 everywherejoey2006-07-03
| | | | | | | and also to set default stdio mode change filetype to return undef, not "unknown"
* * Support htmlize plugins and make mdwn one such plugin, which is enabled byjoey2006-07-03
| | | | default (of course!). Based on a patch by Faidon Liambotis.
* * Introduce add_plugins and disable_plugins config options in setup files.joey2006-07-03
| | | | | | 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.
* Encode is used in nearly all code paths so stop loading it on demandjoey2006-07-03
|
* * Support pages with utf8 filenames. Patch by Faidon Liambotis.joey2006-07-03
|
* * Centralised all calls to HTML::Template and force all the templatesjoey2006-07-02
| | | | to be read as utf8.
* perl bugnum and refixjoey2006-07-02
|
* so make sure to let perl know it should be handled as utf8. Also,joey2006-07-02
| | | | | * Improve layout of edit page so formatting help link is always visible w/o getting in the way of the preview.
* * POSIX::strftime doesn't know about encodings and doesn't return a utf8joey2006-07-02
| | | | | | | | | | | | | | 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)
* * Honor LC_CTIME when formatting a time for display. Thanks, Faidonjoey2006-07-02
| | | | Liambotis.
* * Put back the encode_utf8 in the input to markdown; it's really not utf-8joey2006-06-16
| | | | safe.
* * Patch from Recai Oktaş to improve utf-8 support, it should now use properjoey2006-06-11
| | | | | utf-8 for edit and other fields, and for recentchanges. There may still be utf-8 issues with the preferences page though.
* * Reorganised the doc wiki's todo/* pages, using a link/tag to flagjoey2006-06-02
| | | | | | | | | | * 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.
* * More security review.joey2006-06-01
|
* * Add --timeformat config option to allow changing how dates are displayed.joey2006-05-29
| | | | | Note that as a side effect, dates will now be displayed using the local timezone, not as GMT.
* * --getctime had bitrotted (well I only ever used it the once so far..),joey2006-05-26
| | | | | | | | | | | | * 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.)
* utf-8 support seems to be working nowjoey2006-05-26
|
* better fix for empty actions list issuejoey2006-05-26
|
* fix call to getctimejoey2006-05-26
|
* * Rebuilding on upgrade to this version is recommended.joey2006-05-26
| | | | | | | | * Add a html validity check to the test suite, using the wdg-html-validator, if available. * Make the html valid when there is nothing in the actions list by adding an empty <li> to the end of it. * Reordered some function call parameters for consistency.
* * The page name and parent links has switched from using a <h1> to a styledjoey2006-05-26
| | | | | | | | | | <span>, so pages can use <h1> internally instead of needing to use <h2>. * Updated all of ikiwiki's own wiki pages for that. * Add pagetemplate hook, which can be used by plugins that want to mess around with adding new stuff to the page template. * Remove headercontent; the search plugin now adds the search box to the header by registering a pagetemplate hook, and other plugins should do similarly.
* * Allow discussion links on pages to be turned off with --no-discussion.joey2006-05-05
|
* * Removed --sanitize and --no-sanitize, replaced with --plugin htmlscrubberjoey2006-05-05
| | | | and --disable-plugin htmlscrubber.
* rename the "render" hook to "change", which is clearerjoey2006-05-05
|
* * Added smiley plugin, nicely controlled and documented by the smileys page.joey2006-05-04
| | | | * Copied in some smileys from Moin Moin.
* rather a lot of changes to make hyperestraier search be a plugin, allowingjoey2006-05-03
| | | | | | | | | | | | | | for other types of search engine plugins if wanted, and also opening up a lot of new possibilities for other kinds of plugins later some notable changes along the way: - lots of new hook types: cgi, render, delete - wrapper files fixed to support config strings with newlines in them - HEADERCONTENT in page template useful for plugins. Probably needs to be expanded to more such for other places plugins might want to add content. - remove unnecessary wrappers field from config info stored in wrappers
* change plugin interface to use named parameters for flexabilityjoey2006-05-03
|
* ah, the joys of test-based development..joey2006-05-02
| | | | | think I have smart glob list matching working ok
* * Split off an IkiWiki.pm out of ikiwiki and have all the other modules usejoey2006-05-02
| | | | it, this will allow for adding a unit test suite.
* deep copy/untaint arrays in setupjoey2006-05-02
|
* * Added plugin system, currently only supporting for PreProcessorDirectives.joey2006-05-02
| | | | | | | | | | | * Added a pagecount plugin, enabled by default. * Support PreProcessorDirectives with no parameters, ie "[[pagecount ]]". * Fixed/optimised backlinks code, to avoid rebuilding pages to update backlinks when the backlinks hadn't really changed. * Moved inline page support, rss generation etc into the inline plugin, enabled by default. * Added brokenlinks plugin, not enabled by default, but rather handy. * Fix several broken links in the doc wiki.
* change calling convention for preprocessor functionsjoey2006-05-01
|
* * Rename inlinepage to depends, so that it can be used to refer to morejoey2006-05-01
| | | | | | | | | | | | dependency relationships than just inlining. This will require a rebuild on upgrade to this version. * Move the rss link, put it in the blogpost form if there is one and at the top if not. This is both nicer because easier to find, and it cleans up the code which had used inlinepage as a flag for adding the link later. * Allow the depends GlobList to be built up from multiple sources (such as plugins) during a page render. * Which means that more than one blog is now supported to appear on a single page. (With some limitations.)
* implemented html sanitisationjoey2006-04-25
|
* commit changes for email subscriptionsjoey2006-04-24
|
* Convert postprocessordirectives into preprocessordirectives, so they arejoey2006-04-04
| | | | | | | | | | | | | expanded before markdown. Consequences: - No need to worry about markdown messing with parameters of preprocessordirectives. (If you had to escape stuff in one before, you'll need to undo that escaping now.) - No need for ugly </p> hacks before inlined subpages. Instead, subpages are wrapped in a <div>, and this prevents markdown from touching them. (This can also be used to add style to subpages.) - rss generation is less of a hack.
* proper binmode settings so that with -CSD, ikiwiki will support unicodejoey2006-04-04
| | | | | however, due to robustness, that's not enabled by default yet