diff --git a/.readthedocs.yml b/.readthedocs.yml
new file mode 100644
index 0000000000000000000000000000000000000000..d1be95378e9b653364d965b48c4994c002f24b42
--- /dev/null
+++ b/.readthedocs.yml
@@ -0,0 +1,9 @@
+version: 2
+
+sphinx:
+  configuration: lib/spack/docs/conf.py
+
+python:
+  version: 3.7
+  install:
+    - requirements: lib/spack/docs/requirements.txt
diff --git a/.travis.yml b/.travis.yml
index d8f955a33275310ee611244e38c682c82d9bc429..edf18f7311ec478a9af90d336920c62b7f1260c1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -73,7 +73,7 @@ jobs:
           - r-base-core
           - r-base-dev
 
-    - python: '3.6'
+    - python: '3.7'
       sudo: required
       os: linux
       language: python
diff --git a/lib/spack/docs/requirements.txt b/lib/spack/docs/requirements.txt
index 592060a89ec6871a5fdb52d1796ed8541d89f695..ebe72676800c57bdf4be32225c612422256fea81 100644
--- a/lib/spack/docs/requirements.txt
+++ b/lib/spack/docs/requirements.txt
@@ -1,6 +1,6 @@
 # These dependencies should be installed using pip in order
 # to build the documentation.
 
-sphinx==1.7.0
-sphinxcontrib-programoutput
-sphinx-rtd-theme
+sphinx==2.0.1
+sphinxcontrib-programoutput==0.14
+sphinx-rtd-theme==0.4.3