Skip to content

Commit

Permalink
Use installed theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeboers committed Jun 9, 2015
1 parent d93a3b3 commit 52a1a7d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,14 @@ class _Stub(object):


# -- Options for HTML output ---------------------------------------------------

local_theme_path = os.path.abspath('../../docs/_themes/westernx')
if os.path.exists(local_theme_path):
sys.path.append(local_theme_path)
html_theme_path = [local_theme_path]
try:
import sphinx_westernx_theme
html_theme_path = sphinx_westernx_theme.get_html_path()
html_theme = 'westernx'
html_theme_options = {
'index_logo': None,
}
else:
except ImportError:
html_theme = 'default'

# The name for this set of Sphinx documents. If None, it defaults to
Expand Down

0 comments on commit 52a1a7d

Please sign in to comment.