Skip to content

Commit

Permalink
Improve docs building on readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
bitphage committed Apr 3, 2019
1 parent ff23ced commit cd31ff0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ python:
version: 3.6
install:
- requirements: docs/requirements.txt
- requirements: requirements.txt
5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']

Expand Down
6 changes: 6 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
sphinxcontrib-apidoc
ccxt
appdirs
click
ruamel.yaml
sqlalchemy
events

0 comments on commit cd31ff0

Please sign in to comment.