Commit Graph

341 Commits (f8dbe2657cb4ed768815c5cf699ecb922e796934)

Author SHA1 Message Date
joey 5a82103526 * Implemented expiry options for aggregate plugin.
* Use precalculated backlinks info when determining if files need an update
  due to a page they link to being added/removed. Mostly significant if
  there are lots of pages.
* Remove duplicate link info when saving index. In some cases it could
  pile up rather badly. (Probably not the best way to deal with this
  problem.)
2006-11-01 05:41:37 +00:00
joey c3a530ab93 * Improve login/register process, the login dialog has only name and
password fields, which allows more web browsers to regognise it as a login
  field, and is less confusing.
2006-10-30 23:28:01 +00:00
joey 74b5fb09aa fix a bug 2006-10-28 22:24:18 +00:00
joey db3b72c482 instead of over and over. Typical speedup is ~4x. Max possible speedup:
8x.
* Add "scan" parameter to hook(), which is used to make the hook be called
  during the scanning pass, as well as the render pass. The meta and tag
  plugins need to use the new scan parameter, so will any others that modify
  %links.
* Now that links are calculated in a separate pass, it can also 
  precalculate backlinks in one pass, which is O(N^2) instead of the
  previous code that was O(N^3). A very nice speedup for wikis with lots
  (thousands) of pages.
2006-10-28 05:07:56 +00:00
joey 49bf877701 * Add a separate pass to find page links, and only render each page once,
instead of over and over. This is up to 8 times faster than before!
  (This could have introduced some subtle bugs, so it needs to be tested
  extensively.)
2006-10-28 03:27:10 +00:00
joey a1eaeffe5e delete session 2006-10-28 00:36:34 +00:00
joey b6509c74a9 * Add basic spam fighting tool for admins: An admin's prefs page now allows
editing a list of banned users who are not allowed to log in.
2006-10-28 00:35:33 +00:00
joey 771791104c * Change the rss feed title from the wikiname to the page title, with
an exception for the wiki's toplevel index page, which will still use the
  wikiname as the feed title.
* Sanitize possibly problimatic characters out of the polygen grammar names,
  just in case. Should not be exploitable anyway, since it only tries to run
  polygen after finding the specified grammar file.
2006-10-22 21:12:50 +00:00
joey e54d901565 * Add an img plugin, based on Christian Mock's img plugin, but stripped
down to the bare essentials. Useful for handling large images on websites.
2006-10-21 21:59:44 +00:00
joey 182748a9c1 * Change the rss feed title from the wikiname to the page title.
Overriding the page title with meta title already overrode the rss feed
  tittle.
2006-10-20 21:17:36 +00:00
joey ea217fdf8f todo 2006-10-16 19:06:29 +00:00
joey 7c18261b80 * Wrap entire technortati ping operation in an eval to catch all possible
failure modes, after I observed a simple ->value crashing ikiwiki when
  a ping failed.
2006-10-16 19:03:33 +00:00
joey b973ed8269 * Add no_override parameter to hook().
* Add a shortcut plugin, inspired by Victor Moral's contributed shortcuts 
  plugin, but featuring a more ikiwiki-ish syntax and with shortcuts that
  can be configured using a page in wiki.
2006-10-15 19:33:52 +00:00
joey 3ef0a67811 * Patch from Recai to limit recentchanges to displaying max 10 files for a
given changeset (to avoid large number of file changes excessively
  bloating the page).
2006-10-14 03:12:30 +00:00
joey f27a462b18 cosmetic changes from Recai 2006-10-14 03:10:33 +00:00
joey 9256360490 * Make the aggregate plugin emphasize error messages. 2006-10-13 18:31:18 +00:00
joey be55f6fd7c * Atom feed support based on a patch by Clint Adams.
* Add feeds=no option to inline preprocessor directive to turn off all types
  of feeds. feeds=rss will still work, and feeds=atom was also added, for
  fine control.
* $IkiWiki::version now holds the program version, and is accessible to
  plugins.
2006-10-08 23:57:37 +00:00
joey 43ede4be2e change word 2006-10-08 22:12:12 +00:00
joey cefbe6210f * Change %renderedfiles to store an array of files rendered from a given
source file, to allow tracking of extra rendered files like rss feeds.
* Note that plugins that accessed this variable will need to be updated!
  The plugin interface has been increased to version 1.01 for this change.
* Add will_render function to the plugin interface, used to register that a
  page renders a destination file, and do some security checks.
* Use will_render in the inline and linkmap plugins.
* Previously but no longer rendered files will be cleaned up.
* You will need to rebuild your wiki on upgrade to this version.
2006-10-08 21:56:50 +00:00
joey 67b513e8c4 * Patch from Alec Berryman adding a http_auth config item that allows
using HTTP Authentication instead of ikiwiki's built in authentication.
  Useful for eg, large sites with their own previously existing user auth
  setup. Closes: #384534
2006-10-02 22:56:09 +00:00
joey b78e139c50 * Don't fail syntax check if Text::Typography isn't installed.
Closes: #389406
2006-09-26 06:08:24 +00:00
joey 9f45c3080e * Fix a forkbomb in various calls to IPC::Open2, which has a highly
braindead interface. Closes: #389383
2006-09-25 21:38:25 +00:00
joey 48e004acb1 * inline: Add ability to sort by page name, based on a patch from
Benjamin A'Lee.
2006-09-25 21:13:14 +00:00
joey c35444826c * Add --render mode, which can be used to preview an edit at the command
line by test rendering a single page.
2006-09-21 21:34:29 +00:00
joey bbfe1b9058 move use 2006-09-21 20:30:03 +00:00
joey c7140ad90b * Add typography (SmartyPants) plugin by Recai. 2006-09-21 20:28:40 +00:00
joey 62e1a2ceed estseek patch (slightly altered) and other replies 2006-09-18 20:53:17 +00:00
joey 396341b2c3 * Yet another fix for those poor case-insensative `OSX users.
* chomp trailing newlines at the end of templates read in by the template
  plugin, to allow use of the template preprocessor directive in
  whitespace-sensative situations. Closes: #387073
2006-09-18 19:28:09 +00:00
joey 8e0236b50b more updates from Clint 2006-09-17 17:30:18 +00:00
joey fa96eab120 * Updated ikiwiki.svgz from Recai, includes an icon and is used to generate
a multi-resolution favicon.ico.
2006-09-16 15:12:01 +00:00
joey 42973f687c typo fix and slight reformat 2006-09-16 04:16:17 +00:00
joey 22ddd81dd2 * Numerous tla fixes from Clint. 2006-09-16 04:09:06 +00:00
joey eabafab8e4 oops... 2006-09-16 01:53:14 +00:00
joey 0df2ad5dfe * Support Text::Markdown from CPAN, which has a different interface from
the original markdown or the one in Debian.
2006-09-16 01:50:29 +00:00
joey 26774c931c * Patch from James Westby to deal with the case where you're editing a
new page, hit cancel, and need to be redirected to somewhere sane.
2006-09-16 01:23:14 +00:00
joey 39fd60f1ab * Deal with CPAN installing Markdown as Text::Markdown, while it's
installed as just Markdown by apt.
2006-09-16 01:14:30 +00:00
joey 0f25ec8eb6 * pagetemplate hooks are now also called when generating cgi pages.
* Add a favicon plugin, which simply adds a link tag for an icon to each
  page (and cgis).
2006-09-16 00:52:26 +00:00
joey dfedb0351d * Patch from Recai to fix a wide character warning from the search plugin
during setup if the wikiname contains utf8.
2006-09-15 17:10:53 +00:00
joey 96b395705a * Fix a baseurl problem in hyperestradier search results. 2006-09-15 03:15:34 +00:00
joey 65d9871a38 oops.. 2006-09-14 23:14:48 +00:00
joey 9575948b51 hail UB313! 2006-09-14 22:28:04 +00:00
joey 1e7be2d3dd * Patch from Recai to kill utf-8 on the wiki name when generating the
session cookie.
2006-09-11 16:24:05 +00:00
joey d0b025468a * Patch from Recai to use utf8 when reading the setup file, so that
utf8 wikinames from there will be used properly.
2006-09-10 18:16:43 +00:00
joey 9bae900242 * Add a module version number to IkiWiki, so you can "use IkiWiki '1.00'"
to declare which version of the interface your plugin needs.
2006-09-09 23:07:27 +00:00
joey dae0f48e91 * Work on firming up the plugin interface:
- 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-09-09 22:50:27 +00:00
joey aa2b3b8f63 * Add a googlecalendar plugin. A bit special-purpose, but it shows
one way to to deal with user-supplied content that could cause XSS
  issues w/o the htmlscrubber, and won't survive the scrubber.
2006-09-09 07:11:51 +00:00
joey 0e224e9f9c * Add a missing -n to tla undo call.
* otl2hmtl can't be safely used with IPC::Open2 since it sometimes
  writes before consuming its whole stdin. Avoid this deadlock.
* Fix alt tags for outline checkboxes.
2006-09-08 20:33:49 +00:00
joey 757b627414 * Add a missing -n to tla undo call. 2006-09-08 19:19:56 +00:00
joey 6e273d60a6 shorten further 2006-09-07 23:55:21 +00:00
joey 2fd2646e66 remove the "0 new", it's not very useful 2006-09-07 23:54:37 +00:00