|
22 | 22 | # |
23 | 23 | import os |
24 | 24 | import sys |
25 | | -sys.path.insert(0, os.path.abspath('./../orbitize')) # location of orbitize files with docstrings |
| 25 | + |
| 26 | +sys.path.insert( |
| 27 | + 0, os.path.abspath("./../orbitize") |
| 28 | +) # location of orbitize files with docstrings |
26 | 29 |
|
27 | 30 |
|
28 | 31 | # -- General configuration ------------------------------------------------ |
|
35 | 38 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
36 | 39 | # ones. |
37 | 40 | extensions = [ |
38 | | - 'sphinx_rtd_theme', |
39 | | - 'sphinx.ext.autodoc', |
40 | | - 'sphinx.ext.doctest', |
41 | | - 'sphinx.ext.todo', |
42 | | - 'sphinx.ext.mathjax', |
43 | | - 'sphinx.ext.napoleon', # allows Google style-guide docs to render more prettily |
44 | | - 'sphinx.ext.viewcode', |
45 | | - 'nbsphinx' |
46 | | - ] |
| 41 | + "sphinx_rtd_theme", |
| 42 | + "sphinx.ext.autodoc", |
| 43 | + "sphinx.ext.doctest", |
| 44 | + "sphinx.ext.todo", |
| 45 | + "sphinx.ext.mathjax", |
| 46 | + "sphinx.ext.napoleon", # allows Google style-guide docs to render more prettily |
| 47 | + "sphinx.ext.viewcode", |
| 48 | + "nbsphinx", |
| 49 | +] |
47 | 50 |
|
48 | 51 | # Disable notebook timeout |
49 | 52 | nbsphinx_timeout = -1 |
50 | 53 |
|
| 54 | +# Only re-run notebooks that have no outputs |
| 55 | +nbsphinx_execute = "auto" |
| 56 | + |
51 | 57 | # Allow notebook errors |
52 | | -nbsphinx_allow_errors = True |
| 58 | +nbsphinx_allow_errors = False |
53 | 59 |
|
54 | 60 | # Add any paths that contain templates here, relative to this directory. |
55 | | -templates_path = ['_templates'] |
| 61 | +templates_path = ["_templates"] |
56 | 62 |
|
57 | 63 | # The suffix(es) of source filenames. |
58 | 64 | # You can specify multiple suffix as a list of string: |
59 | 65 | # |
60 | 66 | # source_suffix = ['.rst', '.md'] |
61 | | -source_suffix = '.rst' |
| 67 | +source_suffix = ".rst" |
62 | 68 |
|
63 | 69 | # The master toctree document. |
64 | | -master_doc = 'index' |
| 70 | +master_doc = "index" |
65 | 71 |
|
66 | 72 | # General information about the project. |
67 | | -project = 'orbitize' |
68 | | -copyright = '2018, Sarah Blunt, Jason Wang, Isabel Angelo, Henry Ngo, et al' |
69 | | -author = 'Sarah Blunt, Jason Wang, Isabel Angelo, Henry Ngo, et al' |
| 73 | +project = "orbitize" |
| 74 | +copyright = "2018, Sarah Blunt, Jason Wang, Isabel Angelo, Henry Ngo, et al" |
| 75 | +author = "Sarah Blunt, Jason Wang, Isabel Angelo, Henry Ngo, et al" |
70 | 76 |
|
71 | 77 | # The version info for the project you're documenting, acts as replacement for |
72 | 78 | # |version| and |release|, also used in various other places throughout the |
|
75 | 81 | # The short X.Y version. |
76 | 82 | version = orbitize.__version__ |
77 | 83 | # The full version, including alpha/beta/rc tags. |
78 | | -#release = '0.1' |
| 84 | +# release = '0.1' |
79 | 85 |
|
80 | 86 | # The language for content autogenerated by Sphinx. Refer to documentation |
81 | 87 | # for a list of supported languages. |
|
90 | 96 | exclude_patterns = [] |
91 | 97 |
|
92 | 98 | # The name of the Pygments (syntax highlighting) style to use. |
93 | | -pygments_style = 'sphinx' |
| 99 | +pygments_style = "sphinx" |
94 | 100 |
|
95 | 101 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
96 | 102 | todo_include_todos = True |
|
101 | 107 | # The theme to use for HTML and HTML Help pages. See the documentation for |
102 | 108 | # a list of builtin themes. |
103 | 109 | # |
104 | | -html_theme = 'sphinx_rtd_theme' |
| 110 | +html_theme = "sphinx_rtd_theme" |
105 | 111 |
|
106 | 112 | # Theme options are theme-specific and customize the look and feel of a theme |
107 | 113 | # further. For a list of options available for each theme, see the |
|
111 | 117 |
|
112 | 118 | # The name of an image file (relative to this directory) to place at the top |
113 | 119 | # of the sidebar. |
114 | | -#html_logo = 'orbitize_logo_150.png' |
| 120 | +# html_logo = 'orbitize_logo_150.png' |
115 | 121 |
|
116 | 122 | # The name of an image file (within the static path) to use as favicon of the |
117 | 123 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
118 | 124 | # pixels large. |
119 | | -html_favicon = 'favicon.ico' |
| 125 | +html_favicon = "favicon.ico" |
120 | 126 |
|
121 | 127 | # Add any paths that contain custom static files (such as style sheets) here, |
122 | 128 | # relative to this directory. They are copied after the builtin static files, |
|
129 | 135 | # This is required for the alabaster theme |
130 | 136 | # refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars |
131 | 137 | html_sidebars = { |
132 | | - '**': [ |
133 | | - 'relations.html', # needs 'show_related': True theme option to display |
134 | | - 'searchbox.html', |
| 138 | + "**": [ |
| 139 | + "relations.html", # needs 'show_related': True theme option to display |
| 140 | + "searchbox.html", |
135 | 141 | ] |
136 | 142 | } |
137 | 143 |
|
138 | 144 |
|
139 | 145 | # -- Options for HTMLHelp output ------------------------------------------ |
140 | 146 |
|
141 | 147 | # Output file base name for HTML help builder. |
142 | | -htmlhelp_basename = 'orbitizedoc' |
| 148 | +htmlhelp_basename = "orbitizedoc" |
143 | 149 |
|
144 | 150 |
|
145 | 151 | # -- Options for LaTeX output --------------------------------------------- |
|
148 | 154 | # The paper size ('letterpaper' or 'a4paper'). |
149 | 155 | # |
150 | 156 | # 'papersize': 'letterpaper', |
151 | | - |
152 | 157 | # The font size ('10pt', '11pt' or '12pt'). |
153 | 158 | # |
154 | 159 | # 'pointsize': '10pt', |
155 | | - |
156 | 160 | # Additional stuff for the LaTeX preamble. |
157 | 161 | # |
158 | 162 | # 'preamble': '', |
159 | | - |
160 | 163 | # Latex figure (float) alignment |
161 | 164 | # |
162 | 165 | # 'figure_align': 'htbp', |
|
166 | 169 | # (source start file, target name, title, |
167 | 170 | # author, documentclass [howto, manual, or own class]). |
168 | 171 | latex_documents = [ |
169 | | - (master_doc, 'orbitize.tex', 'orbitize Documentation', |
170 | | - 'Sarah Blunt, Jason Wang, Henry Ngo, et al.', 'manual'), |
| 172 | + ( |
| 173 | + master_doc, |
| 174 | + "orbitize.tex", |
| 175 | + "orbitize Documentation", |
| 176 | + "Sarah Blunt, Jason Wang, Henry Ngo, et al.", |
| 177 | + "manual", |
| 178 | + ), |
171 | 179 | ] |
172 | 180 |
|
173 | 181 |
|
174 | 182 | # -- Options for manual page output --------------------------------------- |
175 | 183 |
|
176 | 184 | # One entry per manual page. List of tuples |
177 | 185 | # (source start file, name, description, authors, manual section). |
178 | | -man_pages = [ |
179 | | - (master_doc, 'orbitize', 'orbitize Documentation', |
180 | | - [author], 1) |
181 | | -] |
| 186 | +man_pages = [(master_doc, "orbitize", "orbitize Documentation", [author], 1)] |
182 | 187 |
|
183 | 188 |
|
184 | 189 | # -- Options for Texinfo output ------------------------------------------- |
|
187 | 192 | # (source start file, target name, title, author, |
188 | 193 | # dir menu entry, description, category) |
189 | 194 | texinfo_documents = [ |
190 | | - (master_doc, 'orbitize', 'orbitize Documentation', |
191 | | - author, 'orbitize', 'One line description of project.', |
192 | | - 'Miscellaneous'), |
| 195 | + ( |
| 196 | + master_doc, |
| 197 | + "orbitize", |
| 198 | + "orbitize Documentation", |
| 199 | + author, |
| 200 | + "orbitize", |
| 201 | + "One line description of project.", |
| 202 | + "Miscellaneous", |
| 203 | + ), |
193 | 204 | ] |
194 | | - |
195 | | - |
196 | | - |
|
0 commit comments