How to use it for a documentation generator? #90
-
Hi, first all, great job! I got here through the article you wrote for MSDN. Currently, I'm using
Is that possible at all, or should I really read the string response from |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi. Thanks for reading the MSDN article and checking out the Towel repo. :)
Currently I only have methods in Towel to get the XML docs in XML string format. Keep in mind that XML docs support much more than just the method and parameter summaries. There are If you don't care about all of those additional XML nodes and all you want is the
I assume you mean that you want a |
Beta Was this translation helpful? Give feedback.
-
Also, since you titled the discussion...
...I just wanted to link to an example where another repo is using the
That probably won't help you specifically since you want the data in JSON, but it may help others who stumble across this discussion. |
Beta Was this translation helpful? Give feedback.
-
Hi Zachary, thank you for your answer.
I do understand that, I probably didn't explain myself in the best way. It would be nice to have those nodes being returned as text, maybe as a public class ItemDocumentation
{
public string Summary {get; set;} // Clean summary with only text, no nodes.
public string RawData {get; set;} // What is currently returned today.
public Dictionary<string, string> Parameters {get;set;}
public Dictionary<string, string> ExtraData {get;set;}
} This is just an idea.
Exactly! Currently, I'm doing that by hand, it would be nice to include that in the lib:
There are still some things missing there (WIP), like checking for Thank you also for providing me with the project's links. I'll definitely take a look at it! Thanks and congrats on the project again! |
Beta Was this translation helpful? Give feedback.
Hi. Thanks for reading the MSDN article and checking out the Towel repo. :)
Currently I only have methods in Towel to get the XML docs in XML string format. Keep in mind that XML docs support much more than just the method and parameter summaries. There are
<returns>
,<exceptions>
,<remarks>
,<typeparamref>
,<paramref>
,<see>
,<br/>
,<code>
, etc. You can see more of the nodes here: https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/xmldoc/recommended-tags. So if you want to convert that into JSON instead of XML, you need a way to represent all features in the JSON.If you don't care about all of those additional XML no…