17
17
# add these directories to sys.path here. If the directory is relative to the
18
18
# documentation root, use os.path.abspath to make it absolute, like shown here.
19
19
#
20
- # import os
21
- # import sys
22
- # sys.path.insert(0, os.path.abspath('.'))
23
20
24
21
25
22
# -- General configuration ------------------------------------------------
34
31
extensions = ['sphinx.ext.autodoc' ,
35
32
'sphinx.ext.napoleon' ,
36
33
'sphinx_rtd_theme' ,
37
- # 'nbsphinx',
38
34
'sphinx.ext.viewcode' ,
39
35
'sphinx.ext.mathjax' ,
40
36
'sphinx.ext.autosummary' ,
@@ -114,11 +110,7 @@ def get_version(verbose=1, filename='qtt/version.py'):
114
110
115
111
116
112
# 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' )
122
114
123
115
# The full version, including alpha/beta/rc tags.
124
116
release = version
@@ -134,7 +126,7 @@ def get_version(verbose=1, filename='qtt/version.py'):
134
126
# directories to ignore when looking for source files.
135
127
# This patterns also effect to html_static_path and html_extra_path
136
128
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/*' ]
138
130
139
131
# The name of the Pygments (syntax highlighting) style to use.
140
132
pygments_style = 'sphinx'
@@ -278,7 +270,7 @@ def run_apidoc(_):
278
270
"-f" ,
279
271
"-M" ,
280
272
"-o" , "." ,
281
- "../qtt"
273
+ "../src/ qtt"
282
274
] + ignore_paths
283
275
284
276
# Sphinx 1.7+
0 commit comments