Skip to content

Commit

Permalink
quickfix for sphinx autodoc on RTD (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsavulescu committed Apr 13, 2021
1 parent dbbb308 commit 172b491
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,10 @@ def setup(app):

# Add extra path to pickup doxygen output
html_extra_path = ['../build_rtd/docs']

# Remove `docs` from sys.path since RTD adds it automatically.
# Otherwise `docs/hoc` will clash with `hoc` when importing neuron
try:
sys.path.remove(os.path.abspath('.'))
except:
pass

0 comments on commit 172b491

Please sign in to comment.