Skip to content

Commit 221fd8f

Browse files
committed
DOC: Clean up conf.py
1 parent 822a00c commit 221fd8f

File tree

1 file changed

+2
-222
lines changed

1 file changed

+2
-222
lines changed

doc/conf.py

Lines changed: 2 additions & 222 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,15 @@
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."""
152
import sys
163
import os
174
from subprocess import check_output
185

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.
226
sys.path.insert(0, os.path.abspath('..'))
237
sys.path.insert(0, os.path.abspath('.'))
248

259
# Fake import to avoid actually loading CFFI and the PortAudio library
2610
import fake__sounddevice
2711
sys.modules['_sounddevice'] = sys.modules['fake__sounddevice']
2812

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.
3713
extensions = [
3814
'sphinx.ext.autodoc',
3915
'sphinx.ext.autosummary',
@@ -61,237 +37,41 @@
6137
'numpy': ('https://docs.scipy.org/doc/numpy/', None),
6238
}
6339

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.
7440
master_doc = 'index'
7541

76-
# General information about the project.
7742
authors = 'Matthias Geier'
7843
project = 'python-sounddevice'
7944
copyright = '2020, ' + authors
8045

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.
8846
try:
8947
release = check_output(['git', 'describe', '--tags', '--always'])
9048
release = release.decode().strip()
9149
except Exception:
9250
release = '<unknown>'
9351

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'
10352
try:
10453
today = check_output(['git', 'show', '-s', '--format=%ad', '--date=short'])
10554
today = today.decode().strip()
10655
except Exception:
10756
today = '<unknown date>'
10857

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.
11558
default_role = 'any'
11659

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.
14260
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.
14761
html_theme_options = {
14862
'collapse_navigation': False,
14963
}
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".
15664
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.
19665
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.
20566
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
22268
htmlhelp_basename = 'python-sounddevice'
22369

224-
225-
# -- Options for LaTeX output ---------------------------------------------
226-
22770
latex_elements = {
228-
# The paper size ('letterpaper' or 'a4paper').
22971
'papersize': 'a4paper',
230-
231-
# The font size ('10pt', '11pt' or '12pt').
232-
#'pointsize': '10pt',
233-
234-
# Additional stuff for the LaTeX preamble.
23572
#'preamble': '',
236-
23773
'printindex': '',
23874
}
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]).
24375
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.
25776
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.
26377
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

Comments
 (0)