dotnet / dotnet/docfx

Cannot use fullName in inheritance and implements lists

Open
#3,769 6 comments 0 reactions 0 assignees View on GitHub
dotnet dotnet: csharp
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

**DocFX Version Used**: 2.40.4.0

**Template used**: `default` trying to customize it

**Steps to Reproduce**:
I would like the names in the `Inheritance` and `Implements` sections to be fully-qualified.
I have tried with a custom template like this (in `partials/class.header.tmpl.partial`):
```


{{__global.inheritance}}

{{#inheritance}}

{{/inheritance}}
{{fullName.0.value}}

{{#derivedClasses}}

{{/derivedClasses}}

```

This works for parent classes, but I am hitting very weird behavior in the child classes, where instead of the full name of the children I get the full name of the current class. The `default` template uses `specName` instead of `fullName` and everything works as expected, but I lose the namespace.

Why is that?

Is there another way to get fully-qualified `Inheritance` and `Implements` sections?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.