out.name = entry.path[-1]
out.id = state.config['ID_FORMATTER'](EntryType.DATA, entry.path[-1:])
# Welp. https://stackoverflow.com/questions/8820276/docstring-for-variable
- out.summary = ''
+ out.summary = extract_summary(state, state.data_docs, entry.path, '')
out.has_details = False
# First try to get fully dereferenced type hints (with strings converted to
out.value = format_value(state, entry.path, entry.object)
- # External data summary, if provided
- path_str = '.'.join(entry.path)
- if path_str in state.data_docs:
- # TODO: use also the contents
- out.summary = render_inline_rst(state, state.data_docs[path_str]['summary'])
- del state.data_docs[path_str]
-
if not state.config['SEARCH_DISABLED']:
result = Empty()
result.flags = ResultFlag.from_type(ResultFlag.NONE, EntryType.DATA)