Repository navigation
Closed
dotnet/dotnet-api-docs
#5078Labels
📚 documentationOpen issue here - https://github.com/dotnet/dotnet-api-docs/issues
Description
As part of the 6.0 goals, we want to finish documenting APIs that were shipped without triple slash documentation in previous .NET Core versions.
This work item is part of:
- https://github.com/dotnet/core/issues/5410 Epic: Make sure .NET libraries are continuously improved.
- Developers can access documentation for all .NET Core/.NET 5 APIs runtime#43849 API documentation debt
We would like the WinForms team to help with this effort by addressing the APIs in the list below, which are missing some or all of their documentation.
Make sure to follow the documentation guidelines defined in the dotnet-api-docs wiki:
https://github.com/dotnet/dotnet-api-docs/wiki
Please add me as a PR reviewer.
Community contributions are welcome.
System.Windows.Forms undocumented APIs
cc @merriemcgaw
Metadata
Metadata
Assignees
Labels
📚 documentationOpen issue here - https://github.com/dotnet/dotnet-api-docs/issues
Activity
RussKie commentedon Oct 28, 2020
@carlossanlop a number of API that are listed in your report are annotated, and have been since their addition to the codebase. E.g. almost all of the
ListView,TaskDialogandTextRendererrelated are false positives - those API have been extensively annotated at the time we accepted respective PRs (#3155, #1133 and #3711 respectively).I would think that our xml-docs weren't correctly ingested into the docs repo, which led to this. In the interest of time can you please arrange ingestion of the latest 5.0 build artifacts, so we can concentrate only on the missing docs.
Thank you.
carlossanlop commentedon Oct 28, 2020
Thank you for the information, @RussKie . The PRs #3155, #1133 and #3711 merged triple slash comments but haven't yet been ported to dotnet-api-docs. You can use DocsPortingTool to do so, then submit a PR. After that is merged, I will be able to get an updated report with the remaining undoc APIs in WinForms.
If you get a chance to do the porting yourself, that would be great. If not, let me know, I could eventually do it myself, but not right away.
AdamYoblick commentedon Nov 2, 2020
Thanks @carlossanlop , I'll take a look at this and let you know if I get stuck 😄
AdamYoblick commentedon Nov 3, 2020
@carlossanlop I've run the following command line:
I'm running into an issue that I'm not sure how to fix through the tool. The error is this:
I checked the code and it looks like a param called
enabledis in the constructor. I would have expected the tool to add this param to the docs, but that doesn't seem to be a choice here. It only lets me choose a param from the existing ones, or ignore this param. Is there no way to ADD this param to the docs, or am I misunderstanding what's going on here?RussKie commentedon Nov 3, 2020
@AdamYoblick I think this indicates an omission in our code - we missing docs for
enabled:winforms/src/System.Windows.Forms/src/System/Windows/Forms/TaskDialogButton.cs
Lines 67 to 77 in 1d8dba7
AdamYoblick commentedon Nov 3, 2020
RussKie commentedon Nov 3, 2020
Would be good to fix it - it will both unblock you in this exercise, and we'll get us to the "0" in the docs register :) Holler, if you need a hand.
AdamYoblick commentedon Nov 3, 2020
Will do Igor. I'll run the docs tool to find all the missing triple slash comments, fix them, and get them into a PR into this repo. Once everyone is happy with that text, I'll re-generate the docs and create a PR into the docs repo.
AdamYoblick commentedon Nov 3, 2020
@RussKie @JeremyKuhne There are lots of triple slash docs missing from methods in TextRenderer.cs. Most of them are on overloads. I will fix up methods that are missing specific params, but I think we need a separate task to go back and fix large blocks of comments.
Jeremy, do you mind taking that task? I think you understand some of these params better than I do. 😄
carlossanlop commentedon Nov 3, 2020
@AdamYoblick sorry for the late reply. I believe @RussKie gave you the answer. The tool is able to help you figure out what the right parameter is, based on the information it finds on both the intellisense xml and the dotnet-api-docs xml.
Feel free to reach out to me directly on Teams if you need a more immediate answer.
JeremyKuhne commentedon Nov 3, 2020
@AdamYoblick I added the XML comments for the new overloads- the existing ones all have documentation so I didn't bother adding new XML comments there. For the new overloads (Span) I just copied stuff from docs and tweaked where needed.
AdamYoblick commentedon Nov 4, 2020
I merged in the PR to fix most of the debt. We still have some debt in the form of suggestions from the docs team, which is tracked with #4194