Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sphinxdocs/src/sphinx_bzl/bzl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1463,6 +1463,8 @@ class _BzlDomain(domains.Domain):
# :obj:.
# NOTE: We also use these object types for categorizing things in the
# generated index page.
# NOTE: The object type keys control what object types are recognized
# in inventory files.
object_types = {
"arg": domains.ObjType("arg", "arg", "obj"), # macro/function arg
"aspect": domains.ObjType("aspect", "aspect", "obj"),
Expand All @@ -1486,6 +1488,8 @@ class _BzlDomain(domains.Domain):
# types are objects that have a constructor and methods/attrs
"type": domains.ObjType("type", "type", "obj"),
"typedef": domains.ObjType("typedef", "typedef", "type", "obj"),
# generic objs usually come from inventories
"obj": domains.ObjType("object", "obj")
}

# This controls:
Expand Down