Skip to content

Commit 07bad4c

Browse files
authored
Remove unnecessary comments from conf.py (#185)
1 parent a175ad8 commit 07bad4c

File tree

1 file changed

+1
-201
lines changed

1 file changed

+1
-201
lines changed

doc/conf.py

Lines changed: 1 addition & 201 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,9 @@
1-
#!/usr/bin/env python3
2-
# -*- coding: utf-8 -*-
3-
#
4-
# SFS documentation build configuration file, created by
5-
# sphinx-quickstart on Tue Nov 4 14:01:37 2014.
6-
#
7-
# This file is execfile()d with the current directory set to its
8-
# containing dir.
9-
#
10-
# Note that not all possible configuration values are present in this
11-
# autogenerated file.
12-
#
13-
# All configuration values have a default; values that are commented out
14-
# serve to show the default.
15-
16-
import sys
17-
import os
181
from subprocess import check_output
192

203
import sphinx
214

22-
# If extensions (or modules to document with autodoc) are in another directory,
23-
# add these directories to sys.path here. If the directory is relative to the
24-
# documentation root, use os.path.abspath to make it absolute, like shown here.
25-
#sys.path.insert(0, os.path.abspath('..'))
26-
275
# -- General configuration ------------------------------------------------
286

29-
# If your documentation needs a minimal Sphinx version, state it here.
30-
needs_sphinx = '1.3' # for sphinx.ext.napoleon
31-
32-
# Add any Sphinx extension module names here, as strings. They can be
33-
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
34-
# ones.
357
extensions = [
368
'sphinx.ext.autodoc',
379
'sphinx.ext.autosummary',
@@ -115,80 +87,31 @@
11587
},
11688
}
11789

118-
# Add any paths that contain templates here, relative to this directory.
11990
templates_path = ['_template']
12091

121-
# The suffix of source filenames.
122-
source_suffix = '.rst'
123-
124-
# The encoding of source files.
125-
#source_encoding = 'utf-8-sig'
126-
127-
# The master toctree document.
128-
master_doc = 'index'
129-
130-
# General information about the project.
13192
authors = 'SFS Toolbox Developers'
13293
project = 'SFS Toolbox'
13394
copyright = '2019, ' + authors
13495

135-
# The version info for the project you're documenting, acts as replacement for
136-
# |version| and |release|, also used in various other places throughout the
137-
# built documents.
138-
#
139-
# The short X.Y version.
140-
#version = '0.0.0'
141-
# The full version, including alpha/beta/rc tags.
14296
try:
14397
release = check_output(['git', 'describe', '--tags', '--always'])
14498
release = release.decode().strip()
14599
except Exception:
146100
release = '<unknown>'
147101

148-
# The language for content autogenerated by Sphinx. Refer to documentation
149-
# for a list of supported languages.
150-
#language = None
151-
152-
# There are two options for replacing |today|: either, you set today to some
153-
# non-false value, then it is used:
154-
#today = ''
155-
# Else, today_fmt is used as the format for a strftime call.
156-
#today_fmt = '%B %d, %Y'
157102
try:
158103
today = check_output(['git', 'show', '-s', '--format=%ad', '--date=short'])
159104
today = today.decode().strip()
160105
except Exception:
161106
today = '<unknown date>'
162107

163-
# List of patterns, relative to source directory, that match files and
164-
# directories to ignore when looking for source files.
165108
exclude_patterns = ['_build', '**/.ipynb_checkpoints']
166109

167-
# The reST default role (used for this markup: `text`) to use for all
168-
# documents.
169110
default_role = 'any'
170111

171-
# If true, '()' will be appended to :func: etc. cross-reference text.
172-
#add_function_parentheses = True
173-
174-
# If true, the current module name will be prepended to all description
175-
# unit titles (such as .. function::).
176-
#add_module_names = True
177-
178-
# If true, sectionauthor and moduleauthor directives will be shown in the
179-
# output. They are ignored by default.
180-
#show_authors = False
181-
182-
# The name of the Pygments (syntax highlighting) style to use.
183112
pygments_style = 'sphinx'
184113

185-
# A list of ignored prefixes for module index sorting.
186-
#modindex_common_prefix = []
187-
188-
# If true, keep warnings as "system message" paragraphs in the built documents.
189-
#keep_warnings = False
190-
191-
jinja_define = """
114+
jinja_define = r"""
192115
{% set docname = env.doc2path(env.docname, base='doc') %}
193116
{% set latex_href = ''.join([
194117
'\href{https://github.com/sfstoolbox/sfs-python/blob/',
@@ -235,89 +158,18 @@
235158

236159
html_css_files = ['css/title.css']
237160

238-
# The theme to use for HTML and HTML Help pages. See the documentation for
239-
# a list of builtin themes.
240161
html_theme = 'sphinx_rtd_theme'
241-
242-
# Theme options are theme-specific and customize the look and feel of a theme
243-
# further. For a list of options available for each theme, see the
244-
# documentation.
245162
html_theme_options = {
246163
'collapse_navigation': False,
247164
}
248165

249-
# Add any paths that contain custom themes here, relative to this directory.
250-
#html_theme_path = []
251-
252-
# The name for this set of Sphinx documents. If None, it defaults to
253-
# "<project> v<release> documentation".
254166
html_title = project + ", version " + release
255167

256-
# A shorter title for the navigation bar. Default is the same as html_title.
257-
#html_short_title = None
258-
259-
# The name of an image file (relative to this directory) to place at the top
260-
# of the sidebar.
261-
#html_logo = None
262-
263-
# The name of an image file (within the static path) to use as favicon of the
264-
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
265-
# pixels large.
266-
#html_favicon = None
267-
268-
# Add any paths that contain custom static files (such as style sheets) here,
269-
# relative to this directory. They are copied after the builtin static files,
270-
# so a file named "default.css" will overwrite the builtin "default.css".
271168
html_static_path = ['_static']
272169

273-
# Add any extra paths that contain custom files (such as robots.txt or
274-
# .htaccess) here, relative to this directory. These files are copied
275-
# directly to the root of the documentation.
276-
#html_extra_path = []
277-
278-
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
279-
# using the given strftime format.
280-
#html_last_updated_fmt = '%b %d, %Y'
281-
282-
# If true, SmartyPants will be used to convert quotes and dashes to
283-
# typographically correct entities.
284-
#html_use_smartypants = True
285-
286-
# Custom sidebar templates, maps document names to template names.
287-
#html_sidebars = {}
288-
289-
# Additional templates that should be rendered to pages, maps page names to
290-
# template names.
291-
#html_additional_pages = {}
292-
293-
# If false, no module index is generated.
294-
#html_domain_indices = True
295-
296-
# If false, no index is generated.
297-
#html_use_index = True
298-
299-
# If true, the index is split into individual pages for each letter.
300-
#html_split_index = False
301-
302-
# If true, links to the reST sources are added to the pages.
303170
html_show_sourcelink = True
304171
html_sourcelink_suffix = ''
305172

306-
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
307-
#html_show_sphinx = True
308-
309-
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
310-
#html_show_copyright = True
311-
312-
# If true, an OpenSearch description file will be output, and all pages will
313-
# contain a <link> tag referring to it. The value of this option must be the
314-
# base URL from which the finished HTML is served.
315-
#html_use_opensearch = ''
316-
317-
# This is the file name suffix for HTML files (e.g. ".xhtml").
318-
#html_file_suffix = None
319-
320-
# Output file base name for HTML help builder.
321173
htmlhelp_basename = 'SFS'
322174

323175
html_scaled_image_link = False
@@ -348,65 +200,13 @@
348200
""",
349201
}
350202

351-
# Grouping the document tree into LaTeX files. List of tuples
352-
# (source start file, target name, title,
353-
# author, documentclass [howto, manual, or own class]).
354203
latex_documents = [('index', 'SFS.tex', project, authors, 'howto')]
355204

356-
# The name of an image file (relative to this directory) to place at the top of
357-
# the title page.
358-
#latex_logo = None
359-
360-
# For "manual" documents, if this is true, then toplevel headings are parts,
361-
# not chapters.
362-
#latex_use_parts = False
363-
364-
# If true, show page references after internal links.
365-
#latex_show_pagerefs = False
366-
367-
# If true, show URL addresses after external links.
368205
latex_show_urls = 'footnote'
369206

370-
# Documents to append as an appendix to all manuals.
371-
#latex_appendices = []
372-
373-
# If false, no module index is generated.
374207
latex_domain_indices = False
375208

376209

377-
# -- Options for manual page output ---------------------------------------
378-
379-
# One entry per manual page. List of tuples
380-
# (source start file, name, description, authors, manual section).
381-
#man_pages = [('index', 'sfs', project, [authors], 1)]
382-
383-
# If true, show URL addresses after external links.
384-
#man_show_urls = False
385-
386-
387-
# -- Options for Texinfo output -------------------------------------------
388-
389-
# Grouping the document tree into Texinfo files. List of tuples
390-
# (source start file, target name, title, author,
391-
# dir menu entry, description, category)
392-
#texinfo_documents = [
393-
# ('index', 'SFS', project, project, 'SFS', 'Sound Field Synthesis Toolbox.',
394-
# 'Miscellaneous'),
395-
#]
396-
397-
# Documents to append as an appendix to all manuals.
398-
#texinfo_appendices = []
399-
400-
# If false, no module index is generated.
401-
#texinfo_domain_indices = True
402-
403-
# How to display URL addresses: 'footnote', 'no', or 'inline'.
404-
#texinfo_show_urls = 'footnote'
405-
406-
# If true, do not generate a @detailmenu in the "Top" node's menu.
407-
#texinfo_no_detailmenu = False
408-
409-
410210
# -- Options for epub output ----------------------------------------------
411211

412212
epub_author = authors

0 commit comments

Comments
 (0)