diff --git a/.travis.sh b/.travis.sh
index 7f099f3b84d034c416302db2ba9a482f9b7d8139..05d39eb1389d0891095e90b5c46d8e16c77d8e38 100755
--- a/.travis.sh
+++ b/.travis.sh
@@ -51,7 +51,7 @@ docker build -t $TRAVIS_REPO_SLUG .
 # Prepare build regression test
 pushd /tmp
 mkdocs new test && cd test
-echo "theme: material" >> mkdocs.yml
+echo "theme: \n  name: material" >> mkdocs.yml
 
 # Test Docker image build
 docker run --rm -it -v `pwd`:/docs $TRAVIS_REPO_SLUG build