Dne 26. 10. 22 v 16:50 Vít Ondruch napsal(a):
Dne 26. 10. 22 v 11:59 Jarek Prokop napsal(a):
> I am afraid we won't dodge monkey patching here due to the lack of
> parametrization of the documentation generator options.
I will need to experiment with this idea a bit.
One option to avoid the monkey patching is to convince RubyGems to load
the appropriate rubygems/rdoc.rb (but this is done via require_relative,
so this probably won't fly) or provide our own rdoc/rubygems_hook and
ensure it is loaded earlier then the original one (but this could mean
keeping our own copy :/).
We could also try to somehow modify the Gem.done_installing hooks and
remove the RDoc hook and replace it with ours.
Another option might be to provide additional generator, which would
override the 'rdoc' directory generated by Darkfish.
Just ideas .....
Vít