The other subthread with Jarek reminded me that one of the options
could be to extract/fork the whole Darkfish generator instead of
monkey patching. But Darkfish is pretty complex. We would probably not
avoided any issues.
Maybe it would be possible to just provide the subclass of Darkfish
generator as a single file, perhaps monkey patch the JSON index while
we're at it.
One can provide a different template to a generator and a different
generator to a template it seems from messing around with the RDoc CLI
and the extracting of the Darkfish template. That leads me to believe
that there is a way to do that from code. It would work kind of like
this: set the Darkfish template as default, modify the behavior to use
symlinks and whatnot. We wouldn't need to keep forked JS/HTML files in a
new package.
This would probably minimize required code to get it running.
IOW create a glue between darkfish, json index and RDoc that would make
it do what we want to instead of copying it all.
We would then create a tight dependency on those template files, but we
can write tests and then check for failures that would crop up via koschei.
Jarek
Vít