Skip to content

Commit

Permalink
Merge pull request adafruit#2928 from tannewt/fix_rtd_autoapi
Browse files Browse the repository at this point in the history
Fix ReadTheDocs after switching to stubs + autoapi.
  • Loading branch information
sommersoft authored May 19, 2020
2 parents 09abd3d + 1d77000 commit bdc5a6b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import os

import recommonmark
import subprocess

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -67,6 +68,7 @@
'.md': 'markdown',
}

subprocess.check_output(["make", "stubs"])
extensions.append('autoapi.extension')

autoapi_type = 'python'
Expand Down
6 changes: 4 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
sphinx==1.8.5
recommonmark==0.5.0
sphinx<3
recommonmark==0.6.0
sphinxcontrib-svg2pdfconverter==0.1.0
astroid
sphinx-autoapi
1 change: 0 additions & 1 deletion requirements-dev.txt

This file was deleted.

0 comments on commit bdc5a6b

Please sign in to comment.