Extension:LocalFileSystem

What can this extension do?
It displays (currently only) restructured text files from a directory of the local file system (rendered to html of course) as a wiki page. It first checks if a page title (called by current request) exists in the wiki/DB and if this is not the case checks if available in the directory (which has to be set in the extension's code). All pages in the dir can be see on Special:LocalFileSystem

Currently this is a simple hack, I aim to extend it to check for different file formats, html, stx, txt, which on as default. I have to dive in further in the parser code and hooks. Anyone wanting to help is welcome.

The idea of the extension is simple and i think it's useful. My motivation was to make my old zwiki pages available in my mediawiki - unfortunately they are not linked internally - because they're CamelCased. Another thing which should be done.

This is my first extension and i am quite new to php so my code and style is not the best, sorry for that.

Usage
Link pages known to be in the filesystem DIR, as usual.

Installation
Download and install rst2html.py on your system, if not yet installed. It's part of | docutils

To install this extension, add the following to LocalSettings.php:

and put the code below in your extensions dir, named 'LocalFileSystem.php'.

User rights
To view the special page i invent the permission 'localfilesystem' which per default everybody has.