mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-19 15:25:31 +00:00
Kill janky napolean overlay
This commit is contained in:
parent
3531f5560a
commit
d803b28d00
@ -9,7 +9,6 @@ import sphinx.util
|
|||||||
from sphinx.util.console import darkgreen, bold
|
from sphinx.util.console import darkgreen, bold
|
||||||
from sphinx.util.osutil import ensuredir
|
from sphinx.util.osutil import ensuredir
|
||||||
from sphinx.util.docstrings import prepare_docstring
|
from sphinx.util.docstrings import prepare_docstring
|
||||||
from sphinx.ext.napoleon.docstring import GoogleDocstring, NumpyDocstring
|
|
||||||
|
|
||||||
from ..settings import API_ROOT
|
from ..settings import API_ROOT
|
||||||
|
|
||||||
@ -182,10 +181,7 @@ class SphinxMapperBase(object):
|
|||||||
)
|
)
|
||||||
|
|
||||||
def _wrapped_prepare(value):
|
def _wrapped_prepare(value):
|
||||||
preped_value = '\n'.join(prepare_docstring(value))
|
return '\n'.join(prepare_docstring(value))
|
||||||
numpy_value = str(NumpyDocstring(preped_value))
|
|
||||||
final_value = str(GoogleDocstring(numpy_value))
|
|
||||||
return final_value
|
|
||||||
|
|
||||||
self.jinja_env.filters['prepare_docstring'] = _wrapped_prepare
|
self.jinja_env.filters['prepare_docstring'] = _wrapped_prepare
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user