From e19b700666804f43f9202f5735d35a2bb8da1ec8 Mon Sep 17 00:00:00 2001
From: Joel Nothman <joel.nothman@gmail.com>
Date: Tue, 1 Sep 2015 19:22:50 +1000
Subject: [PATCH] DOC provide PDF documentation for download

---
 doc/Makefile                        | 3 +++
 doc/themes/scikit-learn/layout.html | 1 +
 2 files changed, 4 insertions(+)

diff --git a/doc/Makefile b/doc/Makefile
index c986436a99..ca5e60a153 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -100,3 +100,6 @@ download-data:
 optipng:
 	find _build auto_examples */generated -name '*.png' -print0 \
 	  | xargs -0 -n 1 -P 4 optipng -o10
+
+dist: html latexpdf
+	cp _build/latex/user_guide.pdf _build/html/stable/_downloads/scikit-learn-docs.pdf
diff --git a/doc/themes/scikit-learn/layout.html b/doc/themes/scikit-learn/layout.html
index d1fcaee03e..9f003242a5 100644
--- a/doc/themes/scikit-learn/layout.html
+++ b/doc/themes/scikit-learn/layout.html
@@ -80,6 +80,7 @@
             <li class="divider"></li>
                 <li><a href="http://scikit-learn.org/stable/documentation.html">Scikit-learn 0.16.1 (stable)</a></li>
                 <li><a href="http://scikit-learn.org/0.15/documentation.html">Scikit-learn 0.15</a></li>
+				<li><a href="{{ pathto('_downloads/user_guide.pdf', 1) }}">PDF documentation</a></li>
               </ul>
             </div>
         </li>
-- 
GitLab