|
18 | 18 | # |
19 | 19 | import os |
20 | 20 | import sys |
| 21 | + |
21 | 22 | import gwmemory |
22 | | -sys.path.insert(0, os.path.abspath('../')) |
| 23 | + |
| 24 | +sys.path.insert(0, os.path.abspath("../")) |
23 | 25 |
|
24 | 26 | # -- General configuration ------------------------------------------------ |
25 | 27 |
|
|
30 | 32 | # Add any Sphinx extension module names here, as strings. They can be |
31 | 33 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
32 | 34 | # ones. |
33 | | -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.mathjax', 'numpydoc', |
34 | | - 'nbsphinx', 'sphinx.ext.autosummary'] |
| 35 | +extensions = [ |
| 36 | + "sphinx.ext.autodoc", |
| 37 | + "sphinx.ext.mathjax", |
| 38 | + "numpydoc", |
| 39 | + "nbsphinx", |
| 40 | + "sphinx.ext.autosummary", |
| 41 | +] |
35 | 42 |
|
36 | 43 | # Add any paths that contain templates here, relative to this directory. |
37 | | -templates_path = ['_templates'] |
| 44 | +templates_path = ["_templates"] |
38 | 45 |
|
39 | 46 | # The suffix(es) of source filenames. |
40 | 47 | # You can specify multiple suffix as a list of string: |
41 | 48 | # |
42 | | -source_suffix = ['.rst', '.md', '.txt'] |
| 49 | +source_suffix = [".rst", ".md", ".txt"] |
43 | 50 | # source_suffix = '.txt' |
44 | 51 |
|
45 | 52 | # The master toctree document. |
46 | | -master_doc = 'index' |
| 53 | +master_doc = "index" |
47 | 54 |
|
48 | 55 | # General information about the project. |
49 | | -project = u'GWMemory' |
50 | | -copyright = u'2018, Colm Talbot' |
51 | | -author = u'Colm Talbot' |
| 56 | +project = "GWMemory" |
| 57 | +copyright = "2018, Colm Talbot" |
| 58 | +author = "Colm Talbot" |
52 | 59 |
|
53 | 60 |
|
54 | 61 | # The version info for the project you're documenting, acts as replacement for |
55 | 62 | # |version| and |release|, also used in various other places throughout the |
56 | 63 | # built documents. |
57 | 64 | # |
58 | 65 | # The short X.Y version. |
59 | | -fullversion = gwmemory.__version__.split(':')[0] |
60 | | -version = '.'.join(fullversion.split('.')[:2]) |
| 66 | +fullversion = gwmemory.__version__.split(":")[0] |
| 67 | +version = ".".join(fullversion.split(".")[:2]) |
61 | 68 | # The full version, including alpha/beta/rc tags. |
62 | 69 | release = fullversion |
63 | 70 |
|
|
71 | 78 | # List of patterns, relative to source directory, that match files and |
72 | 79 | # directories to ignore when looking for source files. |
73 | 80 | # This patterns also effect to html_static_path and html_extra_path |
74 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'requirements.txt'] |
| 81 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "requirements.txt"] |
75 | 82 |
|
76 | 83 | # The name of the Pygments (syntax highlighting) style to use. |
77 | | -pygments_style = 'sphinx' |
| 84 | +pygments_style = "sphinx" |
78 | 85 |
|
79 | 86 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
80 | 87 | todo_include_todos = False |
|
85 | 92 | # The theme to use for HTML and HTML Help pages. See the documentation for |
86 | 93 | # a list of builtin themes. |
87 | 94 | # |
88 | | -html_theme = 'sphinx_rtd_theme' |
| 95 | +html_theme = "sphinx_rtd_theme" |
89 | 96 |
|
90 | 97 | # Theme options are theme-specific and customize the look and feel of a theme |
91 | 98 | # further. For a list of options available for each theme, see the |
|
96 | 103 | # Add any paths that contain custom static files (such as style sheets) here, |
97 | 104 | # relative to this directory. They are copied after the builtin static files, |
98 | 105 | # so a file named "default.css" will overwrite the builtin "default.css". |
99 | | -html_static_path = ['_static'] |
| 106 | +html_static_path = ["_static"] |
100 | 107 |
|
101 | 108 | # Custom sidebar templates, must be a dictionary that maps document names |
102 | 109 | # to template names. |
103 | 110 | # |
104 | 111 | # This is required for the alabaster theme |
105 | 112 | # refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars |
106 | 113 | html_sidebars = { |
107 | | - '**': [ |
108 | | - 'about.html', |
109 | | - 'navigation.html', |
110 | | - 'relations.html', # needs 'show_related': True theme option to display |
111 | | - 'searchbox.html', |
112 | | - 'donate.html', |
| 114 | + "**": [ |
| 115 | + "about.html", |
| 116 | + "navigation.html", |
| 117 | + "relations.html", # needs 'show_related': True theme option to display |
| 118 | + "searchbox.html", |
| 119 | + "donate.html", |
113 | 120 | ] |
114 | 121 | } |
115 | 122 |
|
116 | 123 |
|
117 | 124 | # -- Options for HTMLHelp output ------------------------------------------ |
118 | 125 |
|
119 | 126 | # Output file base name for HTML help builder. |
120 | | -htmlhelp_basename = 'gwmemorydoc' |
| 127 | +htmlhelp_basename = "gwmemorydoc" |
121 | 128 |
|
122 | 129 |
|
123 | 130 | # -- Options for LaTeX output --------------------------------------------- |
|
126 | 133 | # The paper size ('letterpaper' or 'a4paper'). |
127 | 134 | # |
128 | 135 | # 'papersize': 'letterpaper', |
129 | | - |
130 | 136 | # The font size ('10pt', '11pt' or '12pt'). |
131 | 137 | # |
132 | 138 | # 'pointsize': '10pt', |
133 | | - |
134 | 139 | # Additional stuff for the LaTeX preamble. |
135 | 140 | # |
136 | 141 | # 'preamble': '', |
137 | | - |
138 | 142 | # Latex figure (float) alignment |
139 | 143 | # |
140 | 144 | # 'figure_align': 'htbp', |
|
144 | 148 | # (source start file, target name, title, |
145 | 149 | # author, documentclass [howto, manual, or own class]). |
146 | 150 | latex_documents = [ |
147 | | - (master_doc, 'gwmemory.tex', u'GWMemory Documentation', |
148 | | - u'Colm Talbot', 'manual'), |
| 151 | + (master_doc, "gwmemory.tex", "GWMemory Documentation", "Colm Talbot", "manual"), |
149 | 152 | ] |
150 | 153 |
|
151 | 154 |
|
152 | 155 | # -- Options for manual page output --------------------------------------- |
153 | 156 |
|
154 | 157 | # One entry per manual page. List of tuples |
155 | 158 | # (source start file, name, description, authors, manual section). |
156 | | -man_pages = [ |
157 | | - (master_doc, 'GWMemory', u'GWMemory Documentation', |
158 | | - [author], 1) |
159 | | -] |
| 159 | +man_pages = [(master_doc, "GWMemory", "GWMemory Documentation", [author], 1)] |
160 | 160 |
|
161 | 161 |
|
162 | 162 | # -- Options for Texinfo output ------------------------------------------- |
|
165 | 165 | # (source start file, target name, title, author, |
166 | 166 | # dir menu entry, description, category) |
167 | 167 | texinfo_documents = [ |
168 | | - (master_doc, 'GWMemory', u'GWMemory Documentation', |
169 | | - author, 'Colm Talbot', 'Arbitrary gravitational-wave memory waveforms.', |
170 | | - 'Miscellaneous'), |
| 168 | + ( |
| 169 | + master_doc, |
| 170 | + "GWMemory", |
| 171 | + "GWMemory Documentation", |
| 172 | + author, |
| 173 | + "Colm Talbot", |
| 174 | + "Arbitrary gravitational-wave memory waveforms.", |
| 175 | + "Miscellaneous", |
| 176 | + ), |
171 | 177 | ] |
172 | 178 |
|
173 | 179 | numpydoc_show_class_members = False |
0 commit comments