# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
-extensions = ['javasphinx']
+extensions = []
+
+# Disable javasphinx generation until we have a solution to long build
+# times. readthedocs timesout after 902 seconds.
+# javasphinx_available = False
+# try:
+# import javasphinx
+# javasphinx_available = True
+# extensions.append('javasphinx')
+# except ImportError, e:
+# pass
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
import subprocess
subprocess.call(["./build-integration-robot-libdoc.sh"])
+
+# Disable javasphinx generation until we have a solution to long build
+# times. readthedocs timesout after 902 seconds.
+subprocess.call(["rm","-rf","javadoc"])
+# if javasphinx_available:
+# subprocess.call(["./generate-javaapidoc.sh"])