Kill janky napolean overlay

This commit is contained in:
Eric Holscher 2017-11-06 18:39:20 -07:00
parent 3531f5560a
commit d803b28d00

View File

@ -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