dotnet / dotnet/docfx

[Bug] Orphaned Namespace Links

Open
#11,060 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

Docfx creates a link for each part of a namespace, even if the overview page for a namespace does not exist, because it contains no members.

**To Reproduce**

1. Create a .NET project with a class Dummy in Namespace X.Y.Z.
2. Building a website with Docfx creates a page for the class Dummy and mentions the namespace X.Y.Z correctly.
3. Clicking on X or Y results in an HTTP 404 Not Found.

**Expected behavior**
Namespaces without members should not be used as link targets.

**Context:**
- OS: Windows, Ubuntu
- Docfx version: 2.78.5
- .NET 10

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.