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