Try an alternate method for templating each type's documentation

This uses a big nasty ERB template instead of a big nasty chain of string
appends. I'm honestly not 100% sure which is better.