You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by js...@apache.org on 2016/04/21 16:50:28 UTC

[trafficserver] branch 4.2.x updated: docs: backporting rtd theme workaround

This is an automated email from the ASF dual-hosted git repository.

jsime pushed a commit to branch 4.2.x
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/4.2.x by this push:
       new  6ed0c57   docs: backporting rtd theme workaround
6ed0c57 is described below

commit 6ed0c571e0a81f627d7c1c04736da5bbbbd4338c
Author: Jon Sime <js...@apache.org>
AuthorDate: Thu Apr 21 14:47:56 2016 +0000

    docs: backporting rtd theme workaround
---
 doc/conf.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/doc/conf.py b/doc/conf.py
index 43c8f1b..3446170 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -94,6 +94,15 @@ if os.environ.get('READTHEDOCS') == 'True':
           po = polib.pofile(po_file)
           po.save_as_mofile(fpath=mo_file)
   print "done"
+else:
+  # Backporting theme workaround for non-RTD environments to use the
+  # sphinx_rtd_theme instead of whatever local default theme is set.
+  try:
+    import sphinx_rtd_theme
+    html_theme = 'sphinx_rtd_theme'
+    html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
+  except:
+    pass
 ## End of HACK
 
 # There are two options for replacing |today|: either, you set today to some

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].