2121# http://www.sphinx-doc.org/en/master/config
2222
2323import os
24- import sys
2524
2625# -- Project information -----------------------------------------------------
2726
28- project = u' StructureFinder'
29- copyright = u' 2024, NWChemEx Community'
30- author = u' NWChemEx Community'
27+ project = " StructureFinder"
28+ copyright = " 2024, NWChemEx Community"
29+ author = " NWChemEx Community"
3130
3231# Get the version from version.txt
33- version = ' 1.0.0'
32+ version = " 1.0.0"
3433# The full version, including alpha/beta/rc tags
3534release = version
3635
3736# -- General configuration ---------------------------------------------------
3837
3938# We use numref which is introduced in Sphinx 1.3
40- needs_sphinx = ' 1.3'
39+ needs_sphinx = " 1.3"
4140
4241# Add any Sphinx extension module names here, as strings. They can be
4342# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4443# ones.
4544extensions = [
46- 'sphinx.ext.doctest' , 'sphinx.ext.todo' , 'sphinx.ext.coverage' ,
47- 'sphinx.ext.mathjax' , 'sphinx.ext.githubpages' , 'autoapi.extension'
45+ "sphinx.ext.doctest" ,
46+ "sphinx.ext.todo" ,
47+ "sphinx.ext.coverage" ,
48+ "sphinx.ext.mathjax" ,
49+ "sphinx.ext.githubpages" ,
50+ "autoapi.extension" ,
4851]
4952dir_path = os .path .dirname (os .path .realpath (__file__ ))
5053doc_path = os .path .dirname (dir_path )
5760# You can specify multiple suffix as a list of string:
5861#
5962# source_suffix = ['.rst', '.md']
60- source_suffix = ' .rst'
63+ source_suffix = " .rst"
6164
6265# The master toctree document.
63- master_doc = ' index'
66+ master_doc = " index"
6467
6568# The language for content autogenerated by Sphinx. Refer to documentation
6669# for a list of supported languages.
6770#
6871# This is also used if you do content translation via gettext catalogs.
6972# Usually you set "language" from the command line for these cases.
70- language = 'en'
73+ language = "en"
7174
7275# List of patterns, relative to source directory, that match files and
7376# directories to ignore when looking for source files.
7477# This pattern also affects html_static_path and html_extra_path .
7578exclude_patterns = []
7679
7780# The name of the Pygments (syntax highlighting) style to use.
78- pygments_style = ' sphinx'
81+ pygments_style = " sphinx"
7982
8083# Should figures be numbered?
8184numfig = True
8588# The theme to use for HTML and HTML Help pages. See the documentation for
8689# a list of builtin themes.
8790#
88- html_theme = ' sphinx_rtd_theme'
91+ html_theme = " sphinx_rtd_theme"
8992
9093# Theme options are theme-specific and customize the look and feel of a theme
9194# further. For a list of options available for each theme, see the
111114# -- Options for HTMLHelp output ---------------------------------------------
112115
113116# Output file base name for HTML help builder.
114- htmlhelp_basename = project + ' doc'
117+ htmlhelp_basename = project + " doc"
115118
116119# -- Options for LaTeX output ------------------------------------------------
117120
118121latex_elements = {
119122 # The paper size ('letterpaper' or 'a4paper').
120123 #
121124 # 'papersize': 'letterpaper',
122-
123125 # The font size ('10pt', '11pt' or '12pt').
124126 #
125127 # 'pointsize': '10pt',
126-
127128 # Additional stuff for the LaTeX preamble.
128129 #
129130 # 'preamble': '',
130-
131131 # Latex figure (float) alignment
132132 #
133133 # 'figure_align': 'htbp',
137137# (source start file, target name, title,
138138# author, documentclass [howto, manual, or own class]).
139139latex_documents = [
140- (master_doc , project + '.tex' , project + ' Documentation' , author ,
141- 'manual' ),
140+ (
141+ master_doc ,
142+ project + ".tex" ,
143+ project + " Documentation" ,
144+ author ,
145+ "manual" ,
146+ ),
142147]
143148
144149# -- Options for manual page output ------------------------------------------
145150
146151# One entry per manual page. List of tuples
147152# (source start file, name, description, authors, manual section).
148- man_pages = [(master_doc , project .lower (), project + ' Documentation' ,
149- [author ], 1 )]
153+ man_pages = [
154+ (master_doc , project .lower (), project + " Documentation" , [author ], 1 )
155+ ]
150156
151157# -- Options for Texinfo output ----------------------------------------------
152158
153159# Grouping the document tree into Texinfo files. List of tuples
154160# (source start file, target name, title, author,
155161# dir menu entry, description, category)
156162texinfo_documents = [
157- (master_doc , project , project + ' Documentation' , author , project ,
158- 'One line description of project.' , 'Miscellaneous' ),
163+ (
164+ master_doc ,
165+ project ,
166+ project + " Documentation" ,
167+ author ,
168+ project ,
169+ "One line description of project." ,
170+ "Miscellaneous" ,
171+ ),
159172]
160173
161174# -- Extension configuration -------------------------------------------------
162175autoapi_dirs = [
163- ' ../../src' ,
176+ " ../../src" ,
164177 # '../../tests',
165178]
166179autoapi_add_toctree_entry = False
167180autoapi_options = [
168- ' members' ,
169- ' undoc-members' ,
170- ' private-members' ,
171- ' show-inheritance' ,
172- ' show-module-summary' ,
173- ' special-members' ,
181+ " members" ,
182+ " undoc-members" ,
183+ " private-members" ,
184+ " show-inheritance" ,
185+ " show-module-summary" ,
186+ " special-members" ,
174187 # 'imported-members',
175188]
176189
177190
178191# This skips classes that derived from ModuleBase, because those classes will
179192# have Module API documentation producable by PluginPlay
180193def skip_pluginplay_modules (app , what , name , obj , skip , options ):
181- bases = obj .obj [' bases' ] if ' bases' in obj .obj .keys () else []
182- if ' pluginplay.ModuleBase' in bases :
194+ bases = obj .obj [" bases" ] if " bases" in obj .obj .keys () else []
195+ if " pluginplay.ModuleBase" in bases :
183196 skip = True
184197 return skip
185198
@@ -191,7 +204,7 @@ def setup(sphinx):
191204# -- Options for intersphinx extension ---------------------------------------
192205
193206# Example configuration for intersphinx: refer to the Python standard library.
194- intersphinx_mapping = {' https://docs.python.org/' : None }
207+ intersphinx_mapping = {" https://docs.python.org/" : None }
195208
196209# -- Options for todo extension ----------------------------------------------
197210
@@ -203,7 +216,7 @@ def setup(sphinx):
203216# Nitpick requires all references to be resolved
204217# This will ignore those that references that can't be linked
205218nitpick_ignore = []
206- for line in open (' nitpick_exceptions' ):
219+ for line in open (" nitpick_exceptions" ):
207220 if line .strip () == "" or line .startswith ("#" ):
208221 continue
209222 dtype , target = line .split (None , 1 )
0 commit comments