From eb4ef2f96954c949e90914071c97ec7198c3a011 Mon Sep 17 00:00:00 2001
From: Chris Wong <lambda.fairy@gmail.com>
Date: Wed, 27 Mar 2019 21:54:35 +1300
Subject: [PATCH] Travis: build and deploy the book

---
 .travis.yml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index 25e819e..215c4da 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,3 +21,14 @@ jobs:
     - name: "Benchmarks"
       script:
         - (cd benchmarks && cargo test --benches)
+    - name: "Documentation"
+      script:
+        - (cd docs && make -j$(nproc))
+      deploy:
+        provider: pages
+        skip_cleanup: true
+        github_token: $GITHUB_TOKEN
+        fqdn: maud.lambda.xyz
+        local_dir: docs/site
+        on:
+          branch: master