summaryrefslogtreecommitdiffstats
path: root/debian/patches/debian/0002-html-output.patch
blob: e703d323148c032e3f8252b6d1c22a1b8be22279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Author: Carl Suster <carl@contraflo.ws>
Description:
 We would like for the HTML source files to be installed, and they are
 needed for the search page. In theory this could be done by passing an
 argument `-Dhtml_copy_source=1` in debian/rules, however this causes
 HAS_SOURCE to be equal to 1 instead of True so dh_sphinxdoc fails with a
 "doesn't look like a Sphinc search page" error.

diff -Naurp terminaltables.orig/docs/conf.py terminaltables/docs/conf.py
--- terminaltables.orig/docs/conf.py
+++ terminaltables/docs/conf.py
@@ -27,7 +27,7 @@ html_context = dict(
     github_version=os.environ.get('TRAVIS_BRANCH', 'master'),
     source_suffix='.rst',
 )
-html_copy_source = False
+html_copy_source = True
 html_favicon = 'favicon.ico'
 html_theme = 'sphinx_rtd_theme'
 html_title = project