Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to generate a documentation wiki for github from my XML documentation comments in C#? [closed]

I want to generate API documentation for my open source project on Github. I'd like to create them automatically from my XML Documentation Comments in my C# projects. My feeble googling has turned up bubkiss. Is there a way to do this?

I'd prefer it be in Github-style Markdown.

like image 796
Ben Lesh Avatar asked Jun 28 '12 13:06

Ben Lesh


4 Answers

Here's an online C# XML doc to Markdown converter: http://varus.io/vsdoc-2-md/

It is based on @formixian's algorithm.

like image 157
Jaanus Varus Avatar answered Nov 05 '22 13:11

Jaanus Varus


After searching around a bit, I found this gem of a gist:

Generates Markdown from VS XML documentation file

It prints to the C# XML -> markdown to the console. I'm sure it can be refined further, but this is a really great start. I've tested it, and it's totally working.

like image 23
Xaero Degreaz Avatar answered Nov 05 '22 12:11

Xaero Degreaz


I ended up using Sandcastle to generate plain HTML and using that. Inevitably, I'll just write my own parser or a custom template for Sandcastle.

I didn't like the learning curve for Doxygen or QDoc.

like image 5
Ben Lesh Avatar answered Nov 05 '22 13:11

Ben Lesh


I would recommend Doxygen. By configuring Doxygen using the configure files and XSLT you can pretty much do anything with it. http://www.doxygen.nl/

Set the source files and output in the configuration files, then use XSLT to customize the output.

For Doxygen there is a parser tool (http://code.google.com/p/doxygenxmlparser/) already prepared to do much of the work with C#

if(youDoNotLikeThisIdea == true) Another tool that is highly configurable would be QDoc (part of the Qt API) @ http://qt-project.org. Of course, using QDoc would require you to build Qt and QDoc in particular.

Good luck!

like image 3
miracules Avatar answered Nov 05 '22 12:11

miracules