Fix DocFX configuration and add automatic light/dark theme support#67
Merged
Chris-Wolfgang merged 5 commits intodevelopfrom Feb 3, 2026
Merged
Conversation
Co-authored-by: Chris-Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update docfx.yaml to include method documentation
Fix DocFX configuration to generate complete API documentation
Feb 3, 2026
Co-authored-by: Chris-Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com>
Copilot
AI
changed the title
Fix DocFX configuration to generate complete API documentation
Add automatic light/dark theme support to DocFX documentation
Feb 3, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates DocFX configuration so the generated documentation site uses the modern template’s built-in light/dark/auto theme behavior, and cleans up/ignores generated output.
Changes:
- Reordered DocFX templates (
defaultthenmodern) so modern styling/theme switching takes precedence. - Updated DocFX metadata generation to point at the real library
.csprojand targetnet8.0; set documentation site name/title metadata. - Removed a generated
_site/manifest.jsonfile and added DocFX output folders to.gitignore.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docfx_project/docfx.json | Points DocFX at the actual project, pins metadata generation TFM, and adjusts template order/metadata to enable modern theme behavior. |
| docfx_project/_site/manifest.json | Removes generated build artifact from the repo. |
| .gitignore | Ensures DocFX build outputs (_site, api, obj) aren’t tracked going forward. |
Co-authored-by: Chris-Wolfgang <210299580+Chris-Wolfgang@users.noreply.github.com>
Copilot
AI
changed the title
Add automatic light/dark theme support to DocFX documentation
Fix DocFX configuration and add automatic light/dark theme support
Feb 3, 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.
Description
Fixes the DocFX documentation generation configuration and adds automatic light/dark theme switching based on system preference with manual override.
Type of change
How Has This Been Tested?
docfx metadata && docfx buildprefers-color-schemeChecklist
Screenshots (if applicable)
Light Theme (System Preference or Manual)

Dark Theme (System Preference or Manual)

API Documentation - Dark Mode

API Documentation - Light Mode

Additional context
DocFX Configuration Changes:
src/<path>/<project>.csprojto actual pathsrc/Wolfgang.Extensions.IAsyncEnumerable/Wolfgang.Extensions.IAsyncEnumerable.csprojTargetFramework: net8.0property to resolve multi-target build issues_appNameto "IAsyncEnumerable Extensions" and_appTitleto "Wolfgang.Extensions.IAsyncEnumerable Documentation"["modern", "default"]to["default", "modern"]to enable modern theme featuresBuild Output Management:
_site/manifest.jsonfrom repositorydocfx_project/_site/,docfx_project/api/, anddocfx_project/obj/to .gitignoreTheme Behavior:
prefers-color-schemesettingdata-bs-themeattributeThese changes enable DocFX to properly generate API documentation with method descriptions, parameters, return values, and exceptions, while providing a modern GitHub-style theme with automatic light/dark mode support.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.