Skip to content

Commit 02a5988

Browse files
committed
Clean up conf.py
1 parent 7cd4363 commit 02a5988

2 files changed

Lines changed: 9 additions & 207 deletions

File tree

doc/conf.py

Lines changed: 9 additions & 199 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,23 @@
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
143

154
import sys
165
import os
176
from subprocess import check_output
187

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.
228
sys.path.insert(0, os.path.abspath('../src'))
239
sys.path.insert(0, os.path.abspath('.'))
2410

2511
# Fake import to avoid actually loading CFFI and the JACK library
2612
import fake__jack
2713
sys.modules['_jack'] = sys.modules['fake__jack']
2814

15+
2916
# -- General configuration ------------------------------------------------
3017

3118
# If your documentation needs a minimal Sphinx version, state it here.
3219
needs_sphinx = '1.3' # for sphinx.ext.napoleon
3320

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.
3721
extensions = [
3822
'sphinx.ext.autodoc',
3923
'sphinx.ext.viewcode',
@@ -54,164 +38,40 @@
5438
napoleon_use_param = False
5539
napoleon_use_rtype = False
5640

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.
7041
authors = 'Matthias Geier'
7142
project = 'JACK Audio Connection Kit (JACK) Client for Python'
7243
copyright = '2020, ' + authors
7344

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+
8147
try:
8248
release = check_output(['git', 'describe', '--tags', '--always'])
8349
release = release.decode().strip()
8450
except Exception:
8551
release = '<unknown>'
8652

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'
9653
try:
9754
today = check_output(['git', 'show', '-s', '--format=%ad', '--date=short'])
9855
today = today.decode().strip()
9956
except Exception:
10057
today = '<unknown date>'
10158

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'
12960

13061

13162
# -- Options for HTML output ----------------------------------------------
13263

133-
# The theme to use for HTML and HTML Help pages. See the documentation for
134-
# a list of builtin themes.
13564
html_theme = 'insipid'
13665

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".
14766
html_title = 'JACK Client for Python, version ' + release
14867

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.
18768
html_domain_indices = False
18869

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
20371

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}'
21473

74+
html_copy_source = False
21575

21676
# -- Options for LaTeX output ---------------------------------------------
21777

@@ -233,61 +93,11 @@
23393
# author, documentclass [howto, manual, or own class]).
23494
latex_documents = [('index', 'JACK-Client.tex', project, authors, 'howto')]
23595

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.
24896
latex_show_urls = 'footnote'
24997

250-
# Documents to append as an appendix to all manuals.
251-
#latex_appendices = []
252-
253-
# If false, no module index is generated.
25498
latex_domain_indices = False
25599

256100

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-
291101
# -- Options for epub output ----------------------------------------------
292102

293103
epub_author = authors

doc/index.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. default-role:: py:obj
2-
31
.. include:: ../README.rst
42

53
.. only:: html
@@ -11,8 +9,6 @@
119

1210
.. include:: ../CONTRIBUTING.rst
1311

14-
.. default-role:: any
15-
1612
API Documentation
1713
-----------------
1814

@@ -30,12 +26,8 @@ API Documentation
3026
Version History
3127
---------------
3228

33-
.. default-role:: py:obj
34-
3529
.. include:: ../NEWS.rst
3630

37-
.. default-role:: any
38-
3931
Other Python Modules for JACK
4032
-----------------------------
4133

0 commit comments

Comments
 (0)