Skip to content

Conversation

@BillWagner
Copy link
Member

@BillWagner BillWagner commented Jun 16, 2021

Rework the XML documentation section and move it into the language reference.

Notes for reviewers:

You should view the three new files under language-reference/xmldoc as all new content. They were taken from existing content, but substantially rearranged and rewritten. The samples and snippets were also consolidated and moved. The final code has a smaller set of samples, but each sample represents a typical scenario: documenting a class or record, inheriting docs from other locations, and generic classes and methods.

  • The older content was removed and redirects added to the new files.
  • A lengthy list of issues regarding XML comments were all addressed. (see list below)
  • Finally, clean repo was run to replace redirects and replace absolute links.

Fixes #4176: Examples and recommended content now include an href example for see and seealso.
Fixes #7622: This content is in the index for this section, which increases its findability. The title has also changed.
Fixes #9355: The examples now include a table for the list tag.
Fixes #15906: Note that para creates a double spaced paragraph. Use <br/> for single spacing.
Fixes #16204: The cref tag explains how to reference a generic type. The generic examples include an example.
Fixes #17326: Specify that inheritdoc for a type also inherits comments for all members.
Fixes #17625: No actual change. Verify that cref and Path are the only tags to specify the inherited source.
Fixes #17796: The introduction to "recommended tags" explains how to escape < and > in comments.
Fixes #18236: This is a duplicate of 18730, and 23533.
Fixes #18659: The "recommended tags" article now lists the relevant tags validated by the compiler.
Fixes #18730: The "recommended tags" article lists which tags are shown in intellisense.
Fixes #18818: Note that some tags cannot be nested, specifically the seealso tag.
Fixes #21885: point out that the <see> tag can provide alternative text.
Fixes #23533: Show examples of <inheritdoc> that use the path attribute to include only some tags.

Internal review site link See the entire section. This is the index.

@dotnet-bot dotnet-bot added this to the June 2021 milestone Jun 16, 2021
@BillWagner BillWagner force-pushed the move-xml-doc-section branch 2 times, most recently from b7eefc6 to 9fe0d79 Compare June 23, 2021 14:28
@BillWagner BillWagner force-pushed the move-xml-doc-section branch from 9fe0d79 to d8ee22f Compare June 28, 2021 21:29
@BillWagner BillWagner removed this from the June 2021 milestone Jul 1, 2021
@BillWagner BillWagner force-pushed the move-xml-doc-section branch 2 times, most recently from f5fce17 to 209b55b Compare July 9, 2021 14:48
@BillWagner BillWagner force-pushed the move-xml-doc-section branch 4 times, most recently from ca072cf to 21bb9a5 Compare July 16, 2021 15:57
Move content from all XML documentation files.

All the tag reference was combined, but not no other edits were made.
final draft of recommended tags
@BillWagner BillWagner force-pushed the move-xml-doc-section branch from 21bb9a5 to bf25907 Compare July 16, 2021 15:58
In this commit, I checked all open issues on the XML doc section and made sure they were addressed. Where they have not been, make updates to address them.
Some were incorrectly going to samples instead of the description of each tag.
Use the clean-repo tool to replace links that have been redirected.
Run the clean-repo tool to replace root links with relative links.
This is showing up in build warnings.
Two redirects weren't formatted correctly.

Fix those, and rerun clean-repo to get clean builds.
@BillWagner BillWagner marked this pull request as ready for review July 16, 2021 20:31
@BillWagner BillWagner requested a review from adegeo as a code owner July 16, 2021 20:31
@BillWagner BillWagner requested review from a team, IEvangelist, cartermp and gewarren as code owners July 16, 2021 20:31
@BillWagner BillWagner requested review from tdykstra and removed request for cartermp July 16, 2021 20:31
Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great!

Copy link
Contributor

@tdykstra tdykstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great work, a tremendous amount of text and code and all done extremely well. I noted some typos and some opportunities to improve readability - feel free to take or leave any of the suggestions and comments.

BillWagner and others added 4 commits July 17, 2021 09:20
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

4 participants