From 8d73e658fd9bd8162e5fc3f495e1ebf55553431b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 8 May 2019 00:28:24 +0200 Subject: [PATCH] documentation/python: module tree showed expanders where not needed. What the heck was I doing there. --- documentation/python.py | 8 ++++---- documentation/templates/python/modules.html | 2 +- documentation/test_python/inspect_string/classes.html | 7 ++++++- .../inspect_string/inspect_string/subpackage/__init__.py | 3 +++ 4 files changed, 14 insertions(+), 6 deletions(-) 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