Skip to content

[Repo Assist] Add /// doc comments to key modules (batch 1 of #1035)#1037

Merged
dsyme merged 2 commits intomainfrom
repo-assist/issue-1035-comment-code-batch1-f6345f4f6ded4063
Feb 26, 2026
Merged

[Repo Assist] Add /// doc comments to key modules (batch 1 of #1035)#1037
dsyme merged 2 commits intomainfrom
repo-assist/issue-1035-comment-code-batch1-f6345f4f6ded4063

Conversation

@github-actions
Copy link
Contributor

🤖 This PR was created by Repo Assist, an automated AI assistant.

Part of #1035 — "Comment all the code in the repository".

Summary

This is the first batch of /// documentation comments added to files with zero or minimal existing documentation. It covers 11 files across the codebase:

File Before Description
FSharp.Formatting.Common/Range.fs 0 comments MarkdownRange public struct + MarkdownRange module
FSharp.Formatting.Common/Log.fs 0 comments Internal trace logging helpers
FSharp.Formatting.Common/Menu.fs 0 comments Navigation menu HTML generation
FSharp.Formatting.Common/PageContentList.fs 3 comments Page ToC builder from rendered HTML
FSharp.Formatting.Markdown/MarkdownFormatting.fs 0 comments Markdown-to-Markdown re-serializer
FSharp.Formatting.Markdown/MarkdownModel.fs partially commented Added Dsl module docs, MarkdownPatterns type/AP docs, MarkdownParseOptions enum member docs
FSharp.Formatting.CodeFormat/Constants.fs 0 comments CSS class name constants for syntax highlighting
FSharp.Formatting.ApiDocs/GenerateSearchIndex.fs 0 comments Search index builder
FSharp.Formatting.ApiDocs/Categorise.fs 0 comments Category grouping/sorting for entities and members
fsdocs-tool/Options.fs 0 comments Shared fsdocs CLI utilities
fsdocs-tool/Program.fs 0 comments fsdocs entry point

Comment style followed

  • Public types/members: proper XML doc /// <summary>...</summary> comments
  • Internal items: succinct single-line /// ... comments
  • No unnecessary comments were added to self-evident code

Test Status

Build: ✅ dotnet build FSharp.Formatting.sln --configuration Release — succeeded with 0 errors
Format: ✅ dotnet fantomas ... — all 11 source files pass Fantomas check

What's next (future batches)

Larger files needing comments next:

  • CrossReferenceResolver.fs (367 lines, 0 comments)

  • GenerateHtml.fs (644 lines, 2 comments)

  • GenerateMarkdown.fs (350 lines, 1 comment)

  • PynbModel.fs (208 lines, 0 comments)

  • HtmlModel.fs (737 lines, 2 comments)

  • SymbolReader.fs (1332 lines, 12 comments)

  • BuildCommand.fs (1855 lines, 8 comments)

  • Fixes Comment all the code in the repository #1035

Generated by Repo Assist for issue #1035

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@afb00b92a9514fee9a14c583f059a03d05738f70

Add XML doc and /// comments to 11 files with zero or minimal
documentation:
- Range.fs: MarkdownRange public type and module
- Log.fs: internal tracing helpers
- Menu.fs: navigation menu generation
- PageContentList.fs: table-of-contents builder
- MarkdownFormatting.fs: markdown re-serialization
- MarkdownModel.fs: Dsl module + MarkdownPatterns types/active patterns
- Constants.fs: CSS token class name constants
- GenerateSearchIndex.fs: search index builder
- Categorise.fs: entity/member category grouping
- Options.fs: fsdocs CLI shared utilities
- Program.fs: fsdocs entry point

Part of the ongoing effort tracked in #1035.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comment all the code in the repository

1 participant