Skip to content

Commit 8cb16da

Browse files
committed
Fix readthedocs build
1 parent 2e1a428 commit 8cb16da

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

docs/source/readthedocs.yml renamed to .readthedocs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ version: 2
88
# Build documentation in the docs/ directory with Sphinx
99
sphinx:
1010
builder: html
11-
configuration: docs/conf.py
11+
configuration: docs/source/conf.py
1212

1313
# Optionally set the version of Python and requirements required to build your docs
1414
python:
15-
version: 3.8
15+
version: 3.7
1616
install:
17-
- requirements: doc/requirements.txt
17+
- requirements: docs/requirements.txt
18+
- requirements: requirements.txt

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# You can set these variables from the command line, and also
55
# from the environment for the first two.
6-
SPHINXOPTS ?=
6+
SPHINXOPTS ?= -j auto -WT --keep-going
77
SPHINXBUILD ?= sphinx-build
88
SOURCEDIR = source
99
BUILDDIR = _build

docs/source/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
import os
1414
import sys
1515

16-
sys.path.insert(0, os.path.abspath('../../TTS'))
17-
autodoc_mock_imports = ["tts"]
16+
sys.path.insert(0, os.path.abspath('../..'))
17+
18+
# mock deps with system level requirements.
19+
autodoc_mock_imports = ["soundfile"]
1820

1921
# -- Project information -----------------------------------------------------
2022
project = 'TTS'

docs/source/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,5 @@
4848
:maxdepth: 2
4949
:caption: `vocoder` Models
5050
51-
main_classes/gan
5251
```
5352

0 commit comments

Comments
 (0)