|
26 | 26 | # -- General configuration ------------------------------------------------ |
27 | 27 |
|
28 | 28 | # RTD |
29 | | -on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
| 29 | +on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
30 | 30 |
|
31 | 31 | show_authors = True |
32 | 32 |
|
|
37 | 37 | # Add any Sphinx extension module names here, as strings. They can be |
38 | 38 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
39 | 39 | # ones. |
40 | | -extensions = ['sphinx.ext.mathjax', |
41 | | - 'breathe', |
42 | | - 'sphinx_copybutton', |
43 | | - 'sphinx_design', |
44 | | - 'sphinxcontrib.googleanalytics', |
45 | | - 'sphinxcontrib.programoutput', |
46 | | - 'sphinxcontrib.rsvgconverter', |
47 | | - 'matplotlib.sphinxext.plot_directive'] |
| 40 | +extensions = [ |
| 41 | + "sphinx.ext.mathjax", |
| 42 | + "breathe", |
| 43 | + "sphinx_copybutton", |
| 44 | + "sphinx_design", |
| 45 | + "sphinxcontrib.googleanalytics", |
| 46 | + "sphinxcontrib.programoutput", |
| 47 | + "sphinxcontrib.rsvgconverter", |
| 48 | + "matplotlib.sphinxext.plot_directive", |
| 49 | +] |
48 | 50 |
|
49 | 51 | if not on_rtd: |
50 | | - extensions.append('sphinx.ext.githubpages') |
| 52 | + extensions.append("sphinx.ext.githubpages") |
51 | 53 |
|
52 | 54 | # Google Analytics |
53 | 55 | googleanalytics_id = "G-3P1ZT3SQQ5" |
54 | 56 | googleanalytics_enabled = True |
55 | 57 |
|
56 | 58 | # breathe config |
57 | | -breathe_projects = {'openPMD-api': '../xml'} |
58 | | -breathe_default_project = 'openPMD-api' |
| 59 | +breathe_projects = {"openPMD-api": "../xml"} |
| 60 | +breathe_default_project = "openPMD-api" |
59 | 61 |
|
60 | | -subprocess.call('cd ..; doxygen;' |
61 | | - 'mkdir -p source/_static;' |
62 | | - 'cp -r doxyhtml source/_static/;' |
63 | | - 'cp openpmd-api-doxygen-web.tag.xml source/_static/doxyhtml/', |
64 | | - shell=True) |
| 62 | +subprocess.call( |
| 63 | + "cd ..; doxygen;" |
| 64 | + "mkdir -p source/_static;" |
| 65 | + "cp -r doxyhtml source/_static/;" |
| 66 | + "cp openpmd-api-doxygen-web.tag.xml source/_static/doxyhtml/", |
| 67 | + shell=True, |
| 68 | +) |
65 | 69 |
|
66 | 70 | if not on_rtd: |
67 | 71 | html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
68 | 72 |
|
69 | 73 | # Add any paths that contain templates here, relative to this directory. |
70 | | -templates_path = ['_templates'] |
| 74 | +templates_path = ["_templates"] |
71 | 75 |
|
72 | 76 | # The suffix(es) of source filenames. |
73 | 77 | # You can specify multiple suffix as a list of string: |
74 | 78 | # |
75 | 79 | source_parsers = { |
76 | | - '.md': CommonMarkParser, |
| 80 | + ".md": CommonMarkParser, |
77 | 81 | } |
78 | 82 |
|
79 | | -source_suffix = ['.rst', '.md'] |
| 83 | +source_suffix = [".rst", ".md"] |
80 | 84 |
|
81 | 85 | # The master toctree document. |
82 | | -master_doc = 'index' |
| 86 | +master_doc = "index" |
83 | 87 |
|
84 | 88 | # General information about the project. |
85 | | -project = u'openPMD-api' |
86 | | -copyright = u'Documentation under CC-BY 4.0, The openPMD Community' |
87 | | -author = u'The openPMD Community' |
| 89 | +project = "openPMD-api" |
| 90 | +copyright = "Documentation under CC-BY 4.0, The openPMD Community" |
| 91 | +author = "The openPMD Community" |
88 | 92 |
|
89 | 93 | # The version info for the project you're documenting, acts as replacement for |
90 | 94 | # |version| and |release|, also used in various other places throughout the |
91 | 95 | # built documents. |
92 | 96 | # |
93 | 97 | # The short X.Y version. |
94 | | -version = u'0.18.0' |
| 98 | +version = "0.18.0" |
95 | 99 | # The full version, including alpha/beta/rc tags. |
96 | | -release = u'0.18.0-dev' |
| 100 | +release = "0.18.0-dev" |
97 | 101 |
|
98 | 102 | # The language for content autogenerated by Sphinx. Refer to documentation |
99 | 103 | # for a list of supported languages. |
|
108 | 112 | exclude_patterns = [] |
109 | 113 |
|
110 | 114 | # The name of the Pygments (syntax highlighting) style to use. |
111 | | -pygments_style = 'default' |
| 115 | +pygments_style = "default" |
112 | 116 |
|
113 | 117 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
114 | 118 | todo_include_todos = False |
115 | 119 |
|
116 | 120 |
|
117 | 121 | # -- Options for HTML output ---------------------------------------------- |
118 | 122 |
|
119 | | -html_logo = 'openPMD.png' |
| 123 | +html_logo = "openPMD.png" |
120 | 124 |
|
121 | 125 | # The theme to use for HTML and HTML Help pages. See the documentation for |
122 | 126 | # a list of builtin themes. |
123 | 127 | # |
124 | | -html_theme = 'sphinx_rtd_theme' |
| 128 | +html_theme = "sphinx_rtd_theme" |
125 | 129 |
|
126 | 130 | numfig = True |
127 | 131 |
|
|
134 | 138 | # Add any paths that contain custom static files (such as style sheets) here, |
135 | 139 | # relative to this directory. They are copied after the builtin static files, |
136 | 140 | # so a file named "default.css" will overwrite the builtin "default.css". |
137 | | -html_static_path = ['_static'] |
| 141 | +html_static_path = ["_static"] |
138 | 142 |
|
139 | 143 |
|
140 | 144 | # -- Options for HTMLHelp output ------------------------------------------ |
141 | 145 |
|
142 | 146 | # Output file base name for HTML help builder. |
143 | | -htmlhelp_basename = 'openPMD-apidoc' |
| 147 | +htmlhelp_basename = "openPMD-apidoc" |
144 | 148 |
|
145 | 149 |
|
146 | 150 | # -- Options for LaTeX output --------------------------------------------- |
147 | 151 |
|
148 | | -latex_logo = 'openPMD.png' |
| 152 | +latex_logo = "openPMD.png" |
149 | 153 |
|
150 | 154 | latex_elements = { |
151 | 155 | # The paper size ('letterpaper' or 'a4paper'). |
152 | 156 | # |
153 | 157 | # 'papersize': 'letterpaper', |
154 | | - 'papersize': 'a4paper', |
155 | | - |
| 158 | + "papersize": "a4paper", |
156 | 159 | # The font size ('10pt', '11pt' or '12pt'). |
157 | 160 | # |
158 | 161 | # 'pointsize': '10pt', |
159 | | - |
160 | 162 | # Additional stuff for the LaTeX preamble. |
161 | 163 | # |
162 | 164 | # 'preamble': '', |
163 | | - 'preamble': r'\setcounter{tocdepth}{2}', |
164 | | - |
| 165 | + "preamble": r"\setcounter{tocdepth}{2}", |
165 | 166 | # Latex figure (float) alignment |
166 | 167 | # |
167 | 168 | # 'figure_align': 'htbp', |
|
171 | 172 | # (source start file, target name, title, |
172 | 173 | # author, documentclass [howto, manual, or own class]). |
173 | 174 | latex_documents = [ |
174 | | - (master_doc, 'openPMD-api.tex', u'openPMD-api Documentation', |
175 | | - u'The openPMD Community', 'manual'), |
| 175 | + ( |
| 176 | + master_doc, |
| 177 | + "openPMD-api.tex", |
| 178 | + "openPMD-api Documentation", |
| 179 | + "The openPMD Community", |
| 180 | + "manual", |
| 181 | + ), |
176 | 182 | ] |
177 | 183 |
|
178 | 184 |
|
179 | 185 | # -- Options for manual page output --------------------------------------- |
180 | 186 |
|
181 | 187 | # One entry per manual page. List of tuples |
182 | 188 | # (source start file, name, description, authors, manual section). |
183 | | -man_pages = [ |
184 | | - (master_doc, 'openPMD-api', u'openPMD-api Documentation', |
185 | | - [author], 1) |
186 | | -] |
| 189 | +man_pages = [(master_doc, "openPMD-api", "openPMD-api Documentation", [author], 1)] |
187 | 190 |
|
188 | 191 |
|
189 | 192 | # -- Options for Texinfo output ------------------------------------------- |
|
192 | 195 | # (source start file, target name, title, author, |
193 | 196 | # dir menu entry, description, category) |
194 | 197 | texinfo_documents = [ |
195 | | - (master_doc, 'openPMD-api', u'openPMD-api Documentation', |
196 | | - author, 'openPMD-api', |
197 | | - 'C++ and Python APIs for the openPMD meta-standard', |
198 | | - """ |
| 198 | + ( |
| 199 | + master_doc, |
| 200 | + "openPMD-api", |
| 201 | + "openPMD-api Documentation", |
| 202 | + author, |
| 203 | + "openPMD-api", |
| 204 | + "C++ and Python APIs for the openPMD meta-standard", |
| 205 | + """ |
199 | 206 | The openPMD standard, short for open standard for particle-mesh data files |
200 | 207 | is not a file format per se. It is a standard for meta data and naming |
201 | 208 | schemes. |
202 | 209 | openPMD provides naming and attribute conventions that allow to exchange |
203 | 210 | particle and mesh based data from scientific simulations and experiments. |
204 | | - """), |
| 211 | + """, |
| 212 | + ), |
205 | 213 | ] |
0 commit comments