Skip to content

Commit

Permalink
Merge pull request #9 from Carreau/dev-header
Browse files Browse the repository at this point in the history
fix docs dev header
  • Loading branch information
takluyver committed Apr 21, 2015
2 parents 4f215be + 7b55bda commit ce932dc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#sys.path.insert(0, os.path.abspath('.'))

# We load the ipython release info into a dict by explicit execution
iprelease = {}
exec(compile(open('../../traitlets/_version.py').read(), '../../traitlets/_version.py', 'exec'),iprelease)
_release = {}
exec(compile(open('../../traitlets/_version.py').read(), '../../traitlets/_version.py', 'exec'),_release)

# -- General configuration ------------------------------------------------

Expand All @@ -51,11 +51,11 @@
source_suffix = '.rst'

# Add dev disclaimer.
if iprelease['version_info'][-1] == 'dev':
if _release['version_info'][-1] == 'dev':
rst_prolog = """
.. note::
This documentation is for a development version of IPython. There may be
This documentation is for a development version of Traitlets. There may be
significant differences from the latest stable release.
"""
Expand All @@ -76,9 +76,9 @@
# built documents.
#
# The short X.Y version.
version = '.'.join(map(str, iprelease['version_info'][:2]))
version = '.'.join(map(str, _release['version_info'][:2]))
# The full version, including alpha/beta/rc tags.
release = iprelease['__version__']
release = _release['__version__']

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -130,7 +130,7 @@
# The style sheet to use for HTML and HTML Help pages. A file of that name
# must exist either in Sphinx' static/ path, or in one of the custom paths
# given in html_static_path.
html_style = 'default.css'
# html_style = 'default.css'

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
Expand Down

0 comments on commit ce932dc

Please sign in to comment.