Skip to content

Commit

Permalink
Mocked requirements for building docs and added a readthedocs config …
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
Michael Panchenko committed Feb 20, 2020
1 parent c0b91ab commit adcb59f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

version: 2

sphinx:
configuration: docs/source/conf.py

python:
version: 3.7
install:
- requirements: docs/requirements.txt
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.napoleon', 'sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx_rtd_theme']

autodoc_mock_imports = ["torch", "tensorflow", "lightgbm", "scikit-learn",
"seaborn", "PyQt5", "psutil", "pyyaml", "pysqlite3"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down
3 changes: 3 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pandas==0.25.3
scipy==1.4.1
numpy==1.18.1

0 comments on commit adcb59f

Please sign in to comment.