|
1 | | -# -*- coding: utf-8 -*- |
2 | | -# |
3 | | -# python-sounddevice documentation build configuration file, created by |
4 | | -# sphinx-quickstart on Fri Jun 5 15:56:15 2015. |
5 | | -# |
6 | | -# This file is execfile()d with the current directory set to its |
7 | | -# containing dir. |
8 | | -# |
9 | | -# Note that not all possible configuration values are present in this |
10 | | -# autogenerated file. |
11 | | -# |
12 | | -# All configuration values have a default; values that are commented out |
13 | | -# serve to show the default. |
14 | | - |
| 1 | +"""Configuration file for Sphinx.""" |
15 | 2 | import sys |
16 | 3 | import os |
17 | 4 | from subprocess import check_output |
18 | 5 |
|
19 | | -# If extensions (or modules to document with autodoc) are in another directory, |
20 | | -# add these directories to sys.path here. If the directory is relative to the |
21 | | -# documentation root, use os.path.abspath to make it absolute, like shown here. |
22 | 6 | sys.path.insert(0, os.path.abspath('..')) |
23 | 7 | sys.path.insert(0, os.path.abspath('.')) |
24 | 8 |
|
25 | 9 | # Fake import to avoid actually loading CFFI and the PortAudio library |
26 | 10 | import fake__sounddevice |
27 | 11 | sys.modules['_sounddevice'] = sys.modules['fake__sounddevice'] |
28 | 12 |
|
29 | | -# -- General configuration ------------------------------------------------ |
30 | | - |
31 | | -# If your documentation needs a minimal Sphinx version, state it here. |
32 | | -needs_sphinx = '1.3' # for sphinx.ext.napoleon |
33 | | - |
34 | | -# Add any Sphinx extension module names here, as strings. They can be |
35 | | -# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
36 | | -# ones. |
37 | 13 | extensions = [ |
38 | 14 | 'sphinx.ext.autodoc', |
39 | 15 | 'sphinx.ext.autosummary', |
|
61 | 37 | 'numpy': ('https://docs.scipy.org/doc/numpy/', None), |
62 | 38 | } |
63 | 39 |
|
64 | | -# Add any paths that contain templates here, relative to this directory. |
65 | | -templates_path = ['_templates'] |
66 | | - |
67 | | -# The suffix of source filenames. |
68 | | -source_suffix = '.rst' |
69 | | - |
70 | | -# The encoding of source files. |
71 | | -#source_encoding = 'utf-8-sig' |
72 | | - |
73 | | -# The master toctree document. |
74 | 40 | master_doc = 'index' |
75 | 41 |
|
76 | | -# General information about the project. |
77 | 42 | authors = 'Matthias Geier' |
78 | 43 | project = 'python-sounddevice' |
79 | 44 | copyright = '2020, ' + authors |
80 | 45 |
|
81 | | -# The version info for the project you're documenting, acts as replacement for |
82 | | -# |version| and |release|, also used in various other places throughout the |
83 | | -# built documents. |
84 | | -# |
85 | | -# The short X.Y version. |
86 | | -#version = '0.0.0' |
87 | | -# The full version, including alpha/beta/rc tags. |
88 | 46 | try: |
89 | 47 | release = check_output(['git', 'describe', '--tags', '--always']) |
90 | 48 | release = release.decode().strip() |
91 | 49 | except Exception: |
92 | 50 | release = '<unknown>' |
93 | 51 |
|
94 | | -# The language for content autogenerated by Sphinx. Refer to documentation |
95 | | -# for a list of supported languages. |
96 | | -#language = None |
97 | | - |
98 | | -# There are two options for replacing |today|: either, you set today to some |
99 | | -# non-false value, then it is used: |
100 | | -#today = '' |
101 | | -# Else, today_fmt is used as the format for a strftime call. |
102 | | -#today_fmt = '%B %d, %Y' |
103 | 52 | try: |
104 | 53 | today = check_output(['git', 'show', '-s', '--format=%ad', '--date=short']) |
105 | 54 | today = today.decode().strip() |
106 | 55 | except Exception: |
107 | 56 | today = '<unknown date>' |
108 | 57 |
|
109 | | -# List of patterns, relative to source directory, that match files and |
110 | | -# directories to ignore when looking for source files. |
111 | | -exclude_patterns = ['_build'] |
112 | | - |
113 | | -# The reST default role (used for this markup: `text`) to use for all |
114 | | -# documents. |
115 | 58 | default_role = 'any' |
116 | 59 |
|
117 | | -# If true, '()' will be appended to :func: etc. cross-reference text. |
118 | | -#add_function_parentheses = True |
119 | | - |
120 | | -# If true, the current module name will be prepended to all description |
121 | | -# unit titles (such as .. function::). |
122 | | -#add_module_names = True |
123 | | - |
124 | | -# If true, sectionauthor and moduleauthor directives will be shown in the |
125 | | -# output. They are ignored by default. |
126 | | -#show_authors = False |
127 | | - |
128 | | -# The name of the Pygments (syntax highlighting) style to use. |
129 | | -pygments_style = 'sphinx' |
130 | | - |
131 | | -# A list of ignored prefixes for module index sorting. |
132 | | -#modindex_common_prefix = [] |
133 | | - |
134 | | -# If true, keep warnings as "system message" paragraphs in the built documents. |
135 | | -#keep_warnings = False |
136 | | - |
137 | | - |
138 | | -# -- Options for HTML output ---------------------------------------------- |
139 | | - |
140 | | -# The theme to use for HTML and HTML Help pages. See the documentation for |
141 | | -# a list of builtin themes. |
142 | 60 | html_theme = 'sphinx_rtd_theme' |
143 | | - |
144 | | -# Theme options are theme-specific and customize the look and feel of a theme |
145 | | -# further. For a list of options available for each theme, see the |
146 | | -# documentation. |
147 | 61 | html_theme_options = { |
148 | 62 | 'collapse_navigation': False, |
149 | 63 | } |
150 | | - |
151 | | -# Add any paths that contain custom themes here, relative to this directory. |
152 | | -#html_theme_path = [] |
153 | | - |
154 | | -# The name for this set of Sphinx documents. If None, it defaults to |
155 | | -# "<project> v<release> documentation". |
156 | 64 | html_title = project + ', version ' + release |
157 | | - |
158 | | -# A shorter title for the navigation bar. Default is the same as html_title. |
159 | | -#html_short_title = None |
160 | | - |
161 | | -# The name of an image file (relative to this directory) to place at the top |
162 | | -# of the sidebar. |
163 | | -#html_logo = None |
164 | | - |
165 | | -# The name of an image file (within the static path) to use as favicon of the |
166 | | -# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
167 | | -# pixels large. |
168 | | -#html_favicon = None |
169 | | - |
170 | | -# Add any paths that contain custom static files (such as style sheets) here, |
171 | | -# relative to this directory. They are copied after the builtin static files, |
172 | | -# so a file named "default.css" will overwrite the builtin "default.css". |
173 | | -#html_static_path = ['_static'] |
174 | | - |
175 | | -# Add any extra paths that contain custom files (such as robots.txt or |
176 | | -# .htaccess) here, relative to this directory. These files are copied |
177 | | -# directly to the root of the documentation. |
178 | | -#html_extra_path = [] |
179 | | - |
180 | | -# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
181 | | -# using the given strftime format. |
182 | | -#html_last_updated_fmt = '%b %d, %Y' |
183 | | - |
184 | | -# If true, SmartyPants will be used to convert quotes and dashes to |
185 | | -# typographically correct entities. |
186 | | -#html_use_smartypants = True |
187 | | - |
188 | | -# Custom sidebar templates, maps document names to template names. |
189 | | -#html_sidebars = {} |
190 | | - |
191 | | -# Additional templates that should be rendered to pages, maps page names to |
192 | | -# template names. |
193 | | -#html_additional_pages = {} |
194 | | - |
195 | | -# If false, no module index is generated. |
196 | 65 | html_domain_indices = False |
197 | | - |
198 | | -# If false, no index is generated. |
199 | | -#html_use_index = True |
200 | | - |
201 | | -# If true, the index is split into individual pages for each letter. |
202 | | -#html_split_index = False |
203 | | - |
204 | | -# If true, links to the reST sources are added to the pages. |
205 | 66 | html_show_sourcelink = True |
206 | | - |
207 | | -# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
208 | | -#html_show_sphinx = True |
209 | | - |
210 | | -# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
211 | | -#html_show_copyright = True |
212 | | - |
213 | | -# If true, an OpenSearch description file will be output, and all pages will |
214 | | -# contain a <link> tag referring to it. The value of this option must be the |
215 | | -# base URL from which the finished HTML is served. |
216 | | -#html_use_opensearch = '' |
217 | | - |
218 | | -# This is the file name suffix for HTML files (e.g. ".xhtml"). |
219 | | -#html_file_suffix = None |
220 | | - |
221 | | -# Output file base name for HTML help builder. |
| 67 | +html_show_copyright = False |
222 | 68 | htmlhelp_basename = 'python-sounddevice' |
223 | 69 |
|
224 | | - |
225 | | -# -- Options for LaTeX output --------------------------------------------- |
226 | | - |
227 | 70 | latex_elements = { |
228 | | -# The paper size ('letterpaper' or 'a4paper'). |
229 | 71 | 'papersize': 'a4paper', |
230 | | - |
231 | | -# The font size ('10pt', '11pt' or '12pt'). |
232 | | -#'pointsize': '10pt', |
233 | | - |
234 | | -# Additional stuff for the LaTeX preamble. |
235 | 72 | #'preamble': '', |
236 | | - |
237 | 73 | 'printindex': '', |
238 | 74 | } |
239 | | - |
240 | | -# Grouping the document tree into LaTeX files. List of tuples |
241 | | -# (source start file, target name, title, |
242 | | -# author, documentclass [howto, manual, or own class]). |
243 | 75 | latex_documents = [('index', 'python-sounddevice.tex', project, authors, 'howto')] |
244 | | - |
245 | | -# The name of an image file (relative to this directory) to place at the top of |
246 | | -# the title page. |
247 | | -#latex_logo = None |
248 | | - |
249 | | -# For "manual" documents, if this is true, then toplevel headings are parts, |
250 | | -# not chapters. |
251 | | -#latex_use_parts = False |
252 | | - |
253 | | -# If true, show page references after internal links. |
254 | | -#latex_show_pagerefs = False |
255 | | - |
256 | | -# If true, show URL addresses after external links. |
257 | 76 | latex_show_urls = 'footnote' |
258 | | - |
259 | | -# Documents to append as an appendix to all manuals. |
260 | | -#latex_appendices = [] |
261 | | - |
262 | | -# If false, no module index is generated. |
263 | 77 | latex_domain_indices = False |
264 | | - |
265 | | - |
266 | | -# -- Options for manual page output --------------------------------------- |
267 | | - |
268 | | -# One entry per manual page. List of tuples |
269 | | -# (source start file, name, description, authors, manual section). |
270 | | -#man_pages = [('index', project, project, [authors], 1)] |
271 | | - |
272 | | -# If true, show URL addresses after external links. |
273 | | -#man_show_urls = False |
274 | | - |
275 | | - |
276 | | -# -- Options for Texinfo output ------------------------------------------- |
277 | | - |
278 | | -# Grouping the document tree into Texinfo files. List of tuples |
279 | | -# (source start file, target name, title, author, |
280 | | -# dir menu entry, description, category) |
281 | | -#texinfo_documents = [ |
282 | | -# ('index', project, project, authors, project, |
283 | | -# 'Play and Record Sound with Python.', |
284 | | -# 'Miscellaneous'), |
285 | | -#] |
286 | | - |
287 | | -# Documents to append as an appendix to all manuals. |
288 | | -#texinfo_appendices = [] |
289 | | - |
290 | | -# If false, no module index is generated. |
291 | | -#texinfo_domain_indices = True |
292 | | - |
293 | | -# How to display URL addresses: 'footnote', 'no', or 'inline'. |
294 | | -#texinfo_show_urls = 'footnote' |
295 | | - |
296 | | -# If true, do not generate a @detailmenu in the "Top" node's menu. |
297 | | -#texinfo_no_detailmenu = False |
0 commit comments