Fix readthedocs build

This commit is contained in:
Eren Gölge 2021-06-30 15:00:14 +02:00
parent 2e1a428b83
commit 8cb16da82a
4 changed files with 9 additions and 7 deletions

View File

@ -8,10 +8,11 @@ version: 2
# Build documentation in the docs/ directory with Sphinx # Build documentation in the docs/ directory with Sphinx
sphinx: sphinx:
builder: html builder: html
configuration: docs/conf.py configuration: docs/source/conf.py
# Optionally set the version of Python and requirements required to build your docs # Optionally set the version of Python and requirements required to build your docs
python: python:
version: 3.8 version: 3.7
install: install:
- requirements: doc/requirements.txt - requirements: docs/requirements.txt
- requirements: requirements.txt

View File

@ -3,7 +3,7 @@
# You can set these variables from the command line, and also # You can set these variables from the command line, and also
# from the environment for the first two. # from the environment for the first two.
SPHINXOPTS ?= SPHINXOPTS ?= -j auto -WT --keep-going
SPHINXBUILD ?= sphinx-build SPHINXBUILD ?= sphinx-build
SOURCEDIR = source SOURCEDIR = source
BUILDDIR = _build BUILDDIR = _build

View File

@ -13,8 +13,10 @@
import os import os
import sys import sys
sys.path.insert(0, os.path.abspath('../../TTS')) sys.path.insert(0, os.path.abspath('../..'))
autodoc_mock_imports = ["tts"]
# mock deps with system level requirements.
autodoc_mock_imports = ["soundfile"]
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
project = 'TTS' project = 'TTS'

View File

@ -48,6 +48,5 @@
:maxdepth: 2 :maxdepth: 2
:caption: `vocoder` Models :caption: `vocoder` Models
main_classes/gan
``` ```