Description of the bug
In these two spots, you should pass role="type", “typealias” is neither a role that exists nor a valid objtype
There’s also a bigger bug in mkdocstrings (mkdocstrings/mkdocstrings#826), and probably zensical: role != objtype:
https://github.com/mkdocstrings/mkdocstrings/blob/9a11dcb8e9b39ff6e1a22abdd362350de4e68e9f/src/mkdocstrings/_internal/inventory.py#L64
e.g. the role attr refers to objtype “attribute”,
To Reproduce
document this:
the objects.inv you create will contain broken entries
Full traceback
N/A
Expected behavior
type statements create type entries in object.inv (not typealias)
- attributes create
attribute entries in objects.inv (not attr, that’s the role used to refer to them)
Environment information
v2.0.8
Additional context
N/A
Description of the bug
In these two spots, you should pass
role="type", “typealias” is neither a role that exists nor a valid objtypepython/src/mkdocstrings_handlers/python/templates/material/_base/type_alias.html.jinja
Line 38 in 8125b0d
python/src/mkdocstrings_handlers/python/templates/material/_base/type_alias.html.jinja
Line 86 in 8125b0d
There’s also a bigger bug in
mkdocstrings(mkdocstrings/mkdocstrings#826), and probably zensical:role!=objtype:https://github.com/mkdocstrings/mkdocstrings/blob/9a11dcb8e9b39ff6e1a22abdd362350de4e68e9f/src/mkdocstrings/_internal/inventory.py#L64
e.g. the role
attrrefers to objtype “attribute”,To Reproduce
document this:
the objects.inv you create will contain broken entries
Full traceback
N/A
Expected behavior
typestatements createtypeentries inobject.inv(nottypealias)attributeentries inobjects.inv(notattr, that’s the role used to refer to them)Environment information
v2.0.8
Additional context
N/A