From 49fae91ed65ee63874944a418d49538824f175ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 2 Jan 2022 13:09:48 +0100 Subject: [PATCH] documentation/python: minor. Those values are already available, so don't calculate them again. --- documentation/python.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/python.py b/documentation/python.py index ce35d81e..62f2f794 100755 --- a/documentation/python.py +++ b/documentation/python.py @@ -1406,7 +1406,7 @@ def extract_function_doc(state: State, parent, entry: Empty) -> List[Any]: overloads = [] for name, summary, args, type, type_link in funcs: out = Empty() - out.name = entry.path[-1] + out.name = name out.params = [] out.has_complex_params = False out.has_details = False @@ -2590,7 +2590,7 @@ def run(basedir, config, *, templates=default_templates, search_add_lookahead_ba index_entry = Empty() index_entry.kind = 'page' index_entry.name = entry.name - index_entry.url = config['URL_FORMATTER'](entry.type, entry.path)[1] + index_entry.url = entry.url index_entry.summary = entry.summary index_entry.has_nestable_children = False index_entry.children = [] -- 2.30.2