diff --git a/docs/pydoc_markdown_shtab.py b/docs/pydoc_markdown_shtab.py index 2883f85..c0d3519 100644 --- a/docs/pydoc_markdown_shtab.py +++ b/docs/pydoc_markdown_shtab.py @@ -8,6 +8,10 @@ def _process(self, node): if not getattr(node, "docstring", None): return super()._process(node) # convert parameter lists to markdown list - node.docstring = re.sub(r"^(\w+)\s{2,}(:.*?)$", r"* __\1__*\2* ", node.docstring, - flags=re.M) + node.docstring.content = re.sub( + r"^(\w+)\s{2,}(:.*?)$", + r"* __\1__*\2* ", + node.docstring.content, + flags=re.M, + ) return super()._process(node) diff --git a/docs/requirements.txt b/docs/requirements.txt index f763c36..d18b194 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,5 +1,5 @@ mkdocs-material -git+git://github.com/iterative/jsmin@python3-only#egg=jsmin +git+https://github.com/iterative/jsmin@python3-only#egg=jsmin mkdocs-minify-plugin pydoc-markdown>=4 pygments