look for wmd/wmd.js
authorJoey Hess <joey@gnu.kitenet.net>
Sun, 8 Mar 2009 00:22:27 +0000 (19:22 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Sun, 8 Mar 2009 00:23:38 +0000 (19:23 -0500)
This means that the underlay needs to have a wmd/wmd/wmd.js,
which is a trifle weird, but it isolates all the wmd stuff in a
single wmd subdirectory of the built wiki. The wmd/images creating
a toplevel images directory was particularly bad.

IkiWiki/Plugin/wmd.pm
doc/plugins/wmd.mdwn

index 9e9f17f7f635edc87265f8b9be1e1fdbb99a1390..bdbcecc069d5777872042de178f4b4cbc6de0559 100644 (file)
@@ -38,7 +38,7 @@ sub include_javascript ($;$) {
        my $page=shift;
        my $absolute=shift;
        
-       return '<script src="'.urlto("wmd.js", $page, $absolute).
+       return '<script src="'.urlto("wmd/wmd.js", $page, $absolute).
                '" type="text/javascript"></script>'."\n";
 }
 
index 31a508cdb7d71483142f98db21c223d86bdb0c12..dc9a307032b12c8dbe7113d359e4cdbf242ff50b 100644 (file)
@@ -6,10 +6,11 @@
 
 To use the plugin, you will need to install WMD. Download the [WMD
 source](http://wmd-editor.com/downloads/wmd-1.0.1.zip).  In that zip file
-you'll find a few example html files, a readme and `wmd` directory.  Move the
-`wmd` directory into the ikiwiki `underlaydir` directory (ie
-`/usr/share/ikiwiki/`).  You should now have a `wmd/wmd.js` file as well as
-some other javascript files and an images directory in the same place.
+you'll find a few example html files, a readme and `wmd` directory.  Create
+a 'wmd' subdirectory in the ikiwiki `underlaydir` directory (ie `sudo mkdir
+/usr/share/ikiwiki/wmd`). Move the `wmd` directory into the directory you
+made. You should now have a `wmd/wmd/wmd.js` file as well as some other
+javascript files and an images directory in the same place.
 
 Note that the WMD plugin does **not** handle ikiwiki directives.  For this
 reason the normal `preview` button remains.