Skip to content

Provide a configuration for mapping inventory location #131

Closed
@felix-hilden

Description

@felix-hilden

From xarray-contrib/xarray-tutorial#85: libraries that lift classes up the module hierarchy are now required to override the __module__ of each class because we use the fully qualified name to figure out the canonical location of a class. In case they don't want to, we could easily provide configuration to map inventory locations to others. For example:

codeautolink_inventory_map: dict[str, str] = {
    "lib.sub.module.thing.Thing": "lib.Thing",
    "lib.mod.ReallyLongName": "lib.Alias",
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions