Skip to content

[Bug] "Edit this page" link is missing when source-generator is used #11174

Open

Description

@bkoelman

Describe the bug
The "Edit this page" link is missing in API documentation for a class that uses a source generator (such as the logger or regex generator that ship with .NET). This is likely because the wrong source file is inferred, which is blacklisted during HTML generation.

This can be seen in the generated .yml file:

### YamlMime:ManagedReference
items:
- uid: JsonApiDotNetCore.Configuration.ResourceGraphBuilder
  ...
    source:
    id: ResourceGraphBuilder
    path: D:\MyProjectPath\obj\Release\net10.0\Microsoft.Extensions.Logging.Generators\Microsoft.Extensions.Logging.Generators.LoggerMessageGenerator\LoggerMessage.g.cs
    startLine: 246

To reproduce, use the steps described in #11153 and search for ResourceGraphBuilder in the API browser.

Context (please complete the following information):

  • OS: Windows
  • Docfx version: v2.80.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions