Commit Graph

80 Commits (a59b1ac8d8eb220fd4f574af4a8a6742825aac6f)

Author SHA1 Message Date
joey a59b1ac8d8 haiku plugin 2006-05-05 04:15:47 +00:00
joey ccbf965e6b fix a bug that doubled the search box 2006-05-04 04:45:30 +00:00
joey ecfd8bcae6 update 2006-05-04 04:33:56 +00:00
joey be56970d05 * Added smiley plugin, nicely controlled and documented by the smileys page.
* Copied in some smileys from Moin Moin.
2006-05-04 04:29:37 +00:00
joey af9566ff1a rather a lot of changes to make hyperestraier search be a plugin, allowing
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
2006-05-03 21:50:39 +00:00
joey a44bfb158d change plugin interface to use named parameters for flexability 2006-05-03 19:58:58 +00:00
joey 12422e9890 * Patch from Thomas Schwinge to switch from --svn to --rcs=svn, etc,
to pave the way for adding other RCS support. This also changes the
  setup files, where before they had svn => 1 or svn => 0, now they have
  rcs => "svn" or rcs => "".
* Add a debian/NEWS file with upgrade notes.
* Load whatever rcs module is specified, so new ones can be just dropped in
  as plugins and work.
* Add some basic docs about writing RCS modules.
2006-05-02 18:44:39 +00:00
joey 47cec07e44 ah, the joys of test-based development..
think I have smart glob list matching working ok
2006-05-02 15:22:49 +00:00
joey 3b0fce93e4 * Split off an IkiWiki.pm out of ikiwiki and have all the other modules use
it, this will allow for adding a unit test suite.
2006-05-02 06:53:33 +00:00
joey 99292550fd * Add an orphans plugin for finding pages that nothing links to.
* Removed backlinks page, which it turns out nothing used.
2006-05-02 06:15:31 +00:00
joey f84b47d080 fix undef warning 2006-05-02 04:37:31 +00:00
joey fe6b271501 deep copy/untaint arrays in setup 2006-05-02 04:18:44 +00:00
joey e7f97eae60 * Smarter behavior when creating a page and a page of the same name (but
different location) already exists.
2006-05-02 02:57:45 +00:00
joey 54d5308cd8 * Added plugin system, currently only supporting for PreProcessorDirectives.
* 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.
2006-05-02 02:34:33 +00:00
joey 457d6bbbbf change calling convention for preprocessor functions 2006-05-01 23:18:09 +00:00
joey 819a31ed24 * Rename inlinepage to depends, so that it can be used to refer to more
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.)
2006-05-01 22:27:37 +00:00
joey 188d7c1961 two notify bug fixes:
- run it after refreshing so that all the page info is current
- convert filenames into page names before checking against glob
2006-04-28 05:16:24 +00:00
joey 5cd32c2eee - fix typo
- avoid sending commit mails to the user who made the commit
2006-04-25 20:24:44 +00:00
joey bfa96ad282 prevent users from registering with name that is not a valid wikifile
avoids XSS attacks and is generally a good limitation
2006-04-25 05:53:22 +00:00
joey d7aecf6ddc implemented html sanitisation 2006-04-25 03:18:21 +00:00
joey 1f06b39788 fix a deadloop if from ended in a / 2006-04-25 01:15:20 +00:00
joey 1ba7023746 more 2006-04-25 00:45:10 +00:00
joey 1f66fb8a28 formatting 2006-04-25 00:29:06 +00:00
joey b7f64d884c subscription nearly done 2006-04-25 00:22:41 +00:00
joey 13e3bf8671 commit changes for email subscriptions 2006-04-24 23:09:26 +00:00
joey 170a6de6ab fix comment 2006-04-21 16:39:59 +00:00
joey 958468b088 fix broken example config file and detect this breakage 2006-04-20 13:34:11 +00:00
joey 3ff14ce12a fix --anonok 2006-04-14 18:10:18 +00:00
joey 7a5ae22e5a Convert postprocessordirectives into preprocessordirectives, so they are
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.
2006-04-04 20:57:46 +00:00
joey f50bd57bce proper binmode settings so that with -CSD, ikiwiki will support unicode
however, due to robustness, that's not enabled by default yet
2006-04-04 19:34:50 +00:00
joey 46302e698d Verified that the action parameter on cgi forms is needed for at least the
prefs form. Use $config{cgiurl}.
2006-04-04 18:43:26 +00:00
joey 5cdcec9f49 comment out action => $q->request_uri setting, which is reporedly
unnecessary and doesn't work with old CGI.pm's (it's an undocumented
variable)
2006-04-02 22:28:08 +00:00
joey c4e0e8c36c - add <base> to cgi output, this is especially useful for output containing
wikilinks since the urls should work now in more situations
- drop --limit from svn log run, since a) it needs a fairly new svn and 
  b) in some cases, it would limit it to too few entries to display the
  requested number of changes
- Use driver:DB_File and not driver:db_file for better compatability with
  old versions of CGI::Session.
- Note that HTML::Template 3.02.02 is needed.
2006-04-02 22:24:08 +00:00
joey 9922c37d73 improved logic 2006-03-30 00:17:28 +00:00
joey 5f1e794045 fixes 2006-03-29 22:36:23 +00:00
joey 0d9539d577 added --hyperestraier switch, which turns on search support
(ok, the way I run estseek.cgi is admittedly pretty nasty, but it works..)
2006-03-29 22:21:23 +00:00
joey efe91335c6 improve fix for symlink attacks to check subdirectories for symlinks too
before writing
2006-03-29 18:50:36 +00:00
joey 2a16e15122 fix for replacing from underlay 2006-03-29 18:35:04 +00:00
joey 975ae0944c Implemented --underlaydir, and moved files provided by underlay out of doc
so I don't need to maintain two copies anymore.

You might also want to remove the files provided in the basewiki underlay
from your wiki, if you have not created custom local versions of them, so
that these pages will be automatically updated in future ikiwiki upgrades.
2006-03-29 18:21:01 +00:00
joey 5591d621b9 css support 2006-03-29 07:24:03 +00:00
joey e41dd1e24e html validation fixes:
- escape & in urls (also clean up cgi url generation)
 - since markdown wraps inlined pages in <p></p>, close and re-open
   the paragraph tags when generating the embedded html
 - added XHTML 1.0 doctypes to templates
 - fixed <hr /> and <br /> in templates
 - add an alt attribute to inline images, based on the WikiLink to the
   image. Allows things like [[my_image|img.png]] to customise alt text.
2006-03-29 03:18:21 +00:00
joey 0a95ac2144 Improved handling of wikilinks containing characters that are not allowed
in filenames. Now converts to valid filenames automatically.

Note, need to --refresh your wiki after updating to this version, if you
use any pages with __nn__ in their names.
2006-03-29 02:14:55 +00:00
joey b5656f595d Change the name of the session cookie. This will avoid problems with
multiple wikis on the same host.
2006-03-29 00:21:57 +00:00
joey d9f1b12149 support [[linktext|pagename]] links 2006-03-28 23:31:53 +00:00
joey d73574e19f There was a bug that [[inline archive="yes]] created an RSS link, but no feed.
Fixed in the easiest way by creating an RSS feed for archive pages (it will
include only a limited number of items, not everything).

Alternative fix would be to track separately which pages are archives and
which not, and only create feeds for non-archives.
2006-03-28 23:06:28 +00:00
joey bce9a327c3 Put in a quick fix for a bug involving page preview while creating a page
that caused the page location to be changed to a subdir. This is not a very
good fix.
2006-03-28 22:56:56 +00:00
joey ffc0be87d7 add --refresh and make it with with --setup 2006-03-26 05:08:41 +00:00
joey da1f96550e don't keep the wiki locked while rendering recentchanges 2006-03-26 04:32:41 +00:00
joey 7b8a14b751 fix rss url in nested pages 2006-03-26 03:33:49 +00:00
joey bb8096264e don't escape "/" in title when making a blog entry, allow creating a subdir 2006-03-26 02:49:34 +00:00