You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2015/11/03 19:43:36 UTC
trafficserver git commit: docs: explicitly include RTD CSS when
building in the RTD environment
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 <jo...@gmail.com>
Authored: Tue Nov 3 18:31:46 2015 +0000
Committer: James Peach <jp...@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.