[New Tool] add <summary> links (xml -> docfx) #7458
Replies: 3 comments 5 replies
-
Note: one of the major drawbacks/issues of this is I wish there was a better place to put the link than in the |
Beta Was this translation helpful? Give feedback.
-
Could make an MSBuild task that reads the xrefmap generated by DocFX and edits the xml file generated by the C# compiler, before it is packed for NuGet. |
Beta Was this translation helpful? Give feedback.
-
I'm not a fan of this at all. The entire proposal is a workaround for a completely broken feature (F1 should work, but doesn't), and clutters up Quick Info with links that should already work. |
Beta Was this translation helpful? Give feedback.
-
The BCL has a feature that when you press
F1
in Visual Studio on a code member, it will take you to MS Docs for that member. We currently don't have a feature like that for custom libraries. But we could...I wish there was a tool that would update the XML docs of every member in a code base to link to the code member in DocFx.
For example, if I have the following:
And I happen to be using
docfx
: https://zacharypatten.github.io/Towel/api/Towel.ICloneable-1.html#Towel_ICloneable_1_CloneA link could be added in the
<summary>
of each code member in the source code to the member in the DocFx output:Here is what it looks like from the Visual Studio UI:
This is also be supported in Visual Studio Code:
This would be especially helpful to guide people use nuget packages to the documentation for the nuget package.
The problem is that adding all those links manually to every code member is extremely tedious... We need a tool!
If we just make a tool that would automatically add all these links for us, it would speed up the process and prevent user error, as well as automatically update when code members are renamed/moved. Like, if there was a
docfx --addOrUpdateSummaryLinks true --urlBase https://zacharypatten.github.io/Towel/api/
command, it would be amazing. :)Beta Was this translation helpful? Give feedback.
All reactions