Description: Use the Debian package of the sphinx-rtd theme
Author: Tristan Seligmann <mithrandi@debian.org>
Forwarded: no
Last-Update: 2014-12-08
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: mutagen-1.31/docs/Makefile
===================================================================
--- mutagen-1.31.orig/docs/Makefile	2015-09-19 02:06:07.154250266 +0200
+++ mutagen-1.31/docs/Makefile	2015-09-19 02:07:05.679135340 +0200
@@ -1,13 +1,7 @@
-all: _rtd_theme
-	sphinx-build -E -Dhtml_theme=_rtd_theme -Dhtml_theme_path=. -b html -n . _build
+all:
+	sphinx-build -E -b html -n . _build
 
 clean:
-	rm -rf _build _rtd_theme
+	rm -rf _build
 
 .PHONY: clean
-
-_rtd_theme:
-	wget https://github.com/snide/sphinx_rtd_theme/archive/master.tar.gz
-	tar --strip-components=1 -zxvf master.tar.gz sphinx_rtd_theme-master/sphinx_rtd_theme
-	mv sphinx_rtd_theme _rtd_theme
-	rm master.tar.gz
Index: mutagen-1.31/docs/conf.py
===================================================================
--- mutagen-1.31.orig/docs/conf.py	2015-09-19 02:06:07.154250266 +0200
+++ mutagen-1.31/docs/conf.py	2015-09-19 02:07:32.671543694 +0200
@@ -2,6 +2,7 @@
 
 import os
 import sys
+import sphinx_rtd_theme
 
 dir_ = os.path.dirname(os.path.realpath(__file__))
 sys.path.insert(0, dir_)
@@ -21,6 +22,8 @@
 exclude_patterns = ['_build']
 bug_url_template = "http://bitbucket.org/lazka/mutagen/issue/%s"
 pr_url_template = "http://bitbucket.org/lazka/mutagen/pull-request/%s"
+html_theme = "sphinx_rtd_theme"
+html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
 
 autodoc_member_order = "bysource"
 default_role = "obj"
