Skip to content

Commit

Permalink
modify sphinx version requirement for rtd theme
Browse files Browse the repository at this point in the history
  • Loading branch information
sveseli committed Jan 20, 2020
1 parent 38a8ef6 commit 57d76f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions documentation/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,16 @@ def setup(app):

# General information about the project.
project = u'EPICS PvaPy'
copyright = u'2014-2019, EPICS'
copyright = u'2014-2020, EPICS'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = "2.0.0"
version = "2.1.0"
# The full version, including alpha/beta/rc tags.
release = "2.0.0"
release = "2.1.0"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -199,8 +199,8 @@ def setup(app):
# Sphinx are currently 'default' and 'sphinxdoc'.
# Hack for older versions of sphinx that seem to have issues with RTD theme
html_theme = 'default'
sphinx_version = int(''.join(__import__('sphinx').__version__.split('.')[0:2]))
if sphinx_version >= 14:
sphinx_ver = int(''.join(__import__('sphinx').__version__.split('.')[0:2]))
if sphinx_ver >= 13:
html_theme = 'sphinx_rtd_theme'

# Theme options are theme-specific and customize the look and feel of a theme
Expand Down

0 comments on commit 57d76f9

Please sign in to comment.