trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject trafficserver git commit: docs: explicitly include RTD CSS when building in the RTD environment
Date Tue, 03 Nov 2015 18:43:36 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master b58048846 -> 0299a7187


docs: explicitly include RTD CSS when building in the RTD environment

This closes #319


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/0299a718
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/0299a718
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/0299a718

Branch: refs/heads/master
Commit: 0299a7187a0123a37f90b2c877f492c5e8698506
Parents: b580488
Author: Jon Sime <jonsime@gmail.com>
Authored: Tue Nov 3 18:31:46 2015 +0000
Committer: James Peach <jpeach@apache.org>
Committed: Tue Nov 3 10:43:22 2015 -0800

----------------------------------------------------------------------
 doc/conf.py | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/0299a718/doc/conf.py
----------------------------------------------------------------------
diff --git a/doc/conf.py b/doc/conf.py
index 0574fad..ff98787 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -234,9 +234,17 @@ html_static_path = ['static']
 # content wrapping.
 html_context = {
   'css_files': [
-    '_static/override.css',  # overrides for wide tables in RTD theme
-  ],
+    '_static/override.css'
+  ]
 }
+if os.environ.get('READTHEDOCS', None) == 'True':
+  html_context = {
+    'css_files': [
+      'https://media.readthedocs.org/css/sphinx_rtd_theme.css',
+      'https://media.readthedocs.org/css/readthedocs-doc-embed.css',
+      '_static/override.css'
+    ]
+  }
 
 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
 # using the given strftime format.


Mime
View raw message