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

Commit 6ac65f9

Browse files
authored
Fix read the docs (#548)
Fix RTD build
1 parent 4b38501 commit 6ac65f9

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

docs/conf.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
# add these directories to sys.path here. If the directory is relative to the
1818
# documentation root, use os.path.abspath to make it absolute, like shown here.
1919
#
20-
# import os
21-
# import sys
22-
# sys.path.insert(0, os.path.abspath('.'))
2320

2421

2522
# -- General configuration ------------------------------------------------
@@ -34,7 +31,6 @@
3431
extensions = ['sphinx.ext.autodoc',
3532
'sphinx.ext.napoleon',
3633
'sphinx_rtd_theme',
37-
# 'nbsphinx',
3834
'sphinx.ext.viewcode',
3935
'sphinx.ext.mathjax',
4036
'sphinx.ext.autosummary',
@@ -114,11 +110,7 @@ def get_version(verbose=1, filename='qtt/version.py'):
114110

115111

116112
# The short X.Y version.
117-
if 0:
118-
import qtt
119-
version = '{}'.format(qtt.__version__)
120-
else:
121-
version = get_version(verbose=1, filename='../qtt/version.py')
113+
version = get_version(verbose=1, filename='../src/qtt/version.py')
122114

123115
# The full version, including alpha/beta/rc tags.
124116
release = version
@@ -134,7 +126,7 @@ def get_version(verbose=1, filename='qtt/version.py'):
134126
# directories to ignore when looking for source files.
135127
# This patterns also effect to html_static_path and html_extra_path
136128
exclude_patterns = ['_build', 'Thumbs.db', 'legacy.py', '.DS_Store', 'untitled.*py',
137-
'notebooks/.ipynb_checkpoints', '../qtt/loggingGUI.py', '../qtt/debug.py', '../qtt/legacy.py', 'qtt/scans.py', '../qtt/deprecated/*']
129+
'notebooks/.ipynb_checkpoints', '../src/qtt/loggingGUI.py', '../src/qtt/debug.py', '../src/qtt/legacy.py', 'src/qtt/scans.py', '../src/qtt/deprecated/*']
138130

139131
# The name of the Pygments (syntax highlighting) style to use.
140132
pygments_style = 'sphinx'
@@ -278,7 +270,7 @@ def run_apidoc(_):
278270
"-f",
279271
"-M",
280272
"-o", ".",
281-
"../qtt"
273+
"../src/qtt"
282274
] + ignore_paths
283275

284276
# Sphinx 1.7+

0 commit comments

Comments
 (0)