|
12 | 12 | #
|
13 | 13 | import os
|
14 | 14 | import sys
|
15 |
| -sys.path.insert(0, os.path.abspath('../..')) |
| 15 | + |
| 16 | +sys.path.insert(0, os.path.abspath("../..")) |
16 | 17 | import datetime
|
17 | 18 |
|
18 | 19 | import icepyx
|
|
21 | 22 |
|
22 | 23 | # -- Project information -----------------------------------------------------
|
23 | 24 |
|
24 |
| -project = 'icepyx' |
| 25 | +project = "icepyx" |
25 | 26 | year = datetime.date.today().year
|
26 |
| -copyright = '2019-{}, The icepyx Developers'.format(year) |
| 27 | +copyright = "2019-{}, The icepyx Developers".format(year) |
27 | 28 |
|
28 | 29 | # -- General configuration ---------------------------------------------------
|
29 | 30 |
|
|
35 | 36 | "sphinx.ext.autosectionlabel",
|
36 | 37 | "numpydoc",
|
37 | 38 | "nbsphinx",
|
38 |
| - "recommonmark" |
39 |
| - |
| 39 | + "recommonmark", |
40 | 40 | ]
|
41 | 41 | source_suffix = {
|
42 |
| - '.rst': 'restructuredtext', |
43 |
| - '.txt': 'markdown', |
44 |
| - '.md': 'markdown', |
| 42 | + ".rst": "restructuredtext", |
| 43 | + ".txt": "markdown", |
| 44 | + ".md": "markdown", |
45 | 45 | }
|
46 | 46 | # Add any paths that contain templates here, relative to this directory.
|
47 |
| -templates_path = ['_templates'] |
| 47 | +templates_path = ["_templates"] |
48 | 48 |
|
49 | 49 | # List of patterns, relative to source directory, that match files and
|
50 | 50 | # directories to ignore when looking for source files.
|
51 | 51 | # This pattern also affects html_static_path and html_extra_path.
|
52 |
| -exclude_patterns = ['**.ipynb_checkpoints'] |
| 52 | +exclude_patterns = ["**.ipynb_checkpoints"] |
53 | 53 |
|
54 | 54 | # location of master document (by default sphinx looks for contents.rst)
|
55 |
| -master_doc = 'index' |
| 55 | +master_doc = "index" |
56 | 56 |
|
57 | 57 |
|
58 | 58 | # -- Configuration options ---------------------------------------------------
|
|
68 | 68 | # html_theme = 'alabaster'
|
69 | 69 | html_theme = "sphinx_rtd_theme"
|
70 | 70 | html_theme_options = {
|
71 |
| - 'logo_only': True, |
72 |
| - 'display_version': False, |
73 |
| - 'prev_next_buttons_location': None, |
74 |
| - 'navigation_depth': 4, |
75 |
| - 'collapse_navigation': True |
| 71 | + "logo_only": True, |
| 72 | + "display_version": False, |
| 73 | + "prev_next_buttons_location": None, |
| 74 | + "navigation_depth": 4, |
| 75 | + "collapse_navigation": True, |
76 | 76 | }
|
77 |
| -html_logo = '_static/icepyx_v2_oval_orig_nobackgr.png' |
78 |
| -html_favicon = '_static/icepyx_v2_oval_tiny-uml_nobackgr.png' |
79 |
| -html_static_path = ['_static'] |
| 77 | +html_logo = "_static/icepyx_v2_oval_orig_nobackgr.png" |
| 78 | +html_favicon = "_static/icepyx_v2_oval_tiny-uml_nobackgr.png" |
| 79 | +html_static_path = ["_static"] |
80 | 80 |
|
81 | 81 | html_context = {
|
82 |
| - 'menu_links_name': '', |
83 |
| - 'menu_links': [ |
84 |
| - ('<i class="fa fa-github fa-fw"></i> icepyx Github', 'https://github.com/icesat2py/icepyx'), |
85 |
| - ('<i class="fa fa-comments fa-fw"></i> Pangeo Discourse', 'https://discourse.pangeo.io/t/icepyx-python-tools-for-icesat-2-data/404/2') |
86 |
| - |
87 |
| - ] |
| 82 | + "menu_links_name": "", |
| 83 | + "menu_links": [ |
| 84 | + ( |
| 85 | + '<i class="fa fa-github fa-fw"></i> icepyx Github', |
| 86 | + "https://github.com/icesat2py/icepyx", |
| 87 | + ), |
| 88 | + ( |
| 89 | + '<i class="fa fa-comments fa-fw"></i> Pangeo Discourse', |
| 90 | + "https://discourse.pangeo.io/t/icepyx-python-tools-for-icesat-2-data/404/2", |
| 91 | + ), |
| 92 | + ], |
88 | 93 | }
|
89 | 94 |
|
| 95 | + |
90 | 96 | def setup(app):
|
91 | 97 | app.add_stylesheet("style.css")
|
0 commit comments