|
24 | 24 | # https://github.com/pypa/setuptools/issues/3044
|
25 | 25 | import distutils # noqa: F401
|
26 | 26 | import pandas as pd
|
| 27 | + |
27 | 28 | pd.show_versions()
|
28 | 29 |
|
29 | 30 | # If extensions (or modules to document with autodoc) are in another directory,
|
|
54 | 55 | 'IPython.sphinxext.ipython_console_highlighting',
|
55 | 56 | 'sphinx_gallery.gen_gallery',
|
56 | 57 | 'sphinx_toggleprompt',
|
| 58 | + 'sphinx_favicon', |
57 | 59 | ]
|
58 | 60 |
|
59 | 61 | mathjax3_config = {'chtml': {'displayAlign': 'left',
|
|
83 | 85 | # |version| and |release|, also used in various other places throughout the
|
84 | 86 | # built documents.
|
85 | 87 |
|
86 |
| -import pvlib |
| 88 | +import pvlib # noqa: E402 |
87 | 89 |
|
88 | 90 | # The short X.Y version.
|
89 | 91 | version = '%s' % (pvlib.__version__)
|
|
142 | 144 | # https://pydata-sphinx-theme.rtfd.io/en/latest/user_guide/configuring.html
|
143 | 145 | html_theme_options = {
|
144 | 146 | "github_url": "https://github.com/pvlib/pvlib-python",
|
145 |
| - "favicons": [ |
146 |
| - {"rel": "icon", "sizes": "16x16", "href": "favicon-16x16.png"}, |
147 |
| - {"rel": "icon", "sizes": "32x32", "href": "favicon-32x32.png"}, |
148 |
| - ], |
149 | 147 | "icon_links": [
|
150 | 148 | {
|
151 | 149 | "name": "StackOverflow",
|
|
165 | 163 | ],
|
166 | 164 | "use_edit_page_button": True,
|
167 | 165 | "show_toc_level": 1,
|
168 |
| - "footer_items": ["copyright", "sphinx-version", "sidebar-ethical-ads"], |
169 |
| - "left_sidebar_end": [], |
170 |
| -} |
| 166 | + # "footer_start": [], # "copyright", "sphinx-version" |
| 167 | + # "footer_center": [], |
| 168 | + "footer_end": [], |
| 169 | + # "primary_sidebar_end": [], |
| 170 | + # https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/layout.html#hide-the-previous-and-next-buttons |
| 171 | + "show_prev_next": False, # disable next/previous links |
| 172 | +} # noqa: E501 |
| 173 | + |
| 174 | +# Add favicons from extension sphinx_favicon |
| 175 | +favicons = [ |
| 176 | + {"rel": "icon", "sizes": "16x16", "href": "favicon-16x16.png"}, |
| 177 | + {"rel": "icon", "sizes": "32x32", "href": "favicon-32x32.png"}, |
| 178 | +] |
| 179 | + |
171 | 180 |
|
172 | 181 | # Add any paths that contain custom themes here, relative to this directory.
|
173 |
| -#html_theme_path = [] |
| 182 | +# html_theme_path = [] |
174 | 183 |
|
175 | 184 | # The name for this set of Sphinx documents. If None, it defaults to
|
176 | 185 | # "<project> v<release> documentation".
|
|
196 | 205 | # Add any extra paths that contain custom files (such as robots.txt or
|
197 | 206 | # .htaccess) here, relative to this directory. These files are copied
|
198 | 207 | # directly to the root of the documentation.
|
199 |
| -#html_extra_path = [] |
| 208 | +# html_extra_path = [] |
200 | 209 |
|
201 | 210 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
202 | 211 | # using the given strftime format.
|
203 |
| -#html_last_updated_fmt = '%b %d, %Y' |
| 212 | +# html_last_updated_fmt = '%b %d, %Y' |
204 | 213 |
|
205 | 214 | # If true, SmartyPants will be used to convert quotes and dashes to
|
206 | 215 | # typographically correct entities.
|
207 |
| -#html_use_smartypants = True |
| 216 | +# html_use_smartypants = True |
208 | 217 |
|
209 | 218 | # Custom sidebar templates, maps document names to template names.
|
210 |
| -# html_sidebars = {} |
| 219 | +# html_sidebars = { |
| 220 | +# "**": ["sidebar-nav-bs"] |
| 221 | +# } |
211 | 222 |
|
212 | 223 | # Additional templates that should be rendered to pages, maps page names to
|
213 | 224 | # template names.
|
214 |
| -#html_additional_pages = {} |
| 225 | +# html_additional_pages = {} |
215 | 226 |
|
216 | 227 | # If false, no module index is generated.
|
217 |
| -#html_domain_indices = True |
| 228 | +# html_domain_indices = True |
218 | 229 |
|
219 | 230 | # If false, no index is generated.
|
220 |
| -#html_use_index = True |
| 231 | +# html_use_index = True |
221 | 232 |
|
222 | 233 | # If true, the index is split into individual pages for each letter.
|
223 |
| -#html_split_index = False |
| 234 | +# html_split_index = False |
224 | 235 |
|
225 | 236 | # If true, links to the reST sources are added to the pages.
|
226 |
| -#html_show_sourcelink = True |
| 237 | +html_show_sourcelink = False |
227 | 238 |
|
228 | 239 | # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
229 |
| -#html_show_sphinx = True |
| 240 | +# html_show_sphinx = True |
230 | 241 |
|
231 | 242 | # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
232 |
| -html_show_copyright = False |
| 243 | +# html_show_copyright = False |
233 | 244 |
|
234 | 245 | # If true, an OpenSearch description file will be output, and all pages will
|
235 | 246 | # contain a <link> tag referring to it. The value of this option must be the
|
@@ -297,12 +308,15 @@ def setup(app):
|
297 | 308 |
|
298 | 309 | # extlinks alias
|
299 | 310 | extlinks = {
|
300 |
| - 'issue': ('https://github.com/pvlib/pvlib-python/issues/%s', 'GH'), |
301 |
| - 'pull': ('https://github.com/pvlib/pvlib-python/pull/%s', 'GH'), |
302 |
| - 'wiki': ('https://github.com/pvlib/pvlib-python/wiki/%s', 'wiki '), |
303 |
| - 'doi': ('http://dx.doi.org/%s', 'DOI: '), |
304 |
| - 'ghuser': ('https://github.com/%s', '@'), |
305 |
| - 'discuss': ('https://github.com/pvlib/pvlib-python/discussions/%s', 'GH'), |
| 311 | + "issue": ("https://github.com/pvlib/pvlib-python/issues/%s", "GH%s"), |
| 312 | + "pull": ("https://github.com/pvlib/pvlib-python/pull/%s", "GH%s"), |
| 313 | + "wiki": ("https://github.com/pvlib/pvlib-python/wiki/%s", "wiki %s"), |
| 314 | + "doi": ("http://dx.doi.org/%s", "DOI: %s"), |
| 315 | + "ghuser": ("https://github.com/%s", "@%s"), |
| 316 | + "discuss": ( |
| 317 | + "https://github.com/pvlib/pvlib-python/discussions/%s", |
| 318 | + "GH%s", |
| 319 | + ), |
306 | 320 | }
|
307 | 321 |
|
308 | 322 | # -- Options for manual page output ---------------------------------------
|
|
0 commit comments