Skip to content

Commit

Permalink
Change docs theme and fix release number discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
osantana committed Jul 1, 2015
1 parent c8af083 commit f827ef3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ __pycache__
.tox
.coverage
dist/
build/
README.html
18 changes: 14 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
import sys
import os
import shlex
import re

import sphinx_rtd_theme

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -54,10 +57,16 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '0.3.3'
_here = os.path.abspath(os.path.dirname(__file__))
version = '0.0.0'
with open(os.path.join(_here, "../..", "CHANGES.txt")) as changes:
for line in changes:
version = line.strip()
if re.search('^[0-9]+\.[0-9]+(\.[0-9]+)?$', version):
break

# The full version, including alpha/beta/rc tags.
release = '0.3.3'
release = version

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -108,7 +117,8 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'alabaster'
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
1 change: 1 addition & 0 deletions requirements-local.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Sphinx==1.3.1
sphinx-rtd-theme==0.1.8

0 comments on commit f827ef3

Please sign in to comment.