Skip to content

Commit

Permalink
one more try at addressing #295
Browse files Browse the repository at this point in the history
  • Loading branch information
dkg committed Dec 21, 2017
1 parent 2623e87 commit 3826749
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
# import sys
import sys
# sys.path.insert(0, os.path.abspath('.'))

# -- General configuration ------------------------------------------------
Expand Down Expand Up @@ -379,7 +379,7 @@ def setup(app):
app.add_stylesheet('custom.css')
staging = True
try:
if os.env['TRAVIS_REPO_SLUG'] == 'autocrypt/autocrypt' and os.env['TRAVIS_BRANCH'] == 'master':
if os.environ['TRAVIS_REPO_SLUG'] == 'autocrypt/autocrypt' and os.environ['TRAVIS_BRANCH'] == 'master':
staging = False
except:
pass
Expand All @@ -391,6 +391,4 @@ def setup(app):
except:
pass
if staging:
# this is not working! see https://github.com/autocrypt/autocrypt/issues/295
# app.add_stylesheet('staging.css')
pass
app.add_stylesheet('staging.css')

0 comments on commit 3826749

Please sign in to comment.