Skip to content

Commit

Permalink
DOC fix spacing issue when using sphinx_rtd_theme (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
glemaitre committed Oct 31, 2019
1 parent 7032dcb commit cb45ad0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/conf.py
Expand Up @@ -313,8 +313,15 @@
issues_user_uri = 'https://github.com/{user}'


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


Expand Down

0 comments on commit cb45ad0

Please sign in to comment.