Skip to content

Commit

Permalink
fix docs source links
Browse files Browse the repository at this point in the history
  • Loading branch information
svenkreiss committed Jul 19, 2016
1 parent ae190c1 commit cb9c1e6
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions docs/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,12 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os
import shlex
import sphinx_rtd_theme

# extract version from __init__.py
pysparkling_init_filename = os.path.join(
os.path.dirname(__file__),
'..',
'..',
'pysparkling',
'__init__.py',
)
with open(pysparkling_init_filename, 'r') as f:
version_line = [l for l in f if l.startswith('__version__')][0]
PYSPARKLING_VERSION = version_line.split('=')[1].strip()[1:-1]
import sys

sys.path.insert(0, os.path.abspath('../..'))
import pysparkling
PYSPARKLING_VERSION = pysparkling.__version__

# 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 @@ -148,7 +138,7 @@

# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
#html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
Expand Down

0 comments on commit cb9c1e6

Please sign in to comment.