diff options
| author | sommersoft <sommersoft@users.noreply.github.com> | 2020-05-19 14:19:52 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-19 14:19:52 -0500 |
| commit | bdc5a6b7c08ee98541a536c234eedddb006af296 (patch) | |
| tree | c687f126104d7d183fe93a855567a90ba4a0d886 | |
| parent | 09abd3d95d6852744543711a1154a274d48fd13c (diff) | |
| parent | 1d77000c19cc1100d5f748dff31a969ce9eb4eca (diff) | |
Merge pull request #2928 from tannewt/fix_rtd_autoapi
Fix ReadTheDocs after switching to stubs + autoapi.
| -rw-r--r-- | conf.py | 2 | ||||
| -rw-r--r-- | docs/requirements.txt | 6 | ||||
| -rw-r--r-- | requirements-dev.txt | 1 |
3 files changed, 6 insertions, 3 deletions
@@ -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..51029bcba 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -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 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 |
