Skip to content

Commit a449992

Browse files
committed
bugfix
1 parent eb46784 commit a449992

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

doc/sphinxext/related_software.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ def _get_mapping(packages):
144144
mapping[pkg] = tuple([x.strip() for x in categories.split(",")])
145145
# unpack the tuples to make a single sequence of (unique) categories
146146
categories = sorted(set([cat for cats in mapping.values() for cat in cats]))
147-
# Use real categaroy name instead of short names
148-
categories = [cat_names[cat_shortName] for cat_shortName in categories]
149147
# put "other" last
150148
if "Other" in categories:
151149
categories.remove("Other")
@@ -260,7 +258,8 @@ def run(self):
260258
# iterate over category, packages
261259
for category, packages in cat_to_pkgs.items():
262260
title = nodes.paragraph()
263-
title += nodes.strong(text=category)
261+
# Use real category name instead of short names
262+
title += nodes.strong(text=cat_names[category])
264263
my_section.append(title)
265264
this_list = nodes.bullet_list(bullet="*")
266265

0 commit comments

Comments
 (0)