To get an idea of what we're trying to achieve here, see the Java 1.5 API docs. I don't think their choice or colors, borders, etc. is great, but the structure and cross linking is fairly nice.
The code that drives this is found in <workspace>/Source/DocGenerator.cobra. You'll find numerous TODO items in the doc string for the class as well as comments marked TODO in the code.
The compiler itself is a great test case for this:
- Code: Select all
cd <workspace>\Source
cobra -doc -files:files-to-compile.text
Also, if you want to revamp the structure of the generated HTML, feel free.
You'll become more familiar with the compiler's AST nodes which define Cobra programs, if that interests you.
Anyone willing to pursue this?