pdoc icon indicating copy to clipboard operation
pdoc copied to clipboard

Multiple reference duplication when loading docstring of function

Open mptino opened this issue 1 year ago • 2 comments

Problem Description

Hello - I am using pdoc to compile the docstring of all my methods in my API. But occasionally the references used in the docstring of a specific method are duplicated (or triplicated), and I'm not really sure why.

Please see here, where source code is shown to only contain 2 references, but the resultant pdoc compilation produces duplicates...

Steps to reproduce the behavior:

  1. I am using the github workflow described by a yml file

System Information

Unable to determine system pdoc version used by the yml file above.

Thank you so much! Matthew

mptino avatar Jan 11 '24 15:01 mptino

This looks like an issue in the Markdown library we're using, markdown2.

mhils avatar Jan 18 '24 15:01 mhils

This affects SQLAlchemy which doesn't like the repetitive import:

sqlalchemy.exc.InvalidRequestError: Table 'foo' is already defined for this MetaData instance.  
Specify 'extend_existing=True' to redefine options and columns on an existing Table object.

savchenko avatar Aug 08 '24 12:08 savchenko