We've been using Hologram and are pleased with how extensible it is. We've written a custom renderer that parses Ruby files, but DocParser's supported file extensions are hard-coded in a constant. So far we've been monkey patching .rb into the array to get by. These changes allow additional file extensions to be included in the parse through a config setting.
Summary of change:
Renamed SUPPORTED_EXTENSIONS to DEFAULT_SUPPORTED_EXTENSIONS. The array of supported extensions is built in DocParser's initialization.
Adding functionality somewhat requested in #196.
We've been using Hologram and are pleased with how extensible it is. We've written a custom renderer that parses Ruby files, but DocParser's supported file extensions are hard-coded in a constant. So far we've been monkey patching
.rb
into the array to get by. These changes allow additional file extensions to be included in the parse through a config setting.Summary of change:
Renamed
SUPPORTED_EXTENSIONS
toDEFAULT_SUPPORTED_EXTENSIONS
. The array of supported extensions is built in DocParser's initialization.