summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-05-18 16:07:07 -0700
committerScott Shawcroft <scott@tannewt.org>2020-05-18 16:29:15 -0700
commit1e9436519b39efbe0e0e48e3725eebb4cea41feb (patch)
treeb2eff9aea8683e2a3213551a467078c8806b9463
parent32617d5f2fb051d3adf55bf0f4f00f10cc5d74aa (diff)
Fix ReadTheDocs after switching to stubs + autoapi.
-rw-r--r--conf.py2
-rw-r--r--docs/requirements.txt2
-rw-r--r--requirements-dev.txt1
3 files changed, 4 insertions, 1 deletions
diff --git a/conf.py b/conf.py
index d6fa8f7e5..c36ba8647 100644
--- a/conf.py
+++ b/conf.py
@@ -18,6 +18,7 @@ import sys
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
@@ -67,6 +68,7 @@ source_suffix = {
'.md': 'markdown',
}
+subprocess.check_output(["make", "stubs"])
extensions.append('autoapi.extension')
autoapi_type = 'python'
diff --git a/docs/requirements.txt b/docs/requirements.txt
index 9edf6d328..f2ec24c2e 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -1,3 +1,5 @@
sphinx==1.8.5
recommonmark==0.5.0
sphinxcontrib-svg2pdfconverter==0.1.0
+astroid
+sphinx-autoapi
diff --git a/requirements-dev.txt b/requirements-dev.txt
deleted file mode 100644
index 7cd491ade..000000000
--- a/requirements-dev.txt
+++ /dev/null
@@ -1 +0,0 @@
-rst2pyi>=0.3.0