|
32 | 32 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
33 | 33 | # ones. |
34 | 34 | extensions = [ |
35 | | - 'sphinx.ext.autodoc', |
36 | | - 'sphinx.ext.autosummary', |
37 | | - 'sphinx.ext.githubpages', |
38 | | - 'sphinx.ext.intersphinx', |
39 | | - 'sphinx.ext.mathjax', |
40 | | - 'sphinx.ext.viewcode', |
41 | | - 'IPython.sphinxext.ipython_directive', |
42 | | - 'IPython.sphinxext.ipython_console_highlighting', |
43 | | - 'matplotlib.sphinxext.plot_directive', |
44 | | - 'numpydoc', |
45 | | - 'sphinx_copybutton', |
| 35 | + "sphinx.ext.autodoc", |
| 36 | + "sphinx.ext.autosummary", |
| 37 | + "sphinx.ext.githubpages", |
| 38 | + "sphinx.ext.intersphinx", |
| 39 | + "sphinx.ext.mathjax", |
| 40 | + "sphinx.ext.viewcode", |
| 41 | + "IPython.sphinxext.ipython_directive", |
| 42 | + "IPython.sphinxext.ipython_console_highlighting", |
| 43 | + "matplotlib.sphinxext.plot_directive", |
| 44 | + "numpydoc", |
| 45 | + "sphinx_copybutton", |
46 | 46 | ] |
47 | 47 |
|
48 | 48 | # Configuration options for plot_directive. See: |
|
55 | 55 | numpydoc_show_class_members = False |
56 | 56 |
|
57 | 57 | # Add any paths that contain templates here, relative to this directory. |
58 | | -templates_path = ['_templates'] |
| 58 | +templates_path = ["_templates"] |
59 | 59 |
|
60 | 60 | # The suffix(es) of source filenames. |
61 | 61 | # You can specify multiple suffix as a list of string: |
62 | 62 | # |
63 | 63 | # source_suffix = ['.rst', '.md'] |
64 | | -source_suffix = '.rst' |
| 64 | +source_suffix = ".rst" |
65 | 65 |
|
66 | 66 | # The master toctree document. |
67 | | -master_doc = 'index' |
| 67 | +master_doc = "index" |
68 | 68 |
|
69 | 69 | # General information about the project. |
70 | | -project = 'qt-epics' |
71 | | -copyright = '2020, Jun Aishima' |
72 | | -author = 'Jun Aishima' |
| 70 | +project = "qt-epics" |
| 71 | +copyright = "2020, Jun Aishima" |
| 72 | +author = "Jun Aishima" |
73 | 73 |
|
74 | 74 | # The version info for the project you're documenting, acts as replacement for |
75 | 75 | # |version| and |release|, also used in various other places throughout the |
76 | 76 | # built documents. |
77 | 77 | # |
78 | 78 | import qt_epics |
| 79 | + |
79 | 80 | # The short X.Y version. |
80 | 81 | version = qt_epics.__version__ |
81 | 82 | # The full version, including alpha/beta/rc tags. |
|
94 | 95 | exclude_patterns = [] |
95 | 96 |
|
96 | 97 | # The name of the Pygments (syntax highlighting) style to use. |
97 | | -pygments_style = 'sphinx' |
| 98 | +pygments_style = "sphinx" |
98 | 99 |
|
99 | 100 | # If true, `todo` and `todoList` produce output, else they produce nothing. |
100 | 101 | todo_include_todos = False |
|
105 | 106 | # The theme to use for HTML and HTML Help pages. See the documentation for |
106 | 107 | # a list of builtin themes. |
107 | 108 | # |
108 | | -html_theme = 'sphinx_rtd_theme' |
| 109 | +html_theme = "sphinx_rtd_theme" |
109 | 110 | import sphinx_rtd_theme |
| 111 | + |
110 | 112 | html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] |
111 | 113 |
|
112 | 114 | # Theme options are theme-specific and customize the look and feel of a theme |
|
118 | 120 | # Add any paths that contain custom static files (such as style sheets) here, |
119 | 121 | # relative to this directory. They are copied after the builtin static files, |
120 | 122 | # so a file named "default.css" will overwrite the builtin "default.css". |
121 | | -html_static_path = ['_static'] |
| 123 | +html_static_path = ["_static"] |
122 | 124 |
|
123 | 125 | # Custom sidebar templates, must be a dictionary that maps document names |
124 | 126 | # to template names. |
125 | 127 | # |
126 | 128 | # This is required for the alabaster theme |
127 | 129 | # refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars |
128 | 130 | html_sidebars = { |
129 | | - '**': [ |
130 | | - 'relations.html', # needs 'show_related': True theme option to display |
131 | | - 'searchbox.html', |
| 131 | + "**": [ |
| 132 | + "relations.html", # needs 'show_related': True theme option to display |
| 133 | + "searchbox.html", |
132 | 134 | ] |
133 | 135 | } |
134 | 136 |
|
135 | 137 |
|
136 | 138 | # -- Options for HTMLHelp output ------------------------------------------ |
137 | 139 |
|
138 | 140 | # Output file base name for HTML help builder. |
139 | | -htmlhelp_basename = 'qt-epics' |
| 141 | +htmlhelp_basename = "qt-epics" |
140 | 142 |
|
141 | 143 |
|
142 | 144 | # -- Options for LaTeX output --------------------------------------------- |
|
145 | 147 | # The paper size ('letterpaper' or 'a4paper'). |
146 | 148 | # |
147 | 149 | # 'papersize': 'letterpaper', |
148 | | - |
149 | 150 | # The font size ('10pt', '11pt' or '12pt'). |
150 | 151 | # |
151 | 152 | # 'pointsize': '10pt', |
152 | | - |
153 | 153 | # Additional stuff for the LaTeX preamble. |
154 | 154 | # |
155 | 155 | # 'preamble': '', |
156 | | - |
157 | 156 | # Latex figure (float) alignment |
158 | 157 | # |
159 | 158 | # 'figure_align': 'htbp', |
|
163 | 162 | # (source start file, target name, title, |
164 | 163 | # author, documentclass [howto, manual, or own class]). |
165 | 164 | latex_documents = [ |
166 | | - (master_doc, 'qt-epics.tex', 'qt-epics Documentation', |
167 | | - 'Contributors', 'manual'), |
| 165 | + (master_doc, "qt-epics.tex", "qt-epics Documentation", "Contributors", "manual"), |
168 | 166 | ] |
169 | 167 |
|
170 | 168 |
|
171 | 169 | # -- Options for manual page output --------------------------------------- |
172 | 170 |
|
173 | 171 | # One entry per manual page. List of tuples |
174 | 172 | # (source start file, name, description, authors, manual section). |
175 | | -man_pages = [ |
176 | | - (master_doc, 'qt-epics', 'qt-epics Documentation', |
177 | | - [author], 1) |
178 | | -] |
| 173 | +man_pages = [(master_doc, "qt-epics", "qt-epics Documentation", [author], 1)] |
179 | 174 |
|
180 | 175 |
|
181 | 176 | # -- Options for Texinfo output ------------------------------------------- |
|
184 | 179 | # (source start file, target name, title, author, |
185 | 180 | # dir menu entry, description, category) |
186 | 181 | texinfo_documents = [ |
187 | | - (master_doc, 'qt-epics', 'qt-epics Documentation', |
188 | | - author, 'qt-epics', 'Qt-based widgets for PyEpics devices', |
189 | | - 'Miscellaneous'), |
| 182 | + ( |
| 183 | + master_doc, |
| 184 | + "qt-epics", |
| 185 | + "qt-epics Documentation", |
| 186 | + author, |
| 187 | + "qt-epics", |
| 188 | + "Qt-based widgets for PyEpics devices", |
| 189 | + "Miscellaneous", |
| 190 | + ), |
190 | 191 | ] |
191 | 192 |
|
192 | 193 |
|
193 | | - |
194 | | - |
195 | 194 | # Example configuration for intersphinx: refer to the Python standard library. |
196 | 195 | intersphinx_mapping = { |
197 | | - 'python': ('https://docs.python.org/3/', None), |
198 | | - 'numpy': ('https://docs.scipy.org/doc/numpy/', None), |
199 | | - 'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None), |
200 | | - 'pandas': ('https://pandas.pydata.org/pandas-docs/stable', None), |
201 | | - 'matplotlib': ('https://matplotlib.org', None), |
| 196 | + "python": ("https://docs.python.org/3/", None), |
| 197 | + "numpy": ("https://docs.scipy.org/doc/numpy/", None), |
| 198 | + "scipy": ("https://docs.scipy.org/doc/scipy/reference/", None), |
| 199 | + "pandas": ("https://pandas.pydata.org/pandas-docs/stable", None), |
| 200 | + "matplotlib": ("https://matplotlib.org", None), |
202 | 201 | } |
0 commit comments