diff --git a/docs/conf.py b/docs/conf.py index 33f9de6fb..28e0b5167 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,9 +17,6 @@ # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # -# import os -# import sys -# sys.path.insert(0, os.path.abspath('.')) # -- General configuration ------------------------------------------------ @@ -34,7 +31,6 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon', 'sphinx_rtd_theme', -# 'nbsphinx', 'sphinx.ext.viewcode', 'sphinx.ext.mathjax', 'sphinx.ext.autosummary', @@ -114,11 +110,7 @@ def get_version(verbose=1, filename='qtt/version.py'): # The short X.Y version. -if 0: - import qtt - version = '{}'.format(qtt.__version__) -else: - version = get_version(verbose=1, filename='../qtt/version.py') +version = get_version(verbose=1, filename='../src/qtt/version.py') # The full version, including alpha/beta/rc tags. release = version @@ -134,7 +126,7 @@ def get_version(verbose=1, filename='qtt/version.py'): # directories to ignore when looking for source files. # This patterns also effect to html_static_path and html_extra_path exclude_patterns = ['_build', 'Thumbs.db', 'legacy.py', '.DS_Store', 'untitled.*py', - 'notebooks/.ipynb_checkpoints', '../qtt/loggingGUI.py', '../qtt/debug.py', '../qtt/legacy.py', 'qtt/scans.py', '../qtt/deprecated/*'] + 'notebooks/.ipynb_checkpoints', '../src/qtt/loggingGUI.py', '../src/qtt/debug.py', '../src/qtt/legacy.py', 'src/qtt/scans.py', '../src/qtt/deprecated/*'] # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' @@ -278,7 +270,7 @@ def run_apidoc(_): "-f", "-M", "-o", ".", - "../qtt" + "../src/qtt" ] + ignore_paths # Sphinx 1.7+