From: Vladimír Vondruš Date: Tue, 7 May 2019 22:28:24 +0000 (+0200) Subject: documentation/python: module tree showed expanders where not needed. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=8d73e658fd9bd8162e5fc3f495e1ebf55553431b;p=blog.git documentation/python: module tree showed expanders where not needed. What the heck was I doing there. --- diff --git a/documentation/python.py b/documentation/python.py index 97714ecd..3fea6eca 100755 --- a/documentation/python.py +++ b/documentation/python.py @@ -999,12 +999,12 @@ def run(basedir, config, templates): # Recurse into the tree and mark every node that has nested modules with # has_nestaable_children. def mark_nested_modules(list: List[IndexEntry]): - has_nestaable_children = False + has_nestable_children = False for i in list: if i.kind != 'module': continue - has_nestaable_children = True - mark_nested_modules(i.children) - return has_nestaable_children + has_nestable_children = True + i.has_nestable_children = mark_nested_modules(i.children) + return has_nestable_children mark_nested_modules(state.class_index) # Create module and class index diff --git a/documentation/templates/python/modules.html b/documentation/templates/python/modules.html index 0e8f614f..8264d2fc 100644 --- a/documentation/templates/python/modules.html +++ b/documentation/templates/python/modules.html @@ -5,7 +5,7 @@

Modules