summaryrefslogtreecommitdiff
path: root/IkiWiki/Render.pm
AgeCommit message (Collapse)Author
2008-09-05editpage: New core plugin factoring out page editing to allow disabling it ↵Joey Hess
if desired.
2008-07-26historyurl can be undefJoey Hess
2008-07-23Rebuild pages that change their type.Gabriel McManus
Previously, if a page changed its type but not its mtime (e.g. mv page.txt page.mdwn), then it would not be rebuilt. Now, check if the source of a page has changed, in which case force a rebuild of that page. (cherry picked from commit b6a3b8a683fed7a7f6d77a5b3f2dfbd14c849843)
2008-07-21Add allow_symlinks_before_srcdir config settingJoey Hess
can be used to avoid a security check that is a good safe default, but problimatic overkill in some situations. I decided to underdocument this, because the option looks ugly, and I don't want people randomly turning it on because it looks like a good idea. So if you need it, you'll get an error message mentioning how to fix it.
2008-07-17Add a postscan hook.Joey Hess
* Add a postscan hook. * search: Use postscan hook, avoid updating index when previewing.
2008-07-15pedigree rename to parentlinks: rename/adapt everythingintrigeri
* Renamed to parentlinks every single variable or function called pedigree * Removed the parentlinks function from Render.pm * Enabled the new parentlinks plugin by default * Adapted testsuite and documentation to reflate the above facts Signed-off-by: intrigeri <intrigeri@boum.org>
2008-07-12avoid hardlinking files owned by othersJoey Hess
If hardlinks are enabled, it would hardlink files from the underlay. That was sorta annoying if you tried to edit by hand for some reason, so let's not. Files that are hardlinked should be rare enough that a few extra stats won't hurt.
2008-07-06editpage escaping fixesJoey Hess
* The editpage form now uses the raw page name, not the page title, in its 'page' cgi parameter. Using the title was ambiguous and made it impossible to tell between some pages, like "foo/bar" and "foo__47__bar", sometimes causing the wrong page to be edited. * This change means that some edit links need to be updated. Force a rebuild on upgrade to this version. * Above change also allowed really fixing escaped slashes from the blogpost form.
2008-07-01fix expensive move code pathJoey Hess
2008-07-01break out fast_file_copyJoey Hess
2008-06-04Pass a destpage parameter to the sanitize hook.Joey Hess
Because the search plugin needed it, also because it's one of the few plugins that didn't already have it. I also considered adding it to htmlize, but I really cannot imagine caring what the destpage is when htmlizing. (I'll probably be poven wrong later.)
2008-06-04Filter hooks are no longer called during the scan phase. This will prevent ↵Joey Hess
wikilinks added by filters from being scanned properly. But no known filter hook does that, and calling filters unncessarily during scan slowed down complex filters such as the one used to update the xapian index.
2008-05-08load plugins before printing messagesJoey Hess
This allows plugins to getopt and change what is done before an incorrect line is printed.
2008-05-07amazon s3 support implemented and kinda workingJoey Hess
pruning not yet implemented, however
2008-05-07Optimised file statting code when scanning for modified pages; cut the ↵Joey Hess
number of system calls in half. (Still room for improvement.)
2008-03-29Added a hardlink option in the setup file, useful if the source and dest are ↵Joey Hess
on the same filesystem and the wiki includes large media files, which would normally be copied, wasting time and space.
2008-02-24avoid calling getctime on internal pagesJoey Hess
internal pages won't be in revision control so this avoids some ugly noise
2008-02-11* Add the linkify and scan hooks. These hooks can be used to implementJoey Hess
custom, first-class types of wikilinks. * Move standard wikilink implementation to a new wikilink plugin, which will of course be enabled by default.
2008-02-09* Page templates can now use CTIME to show when the page was created.Joey Hess
2008-02-07* Don't die if running with --getctime and rcs_getctime throws an error.Joey Hess
There are several cases (recentchanges files, aggregated files) where some source files are not in revision control.
2008-02-02* Revert preservation of input file modification times in output files,Joey Hess
since this leads to too many problems with web caching, especially with inlined pages. Properly solving this would involve tracking every page that contributes to a page's content and using the youngest of them all, as well as special cases for things like the version plugin, and it's just too complex to do.
2008-01-30move recentchanges link enabling into a pagetemplate hookJoey Hess
2008-01-29avoid temp varJoey Hess
2008-01-29don't scan internal pagesJoey Hess
scan() does too much. All that is needed is to preprocess the internal page in scan-only mode.
2008-01-29* meta: Add pagespec functions to match against title, author, authorurl,Joey Hess
license, and copyright. This can be used to create custom RecentChanges. * meta: To support the pagespec functions, metadata about pages has to be retained as pagestate. * Fix encoding bug when pagestate values contained spaces.
2008-01-29avoid redundant recentpages action on the recentchanges page itselfJoey Hess
2008-01-29added configuration for recentchangesJoey Hess
I kept it to a simple global configuration, rather than using the preprocessor directive for recentchanges, because that had chicken and egg problems and seemed overcomplicated. This should work reasonably well, though it would be good to add some more metadata so that more customised recentchanges pages can be made.
2008-01-29improve support for internal pagesJoey Hess
This makes it a lot quicker to deal with lots of recentchanges pages appearing and disappearing. It avoids needing to clutter up pagespecs with exclusions for those pages, by making normal pagespecs not match them.
2008-01-29add refresh hookJoey Hess
2008-01-29indicate that an internal page will be rendered even if skipping itJoey Hess
This is important to do because until will_render is called, ikiwiki doesn't know that the page exists. This avoids recentchanges re-writing every change page every run.
2008-01-29update RecentChanges action to point to pageJoey Hess
2008-01-29don't render internal-use pages, and document themJoey Hess
2007-12-19* Improved parentlinks special case for index pages.Joey Hess
2007-12-12* Avoid unnecessary stat calls to get mtime when rendering pages, useJoey Hess
cached value. * Preserve input file modification times in output files.
2007-11-26releasing version 2.14Joey Hess
2007-08-28* Support for looking in multiple directories for underlay files.joey
* Plugins can add new directories to the search path with the add_underlay function. * Split out smiley underlay files into a separate underlay, so if the plugin isn't used, the wiki isn't bloated with all those files.
2007-07-28typojoey
2007-07-26* Add templatefile hook.joey
* Add pagetemplate plugin, which allows changing the template used for a page. (Not to be confused with the hook of the same name..)
2007-07-26* Fix re-rendering of pages when a linked to page goes away. This was brokenjoey
in version 1.50 with the addition of %destsources. Thanks, Ethan Glasser-Camp.
2007-05-17* Add a destpage parameter to the filter hook.joey
* Fix links to smilies generated by the smiley plugin for inlined pages. The old links were often wrong, but often still worked by accident.
2007-05-12optimise backlinks counting for pagestats, simplify function returns againjoey
2007-05-09* Add the needsbuild hook. Plugins can use this to manipulate which filesjoey
ikiwiki builds when refreshing the wiki.
2007-04-27* pagespec_match() has changed to take named parameters, to better allowjoey
for extended pagespecs. The old calling convention will still work for back-compat for now. * The calling convention for functions in the IkiWiki::PageSpec namespace has changed so they are passed named parameters. * Plugin interface version increased to 2.00 since I don't anticipate any more interface changes before 2.0.
2007-04-08oopsjoey
2007-04-07magic 0joey
2007-04-01* Finally apply the index.html patch, with thanks to everyone who workedjoey
on and supported creating it (especially Tumov). This adds a "usedirs" option that makes ikiwiki use foo/index.html instead of foo.html as output page names. It is not yet enabled by default.
2007-03-31* Hide excess backlinks and expand using CSS trick; control quantiy viajoey
the numbacklinks setting.
2007-03-24* Finally fixed the longstanding inline removal bug.joey
* Renamed %oldpagemtime to a more accurately named %pagemtime and fix it to actually store pages' mtimes. * Add "mtime" sort parameter to inline plugin.
2007-03-08* The underscore escaping support exposed a bug in edit links: Such linksjoey
were titlepage escaped in the urls, and then doubly escaped by the CGI when editing. To fix this, I removed the titlepage escaping in the edit urls. * That means that *every edit link* on the wiki is potentially changed. Rebuilding wikis on upgrade to this version therefore necessary; enabled that in postinst.
2007-03-07My fix to support encoded underscores in page titles broke links to pagesjoey
with underscores in their filenames, since the link code also used titlepage. Create a new linkpage function and have the link code use that instead.