From cd31ff016e507ab09fe3401a27eea116d91ed98f Mon Sep 17 00:00:00 2001 From: Vladimir Kamarzin Date: Wed, 3 Apr 2019 11:33:24 +0500 Subject: [PATCH] Improve docs building on readthedocs --- .readthedocs.yml | 1 - docs/conf.py | 5 +++++ docs/requirements.txt | 6 ++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 31b97a4d4..884df65fe 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -3,4 +3,3 @@ python: version: 3.6 install: - requirements: docs/requirements.txt - - requirements: requirements.txt diff --git a/docs/conf.py b/docs/conf.py index 785aa2f57..57908ba21 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -38,6 +38,11 @@ apidoc_excluded_paths = ['tests'] apidoc_separate_modules = True +# Mock some modules to fix building on readthedocs.io as we cannot just install +# everything from requirements.txt as readthedocs doesn't allow cpython modules +# building +autodoc_mock_imports = ['PyQt5', 'bitshares', 'bitsharesapi', 'bitsharesbase'] + # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/docs/requirements.txt b/docs/requirements.txt index b0f844724..58de52f7c 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1 +1,7 @@ sphinxcontrib-apidoc +ccxt +appdirs +click +ruamel.yaml +sqlalchemy +events