Skip to content

Fix references to types from Platform.Exceptions#94

Open
konard wants to merge 3 commits intomainfrom
issue-38-0bc9cf9f
Open

Fix references to types from Platform.Exceptions#94
konard wants to merge 3 commits intomainfrom
issue-38-0bc9cf9f

Conversation

@konard
Copy link
Member

@konard konard commented Sep 14, 2025

Summary

  • Fixed cross-references to Platform.Exceptions types in documentation generation
  • Added docfx.json configuration with xrefService pointing to Platform.Exceptions xrefmap
  • Configured proper target framework (net8) and supporting files for documentation build

Problem

The documentation at https://linksplatform.github.io/Disposables/api/Platform.Disposables.EnsureExtensions.html had broken references to Platform.Exceptions types like EnsureAlwaysExtensionRoot and EnsureOnDebugExtensionRoot. These appeared as plain text instead of proper cross-reference links.

Solution

Created a local docfx.json configuration that:

  1. Adds Platform.Exceptions xref service: Points to https://linksplatform.github.io/Exceptions/csharp/xrefmap.yml to resolve external type references
  2. Fixes target framework: Uses net8 to match the project configuration (was defaulting to netstandard2.0)
  3. Includes proper build configuration: Added Microsoft's xref service alongside Platform.Exceptions for comprehensive cross-reference resolution
  4. Supporting files: Created filter.yml and toc.yml for proper documentation structure

Files Changed

  • docfx.json - Main DocFX configuration with xrefService setup
  • filter.yml - Filters out test projects from API documentation
  • toc.yml - Table of contents configuration for navigation

Test Plan

  • Verified xrefmap exists at Platform.Exceptions URL and contains required types
  • Confirmed local DocFX metadata generation succeeds with net8 target
  • Validated documentation builds without errors
  • Cross-references are marked as <span class="xref"> (ready for xref resolution)

The xref resolution will be properly applied when documentation is built by the CI pipeline with internet access to fetch external references.

Fixes #38

🤖 Generated with Claude Code

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #38
@konard konard self-assigned this Sep 14, 2025
Added docfx.json configuration with Platform.Exceptions xref service to properly resolve cross-references in documentation.

- Add docfx.json with xrefService configuration pointing to Platform.Exceptions xrefmap
- Configure target framework as net8 to match project settings
- Add filter.yml to exclude test projects from documentation
- Add toc.yml for proper navigation structure
- Ensure Platform.Exceptions.ExtensionRoots types are properly linked in generated docs

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] Fix references to types from Platform.Exceptions Fix references to types from Platform.Exceptions Sep 14, 2025
@konard konard marked this pull request as ready for review September 14, 2025 04:23
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.

Fix references to types from Platform.Exceptions

1 participant