Here is a bug report I found in pydoc-markdown, while trying to render a document for modules with the short path names. If the module path consists of only one part such as views, http (instead of multiple parts like generic.views, http.responses), following error occurs:
File "<...>/lib/python3.7/site-packages/pydoc_markdown/contrib/renderers/markdown.py", line 213, in _render_header
relative_module_name=obj.name.rsplit(".", 1)[1]
IndexError: list index out of range
Hi, thank you for the amazing library.
Here is a bug report I found in
pydoc-markdown
, while trying to render a document for modules with the short path names. If the module path consists of only one part such asviews
,http
(instead of multiple parts likegeneric.views
,http.responses
), following error occurs:Can I make a simple PR to fix this?