Skip to content

Conversation

@konard
Copy link
Member

@konard konard commented Sep 14, 2025

Summary

  • Fixed DocFX indexer comments inheritance issue by removing problematic XML <include> tags
  • Replaced all <include> references to external XML files with proper <inheritdoc/> tags
  • DocFX does not properly support XML <include> tags for documentation inheritance as mentioned in dotnet/docfx#2328

Changes Made

Fixed documentation in the following files by removing problematic <include> tags:

Indexer Documentation

  • DirectMemoryAsArrayMemoryAdapter.cs: Fixed indexer, Size, and Pointer properties
  • ArrayMemory.cs: Fixed indexer and Size property
  • FileArrayMemory.cs: Fixed indexer and Size property

Property Documentation

  • ResizableDirectMemoryBase.cs: Fixed Size, Pointer, ReservedCapacity, and UsedCapacity properties

Method Documentation

  • FileMappedResizableDirectMemory.cs: Fixed OnReservedCapacityChanged and DisposePointer methods
  • HeapResizableDirectMemory.cs: Fixed OnReservedCapacityChanged and DisposePointer methods

Solution Approach

The issue was caused by the combination of /// <inheritdoc/> tags with /// <include file='...'> tags. DocFX handles standard <inheritdoc/> tags properly but fails to process the external XML file references from <include> tags.

By removing the <include> tags and relying solely on <inheritdoc/>, the documentation inheritance now works correctly as the base interfaces (like IArrayMemory<TElement>) already contain proper XML documentation.

Test Results

  • ✅ Build passes with no errors
  • ✅ All existing tests continue to pass
  • ✅ Documentation generation should now work properly for indexers

Resolves #16

🤖 Generated with Claude Code

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

Issue: #16
@konard konard self-assigned this Sep 14, 2025
…e tags

DocFX does not properly support XML include tags for documentation inheritance.
This commit replaces all problematic include tags with proper inheritdoc tags.

Fixed files:
- DirectMemoryAsArrayMemoryAdapter.cs: Fixed indexer documentation
- ArrayMemory.cs: Fixed indexer and Size property documentation
- FileArrayMemory.cs: Fixed indexer and Size property documentation
- ResizableDirectMemoryBase.cs: Fixed Size, Pointer, ReservedCapacity, and UsedCapacity properties
- FileMappedResizableDirectMemory.cs: Fixed OnReservedCapacityChanged and DisposePointer methods
- HeapResizableDirectMemory.cs: Fixed OnReservedCapacityChanged and DisposePointer methods

Resolves issue #16: DocFX fails to inherit indexer comments

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

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] DocFX fails to inherit indexer comments Fix DocFX indexer comments inheritance by removing problematic include tags Sep 14, 2025
@konard konard marked this pull request as ready for review September 14, 2025 08:52
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.

DocFX fails to inherit indexer comments

2 participants