|
1 | 1 | import os
|
2 | 2 | import sys
|
3 |
| -sys.path.insert(0, os.path.abspath('../..')) # Source code dir relative to this file |
| 3 | + |
| 4 | +sys.path.insert( |
| 5 | + 0, os.path.abspath("../..") |
| 6 | +) # Source code dir relative to this file |
4 | 7 |
|
5 | 8 | extensions = [
|
6 |
| - 'sphinx.ext.autodoc','autoapi.extension','sphinx.ext.doctest' # Core library for html generation from docstrings |
| 9 | + "sphinx.ext.autodoc", |
| 10 | + "autoapi.extension", |
| 11 | + "sphinx.ext.viewcode", |
| 12 | + "sphinx.ext.doctest", # Core library for html generation from docstrings |
| 13 | + #"releases", |
7 | 14 | ]
|
8 | 15 |
|
9 |
| -autoapi_type = 'python' |
10 |
| -autoapi_dirs = ['../../jarvis'] |
11 |
| -autoapi_ignore = ['*test*'] |
| 16 | +autoapi_type = "python" |
| 17 | +autoapi_dirs = ["../../jarvis"] |
| 18 | +autoapi_ignore = ["*test*", "*examples*","*vasp_to_xml*"] |
| 19 | +#exclude_patterns = ["*vasp_to_xml*"] |
12 | 20 |
|
| 21 | +# 'releases' (changelog) settings |
| 22 | +#releases_issue_uri = "https://github.com/usnistgov/jarvis/issues/%s" |
| 23 | +#releases_release_uri = "https://github.com/usnistgov/jarvis/tree/%s" |
13 | 24 |
|
14 | 25 | # sys.path.append(os.path.dirname(__file__))
|
15 | 26 | # -- General configuration -----------------------------------------------------
|
16 | 27 |
|
17 | 28 |
|
18 |
| - |
19 | 29 | # Add any paths that contain templates here, relative to this directory.
|
20 |
| -templates_path = ['_templates'] |
| 30 | +templates_path = ["_templates"] |
21 | 31 |
|
22 | 32 | # The suffix of source filenames.
|
23 |
| -source_suffix = '.rst' |
| 33 | +source_suffix = ".rst" |
24 | 34 |
|
25 | 35 | # The encoding of source files.
|
26 |
| -#source_encoding = 'utf-8' |
| 36 | +# source_encoding = 'utf-8' |
27 | 37 |
|
28 | 38 | # The master toctree document.
|
29 |
| -master_doc = 'index' |
| 39 | +master_doc = "index" |
30 | 40 |
|
31 | 41 | # General information about the project.
|
32 |
| -project = u'JARVIS-Tools' |
33 |
| -copyright = u'2021, Kamal Choudhary' |
| 42 | +project = u"JARVIS-Tools" |
| 43 | +copyright = u"2021, Kamal Choudhary" |
34 | 44 |
|
35 | 45 | # The version info for the project you're documenting, acts as replacement for
|
36 | 46 | # |version| and |release|, also used in various other places throughout the
|
37 | 47 | # built documents.
|
38 | 48 | #
|
39 | 49 | # The short X.Y version.
|
40 | 50 | import jarvis
|
| 51 | + |
41 | 52 | version = jarvis.__version__
|
42 | 53 | # The full version, including alpha/beta/rc tags.
|
43 | 54 | # release = '0.9'
|
44 | 55 |
|
45 | 56 | # The language for content autogenerated by Sphinx. Refer to documentation
|
46 | 57 | # for a list of supported languages.
|
47 |
| -#language = None |
| 58 | +# language = None |
48 | 59 |
|
49 | 60 | # There are two options for replacing |today|: either, you set today to some
|
50 | 61 | # non-false value, then it is used:
|
51 |
| -#today = '' |
| 62 | +# today = '' |
52 | 63 | # Else, today_fmt is used as the format for a strftime call.
|
53 |
| -#today_fmt = '%B %d, %Y' |
| 64 | +# today_fmt = '%B %d, %Y' |
54 | 65 |
|
55 | 66 | # List of documents that shouldn't be included in the build.
|
56 |
| -#unused_docs = [] |
| 67 | +# unused_docs = [] |
57 | 68 |
|
58 | 69 | # List of directories, relative to source directory, that shouldn't be searched
|
59 | 70 | # for source files.
|
60 | 71 | exclude_trees = []
|
61 | 72 |
|
62 | 73 | # The reST default role (used for this markup: `text`) to use for all documents.
|
63 |
| -#default_role = None |
| 74 | +# default_role = None |
64 | 75 |
|
65 | 76 | # If true, '()' will be appended to :func: etc. cross-reference text.
|
66 |
| -#add_function_parentheses = True |
| 77 | +# add_function_parentheses = True |
67 | 78 |
|
68 | 79 | # If true, the current module name will be prepended to all description
|
69 | 80 | # unit titles (such as .. function::).
|
70 |
| -#add_module_names = True |
| 81 | +# add_module_names = True |
71 | 82 |
|
72 | 83 | # If true, sectionauthor and moduleauthor directives will be shown in the
|
73 | 84 | # output. They are ignored by default.
|
74 |
| -#show_authors = False |
| 85 | +# show_authors = False |
75 | 86 |
|
76 | 87 | # The name of the Pygments (syntax highlighting) style to use.
|
77 |
| -pygments_style = 'sphinx' |
| 88 | +pygments_style = "sphinx" |
78 | 89 |
|
79 | 90 | # A list of ignored prefixes for module index sorting.
|
80 |
| -#modindex_common_prefix = [] |
| 91 | +# modindex_common_prefix = [] |
81 | 92 |
|
82 | 93 |
|
83 | 94 | # -- Options for HTML output ---------------------------------------------------
|
|
94 | 105 | # further. For a list of options available for each theme, see the
|
95 | 106 | # documentation.
|
96 | 107 | html_theme_options = {
|
97 |
| - 'collapse_navigation': False, |
98 |
| - |
| 108 | + "collapse_navigation": False, |
99 | 109 | }
|
100 | 110 |
|
101 | 111 | # Add any paths that contain custom themes here, relative to this directory.
|
102 |
| -#html_theme_path = [] |
| 112 | +# html_theme_path = [] |
103 | 113 |
|
104 | 114 | # The name for this set of Sphinx documents. If None, it defaults to
|
105 | 115 | # "<project> v<release> documentation".
|
106 |
| -#html_title = None |
| 116 | +# html_title = None |
107 | 117 |
|
108 | 118 | # A shorter title for the navigation bar. Default is the same as html_title.
|
109 |
| -#html_short_title = None |
| 119 | +# html_short_title = None |
110 | 120 |
|
111 | 121 | # The name of an image file (relative to this directory) to place at the top
|
112 | 122 | # of the sidebar.
|
113 |
| -#html_logo = None |
| 123 | +# html_logo = None |
114 | 124 |
|
115 | 125 | # The name of an image file (within the static path) to use as favicon of the
|
116 | 126 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
117 | 127 | # pixels large.
|
118 |
| -#html_favicon = None |
| 128 | +# html_favicon = None |
119 | 129 |
|
120 | 130 | # Add any paths that contain custom static files (such as style sheets) here,
|
121 | 131 | # relative to this directory. They are copied after the builtin static files,
|
122 | 132 | # so a file named "default.css" will overwrite the builtin "default.css".
|
123 |
| -html_static_path = ['_static'] |
| 133 | +html_static_path = ["_static"] |
124 | 134 |
|
125 | 135 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
126 | 136 | # using the given strftime format.
|
127 |
| -#html_last_updated_fmt = '%b %d, %Y' |
| 137 | +# html_last_updated_fmt = '%b %d, %Y' |
128 | 138 |
|
129 | 139 | # If true, SmartyPants will be used to convert quotes and dashes to
|
130 | 140 | # typographically correct entities.
|
131 |
| -#html_use_smartypants = True |
| 141 | +# html_use_smartypants = True |
132 | 142 |
|
133 | 143 | # Custom sidebar templates, maps document names to template names.
|
134 |
| -#html_sidebars = {} |
| 144 | +# html_sidebars = {} |
135 | 145 |
|
136 | 146 | # Additional templates that should be rendered to pages, maps page names to
|
137 | 147 | # template names.
|
138 |
| -#html_additional_pages = {} |
| 148 | +# html_additional_pages = {} |
139 | 149 |
|
140 | 150 | # If false, no module index is generated.
|
141 |
| -#html_use_modindex = True |
| 151 | +# html_use_modindex = True |
142 | 152 |
|
143 | 153 | # If false, no index is generated.
|
144 |
| -#html_use_index = True |
| 154 | +# html_use_index = True |
145 | 155 |
|
146 | 156 | # If true, the index is split into individual pages for each letter.
|
147 |
| -#html_split_index = False |
| 157 | +# html_split_index = False |
148 | 158 |
|
149 | 159 | # If true, links to the reST sources are added to the pages.
|
150 |
| -#html_show_sourcelink = True |
| 160 | +# html_show_sourcelink = True |
151 | 161 |
|
152 | 162 | # If true, an OpenSearch description file will be output, and all pages will
|
153 | 163 | # contain a <link> tag referring to it. The value of this option must be the
|
154 | 164 | # base URL from which the finished HTML is served.
|
155 |
| -#html_use_opensearch = '' |
| 165 | +# html_use_opensearch = '' |
156 | 166 |
|
157 | 167 | # If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
|
158 |
| -#html_file_suffix = '' |
| 168 | +# html_file_suffix = '' |
159 | 169 |
|
160 | 170 | # Output file base name for HTML help builder.
|
161 |
| -htmlhelp_basename = 'jarvis-tools' |
162 |
| - |
| 171 | +htmlhelp_basename = "jarvis-tools" |
| 172 | +# html_style = "css/mystyle.css" |
163 | 173 |
|
164 | 174 | # -- Options for LaTeX output --------------------------------------------------
|
165 | 175 |
|
166 | 176 | # The paper size ('letter' or 'a4').
|
167 |
| -#latex_paper_size = 'letter' |
| 177 | +# latex_paper_size = 'letter' |
168 | 178 |
|
169 | 179 | # The font size ('10pt', '11pt' or '12pt').
|
170 |
| -#latex_font_size = '10pt' |
| 180 | +# latex_font_size = '10pt' |
171 | 181 |
|
172 | 182 | # Grouping the document tree into LaTeX files. List of tuples
|
173 | 183 | # (source start file, target name, title, author, documentclass [howto/manual]).
|
174 | 184 | latex_documents = [
|
175 |
| - ('index', 'jarvis-tools.tex', u'JARVIS-Tools Documentation', |
176 |
| - u'Kamal Choudhary', 'manual'), |
| 185 | + ( |
| 186 | + "index", |
| 187 | + "jarvis-tools.tex", |
| 188 | + u"JARVIS-Tools Documentation", |
| 189 | + u"Kamal Choudhary", |
| 190 | + "manual", |
| 191 | + ), |
177 | 192 | ]
|
178 | 193 |
|
179 | 194 | # The name of an image file (relative to this directory) to place at the top of
|
180 | 195 | # the title page.
|
181 |
| -#latex_logo = None |
| 196 | +# latex_logo = None |
182 | 197 |
|
183 | 198 | # For "manual" documents, if this is true, then toplevel headings are parts,
|
184 | 199 | # not chapters.
|
185 |
| -#latex_use_parts = False |
| 200 | +# latex_use_parts = False |
186 | 201 |
|
187 | 202 | # Additional stuff for the LaTeX preamble.
|
188 |
| -#latex_preamble = '' |
| 203 | +# latex_preamble = '' |
189 | 204 |
|
190 | 205 | # Documents to append as an appendix to all manuals.
|
191 |
| -#latex_appendices = [] |
| 206 | +# latex_appendices = [] |
192 | 207 |
|
193 | 208 | # If false, no module index is generated.
|
194 |
| -#latex_use_modindex = True |
| 209 | +# latex_use_modindex = True |
195 | 210 |
|
196 | 211 |
|
197 | 212 | # Example configuration for intersphinx: refer to the Python standard library.
|
198 |
| -intersphinx_mapping = {'http://docs.python.org/': None} |
199 |
| -language = 'en' |
| 213 | +intersphinx_mapping = {"http://docs.python.org/": None} |
| 214 | +language = "en" |
0 commit comments