mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix module index cloud size calculation.
This commit is contained in:
@@ -340,7 +340,7 @@ class DocumentationApplication(object):
|
||||
most_frequent = heapq.nlargest(30, self.freqmodules.iteritems(),
|
||||
lambda x: x[1])
|
||||
if most_frequent:
|
||||
base_count = most_frequent[0][1]
|
||||
base_count = most_frequent[-1][1]
|
||||
most_frequent = [{
|
||||
'name': x[0],
|
||||
'size': 100 + math.log((x[1] - base_count) + 1) * 20,
|
||||
|
||||
Reference in New Issue
Block a user