diff --git a/autoapi/mappers/base.py b/autoapi/mappers/base.py index c025ffd..ef273bc 100644 --- a/autoapi/mappers/base.py +++ b/autoapi/mappers/base.py @@ -9,7 +9,6 @@ import sphinx.util from sphinx.util.console import darkgreen, bold from sphinx.util.osutil import ensuredir from sphinx.util.docstrings import prepare_docstring -from sphinx.ext.napoleon.docstring import GoogleDocstring, NumpyDocstring from ..settings import API_ROOT @@ -182,10 +181,7 @@ class SphinxMapperBase(object): ) def _wrapped_prepare(value): - preped_value = '\n'.join(prepare_docstring(value)) - numpy_value = str(NumpyDocstring(preped_value)) - final_value = str(GoogleDocstring(numpy_value)) - return final_value + return '\n'.join(prepare_docstring(value)) self.jinja_env.filters['prepare_docstring'] = _wrapped_prepare