sharpDox icon indicating copy to clipboard operation
sharpDox copied to clipboard

MD Generation

Open kentcb opened this issue 10 years ago • 6 comments

You know what would be freaking amazing? If sharpDox could generate GitHub-compatible markdown files. That way I could generate markdown from my API docs and commit it them to my repo, which would make them automatically browsable on GitHub.

Just a thought.

kentcb avatar Sep 25 '14 11:09 kentcb

I like the idea. I hope I get some time to implement the plugin. Would be a really nice addition.

geaz avatar Sep 30 '14 13:09 geaz

It would be even cooler if it could compile automatically to a full-static gh-pages site (using Jekyll?).

nikeee avatar Jan 07 '16 19:01 nikeee

Why not use the current HTML output for gh-pages? I am doing the same at http://sharpdox.de/en/doc/.

geaz avatar Jan 15 '16 07:01 geaz

I am working towards a combination of SharpDox and DocNet:

  1. Write custom stuff using DocNet
  2. Generate the API stuff to markdown using SharpDox
  3. DocNet will automatically include the reference documentation

For now the only downside I found in the markdown generation is that single line ode blocks are also decorated with ``` instead of `

Would you accept a PR that would fix this for single line code blocks?

For example, I want to be able to tell something is null.

GeertvanHorrik avatar Jun 12 '17 19:06 GeertvanHorrik

Sure, go for it :)

One other question: What feature of DocNet are you missing in sharpDox? Just want to know how I could improve the feature set in the upcoming version 👍

geaz avatar Jun 17 '17 16:06 geaz

Good point, not sure. I thought sharpdox was just for API docs and I already heavily invested in DocNet (although I must say most of the work was converting confluence => markdown). DocNet has a few nice features such as the alert boxes:

http://fransbouma.github.io/DocNet/markdownextensions.htm#alert-boxes

I've written a custom exporter so SharpDox can be used together with DoxNet:

https://github.com/CatenaLogic/SharpDox.Plugins.DocNet

It's still WIP but starts to take some shape:

http://docs.catelproject.com/vnext/reference/Catel.Serialization.Json/Catel/Runtime/Serialization/Json/CatelJsonConverter.htm

GeertvanHorrik avatar Jun 26 '17 12:06 GeertvanHorrik