From: Vladimír Vondruš Date: Sun, 2 Jan 2022 12:09:48 +0000 (+0100) Subject: documentation/python: minor. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=49fae91ed65ee63874944a418d49538824f175ec;p=blog.git documentation/python: minor. Those values are already available, so don't calculate them again. --- 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 = []