I have a working minimal implementation letting the rst renderer resolve undefined native rST links to ikiwiki pages. I have posted it as one patch at:
Right now it changes rendering so that undefined pages (previous errors) are resolved to either ikiwiki pages or link to "#". It could be changed (trivially) so that undefined pages give the same error as before. Since it only resolves links that would previously error out, impact on current installations should be minimal.
We resolve rST links without definition, we don't help resolving defined relative links, so we don't support specifying link name and target separately.
Many other issues with rST are of course unresolved, but some might be solved by implementing custom rST directives (which is a supported extension mechanism).
Patch follows:
----
<pre>
From 486fd79e520da1d462f00f40e7a90ab07e9c6fdf Mon Sep 17 00:00:00 2001
From: Ulrik Sverdrup <ulrik.sverdrup@gmail.com>
Date: Thu, 17 Sep 2009 15:18:50 +0200
Subject: [PATCH] rst: Resolve native reStructuredText links to ikiwiki pages
Links in rST use syntax `Like This`_ or OneWordLink_, and are
generally used for relative or absolue links, with an auxiliary
definition:
.. _`Like This`: http://ikiwiki.info
.. _OneWordLink: relative
We can hook into docutils to resolve unresolved links so that rST
links without definition can be resolved to wiki pages. This enables
WikiLink_ to link to [[WikiLink]] (if no .. _WikiLink is specified).
Comparing to Ikiwiki's wikilinks
[[blogging|blog]] specifies a link to the page blog, with the name
blogging. In rST we should use blogging_
.. _blogging: blog
*However*, note that this patch does not hook into this. What we
resolve in this patch is finding the appropriate "_blogging" if it is