I have some code for that somewhere.... I used to convert all internal
code to SGML, and then used DynaWeb to make it available online,
but with really, really good search capabilities. It was great as
a costing tool (how many places is fooXXX() called?)