Skip to content

Commit

Permalink
Merge pull request #72 from dtrifiro/master
Browse files Browse the repository at this point in the history
docs: fix build (#72)
  • Loading branch information
casperdcl authored Apr 9, 2022
2 parents 7f25585 + 6545894 commit c7a390a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions docs/pydoc_markdown_shtab.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c7a390a

Please sign in to comment.