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
7 changes: 7 additions & 0 deletions bot/exts/info/doc/_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@

log = get_logger(__name__)

# groups to ignore from parsing
IGNORE_GROUPS = (
"std:doc",
)

# symbols with a group contained here will get the group prefixed on duplicates
FORCE_PREFIX_GROUPS = (
"term",
Expand Down Expand Up @@ -80,6 +85,8 @@ def update_single(self, package_name: str, base_url: str, inventory: InventoryDi

for group, items in inventory.items():
for symbol_name, relative_doc_url in items:
if group in IGNORE_GROUPS:
continue

# e.g. get 'class' from 'py:class'
group_name = group.split(":")[1]
Expand Down