Skip to content

Commit cb45ad0

Browse files
authored
DOC fix spacing issue when using sphinx_rtd_theme (#621)
1 parent 7032dcb commit cb45ad0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,15 @@
313313
issues_user_uri = 'https://github.com/{user}'
314314

315315

316+
# Temporary work-around for spacing problem between parameter and parameter
317+
# type in the doc, see https://github.com/numpy/numpydoc/issues/215. The bug
318+
# has been fixed in sphinx (https://github.com/sphinx-doc/sphinx/pull/5976) but
319+
# through a change in sphinx basic.css except rtd_theme does not use basic.css.
320+
# In an ideal world, this would get fixed in this PR:
321+
# https://github.com/readthedocs/sphinx_rtd_theme/pull/747/files
316322
def setup(app):
317323
app.add_javascript('js/copybutton.js')
324+
app.add_stylesheet("basic.css")
318325
# app.connect('autodoc-process-docstring', generate_example_rst)
319326

320327

0 commit comments

Comments
 (0)