From 4fc57b5b4b2eda1c6269f13b888a208f35bca1cb Mon Sep 17 00:00:00 2001 From: Tim O'Donnell <timodonnell@gmail.com> Date: Fri, 22 Dec 2017 16:07:12 -0500 Subject: [PATCH] docs rtd fix --- docs/conf.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index be2e10f4..be1d9ae6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,6 +18,13 @@ import os import re import textwrap import logging +import subprocess + +# Added by tim +import keras # to avoid "Using Tensorflow" message later +if os.environ.get("READTHEDOCS"): + # For rtd builds, call "make generate" first. + subprocess.check_call("make generate", shell=True) # Hack added by tim for bug in autoprogram extension under Python 2. from sphinx.util.pycompat import indent # pylint: disable=import-error -- GitLab