mirror of
https://github.com/RGBCube/GitHubWrapper
synced 2025-06-11 02:12:08 +00:00
'Refactored by Sourcery'
This commit is contained in:
parent
72df282684
commit
e0032900a6
5 changed files with 24 additions and 26 deletions
|
@ -27,9 +27,10 @@ class DPYStandaloneHTMLBuilder(StandaloneHTMLBuilder):
|
|||
# the total count of lines for each index letter, used to distribute
|
||||
# the entries into two columns
|
||||
genindex = IndexEntries(self.env).create_index(self, group_entries=False) # type: ignore
|
||||
indexcounts = []
|
||||
for _k, entries in genindex:
|
||||
indexcounts.append(sum(1 + len(subitems) for _, (_, subitems, _) in entries))
|
||||
indexcounts = [
|
||||
sum(1 + len(subitems) for _, (_, subitems, _) in entries)
|
||||
for _k, entries in genindex
|
||||
]
|
||||
|
||||
genindexcontext = {
|
||||
'genindexentries': genindex,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue