Skip to content

Automate API toc.yml generation in DocFX#1645

Merged
clairernovotny merged 3 commits intouse-docfxfrom
copilot/sub-pr-1642
Nov 6, 2025
Merged

Automate API toc.yml generation in DocFX#1645
clairernovotny merged 3 commits intouse-docfxfrom
copilot/sub-pr-1642

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 6, 2025

Addresses feedback from #1642 to automate the API table of contents generation and ensure documentation stays synchronized with code changes.

Changes

  • Removed manual docs/api/toc.yml - DocFX now generates this automatically during the metadata phase based on assembly structure
  • Updated .gitignore - Removed exception for docs/api/toc.yml so all API YAML files are treated as generated artifacts
  • Updated docs/docfx.json - Removed exclusion of api/toc.yml from build content to allow auto-generated file to be used
  • Updated docs/api/index.md - Documented that the API reference is now fully auto-generated

The API navigation structure will now automatically reflect any new types, namespaces, or members added to the codebase without manual intervention.

Note: The docfx tool existence check mentioned in the feedback was already addressed in commit ca4b984 of #1642.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Address feedback on migrating docs site to DocFX Automate API toc.yml generation in DocFX Nov 6, 2025
Copilot AI requested a review from clairernovotny November 6, 2025 04:09
@clairernovotny clairernovotny marked this pull request as ready for review November 6, 2025 15:01
Copilot AI review requested due to automatic review settings November 6, 2025 15:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR transitions the API documentation table of contents from a manually maintained file to an automatically generated one. The change removes the static docs/api/toc.yml file (containing 388 lines of manually tracked API entries) and updates the DocFX configuration to enable automatic generation during the build process.

Key Changes:

  • Removed the DocFX exclude rule that prevented auto-generation of api/toc.yml
  • Deleted the manually maintained 388-line docs/api/toc.yml file
  • Updated documentation to clarify that the table of contents is auto-generated and stays in sync with the codebase

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
docs/docfx.json Removed the exclude property that was preventing auto-generation of api/toc.yml
docs/api/toc.yml Deleted the entire manually maintained table of contents file (388 lines)
docs/api/index.md Enhanced documentation to explain that the API reference and TOC are auto-generated using DocFX
.gitignore Removed the exception rule for docs/api/toc.yml, allowing it to be ignored like other auto-generated YAML files

@clairernovotny clairernovotny merged commit f05cc09 into use-docfx Nov 6, 2025
8 checks passed
@clairernovotny clairernovotny deleted the copilot/sub-pr-1642 branch November 6, 2025 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants