Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Fix read the docs #548

Merged
merged 2 commits into from
Apr 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ------------------------------------------------
Expand All @@ -34,7 +31,6 @@
extensions = ['sphinx.ext.autodoc',
'sphinx.ext.napoleon',
'sphinx_rtd_theme',
# 'nbsphinx',
'sphinx.ext.viewcode',
'sphinx.ext.mathjax',
'sphinx.ext.autosummary',
Expand Down Expand Up @@ -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
Expand All @@ -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'
Expand Down Expand Up @@ -278,7 +270,7 @@ def run_apidoc(_):
"-f",
"-M",
"-o", ".",
"../qtt"
"../src/qtt"
] + ignore_paths

# Sphinx 1.7+
Expand Down