docparser: fix repeated 'when'

The second when for :cursor_type_ref will never trigger, causing us to
error out on unknown typedef contents instead of going with the name
catch-all. Fix that.
docparser: require tempfile

We use it and were previously relying on Docurium to load it for us.
docparser: recursively create directories

If we want file a/b/c.h we want to make sure that we create a/ and a/b/
which Dir.mkdir doesn't do for us. Use FileUtils.mkdir_p instead.
Require redcarpet compat.
Possible extra line in README.
Merge pull request #20 from Therzok/master

Require redcarpet compat.
Merge branch 'master' into vendor-css
Make the CSS path relative

Instead of hard-coding libgit2's location, detect how deep the example
is and use a relative path, allowing for use in different projects.