Skip to content

[Feature Request] Nest types declared within classes in TOC #11068

Description

@crowbait

Imagine a class defining another type within:

class Operation {
    public enum OperationState { Pending, Completed }
}

Currently, the navigation sidebar will list both Operation and Operation.OperationState as siblings. This doesn't really match the true relationship, where OperationState is not an equal of Operation, but has more of a "subordinate" relationship.
A type declared within a class is defined in a way that makes it relevant within the context of the class, but not outside of it.
Also, very subjectively, I prefer nested lists over long ones.

I'd propose a config setting, "nestClassSubTypes", for example. Setting this option would nest sub-types (recursively) under the class they are defined in. Clicking the "parent" class entry would still open the normal class page, so no additional TOC entry or page files should be generated.

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