Conversation
Stamp the complete build-engine informational version in manifest.json for troubleshooting without changing generated HTML or page metadata. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This was referenced Sep 25, 2026
This was referenced Sep 25, 2026
Open
This was referenced Sep 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Record the build engine's full informational version in the top-level
docfx_versionproperty ofmanifest.json, including prerelease and commit information when present. Read the version from the executingDocfx.Buildassembly rather than the host application orDocfx.Plugins, so both CLI and library builds identify the engine that produced the output.The stamp is applied once after manifest merging and post-processing. Templates, page metadata, and generated HTML are unchanged. Both JSON serializers use the same property name, and older manifests without it remain readable.
This follows the earlier suggestion to stamp the manifest instead of every HTML file. Motivated by comparing builds while investigating #11153; this adds diagnostics and does not fix or close the layout issue.
Validation
DocumentBuilderTestcases pass on .NET 8 and .NET 10, including new coverage for empty, single-document, and grouped builds, both JSON serializers, older manifests, and unchanged HTML/raw models.docfx_versionexactly matching that CLI's--version, including the commit suffix, without stamping HTML.git diff --checkpass.Local validation used an isolated checkout at
da9bf7e0fwith the identical changed files. The only differences from this PR's base are the subsequent Markdig 1.4.0 and Jint 4.16.3 bumps, whose packages are not yet available in the approved local feed. This PR does not change dependencies; validation against those newer versions remains for CI.