Skip to content

Commit

Permalink
Fix readthedocs build
Browse files Browse the repository at this point in the history
  • Loading branch information
erogol committed Jun 30, 2021
1 parent 2e1a428 commit 8cb16da
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions docs/source/readthedocs.yml → .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ version: 2
# Build documentation in the docs/ directory with Sphinx
sphinx:
builder: html
configuration: docs/conf.py
configuration: docs/source/conf.py

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.8
version: 3.7
install:
- requirements: doc/requirements.txt
- requirements: docs/requirements.txt
- requirements: requirements.txt
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXOPTS ?= -j auto -WT --keep-going
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = _build
Expand Down
6 changes: 4 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
import os
import sys

sys.path.insert(0, os.path.abspath('../../TTS'))
autodoc_mock_imports = ["tts"]
sys.path.insert(0, os.path.abspath('../..'))

# mock deps with system level requirements.
autodoc_mock_imports = ["soundfile"]

# -- Project information -----------------------------------------------------
project = 'TTS'
Expand Down
1 change: 0 additions & 1 deletion docs/source/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,5 @@
:maxdepth: 2
:caption: `vocoder` Models
main_classes/gan
```

0 comments on commit 8cb16da

Please sign in to comment.