Skip to content

Commit 3c95f90

Browse files
committed
flake8 sphinx conf
1 parent a576764 commit 3c95f90

File tree

1 file changed

+12
-216
lines changed

1 file changed

+12
-216
lines changed

doc/conf.py

Lines changed: 12 additions & 216 deletions
Original file line numberDiff line numberDiff line change
@@ -1,122 +1,50 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# tmuxp documentation build configuration file, created by
4-
# sphinx-quickstart on Sun Sep 8 17:59:29 2013.
5-
#
6-
# This file is execfile()d with the current directory set to its containing dir.
7-
#
8-
# Note that not all possible configuration values are present in this
9-
# autogenerated file.
10-
#
11-
# All configuration values have a default; values that are commented out
12-
# serve to show the default.
132

143
import os
154
import sys
165

17-
from tmuxp import __version__
18-
196
# Get the project root dir, which is the parent dir of this
207
cwd = os.getcwd()
218
project_root = os.path.dirname(cwd)
229

23-
# Insert the project root dir as the first element in the PYTHONPATH.
24-
# This lets us ensure that the source package is imported, and that its
25-
# version is used.
2610
sys.path.insert(0, project_root)
27-
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "_ext")))
11+
sys.path.append(os.path.abspath(
12+
os.path.join(os.path.dirname(__file__), "_ext")))
2813

2914
# package data
3015
about = {}
3116
with open("../tmuxp/__about__.py") as fp:
3217
exec(fp.read(), about)
3318

3419

35-
# -- General configuration -----------------------------------------------------
36-
37-
38-
# If your documentation needs a minimal Sphinx version, state it here.
39-
#needs_sphinx = '1.0'
40-
41-
# Add any Sphinx extension module names here, as strings. They can be extensions
42-
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
4320
extensions = ['sphinx.ext.autodoc',
4421
'sphinx.ext.intersphinx',
4522
'sphinx.ext.todo',
4623
'aafig',
4724
'releases',
4825
]
4926

50-
# 'releases' (changelog) settings
5127
releases_unstable_prehistory = True
5228
releases_document_name = "history"
5329
releases_issue_uri = "https://github.com/tony/tmuxp/issues/%s"
5430
releases_release_uri = "https://github.com/tony/tmuxp/tree/%s"
5531

56-
# Add any paths that contain templates here, relative to this directory.
5732
templates_path = ['_templates']
5833

59-
# The suffix of source filenames.
6034
source_suffix = '.rst'
6135

62-
# The encoding of source files.
63-
#source_encoding = 'utf-8-sig'
64-
65-
# The master toctree document.
6636
master_doc = 'index'
6737

68-
# General information about the project.
6938
project = about['__title__']
7039
copyright = about['__copyright__']
7140

72-
# The version info for the project you're documenting, acts as replacement for
73-
# |version| and |release|, also used in various other places throughout the
74-
# built documents.
75-
#
76-
# The short X.Y version.
7741
version = '%s' % ('.'.join(about['__version__'].split('.'))[:2])
78-
# The full version, including alpha/beta/rc tags.
7942
release = '%s' % (about['__version__'])
8043

81-
# The language for content autogenerated by Sphinx. Refer to documentation
82-
# for a list of supported languages.
83-
#language = None
84-
85-
# There are two options for replacing |today|: either, you set today to some
86-
# non-false value, then it is used:
87-
#today = ''
88-
# Else, today_fmt is used as the format for a strftime call.
89-
#today_fmt = '%B %d, %Y'
90-
91-
# List of patterns, relative to source directory, that match files and
92-
# directories to ignore when looking for source files.
9344
exclude_patterns = ['_build']
9445

95-
# The reST default role (used for this markup: `text`) to use for all documents.
96-
#default_role = None
97-
98-
# If true, '()' will be appended to :func: etc. cross-reference text.
99-
#add_function_parentheses = True
100-
101-
# If true, the current module name will be prepended to all description
102-
# unit titles (such as .. function::).
103-
#add_module_names = True
104-
105-
# If true, sectionauthor and moduleauthor directives will be shown in the
106-
# output. They are ignored by default.
107-
#show_authors = False
108-
109-
# The name of the Pygments (syntax highlighting) style to use.
11046
pygments_style = 'sphinx'
11147

112-
# A list of ignored prefixes for module index sorting.
113-
#modindex_common_prefix = []
114-
115-
116-
# -- Options for HTML output ---------------------------------------------------
117-
118-
# The theme to use for HTML and HTML Help pages. See the documentation for
119-
# a list of builtin themes.
12048
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
12149
if on_rtd:
12250
html_theme = 'default'
@@ -128,162 +56,30 @@
12856
except ImportError:
12957
html_theme = 'pyramid'
13058

131-
#html_theme = 'sphinx_rtd_theme'
132-
133-
# Theme options are theme-specific and customize the look and feel of a theme
134-
# further. For a list of options available for each theme, see the
135-
# documentation.
136-
#html_theme_options = {}
137-
138-
# Add any paths that contain custom themes here, relative to this directory.
13959
html_theme_path = ['_themes']
140-
#html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
141-
142-
# from pyramid_sphinx_themes import get_html_themes_path
143-
# html_theme_path = get_html_themes_path()
144-
145-
# The name for this set of Sphinx documents. If None, it defaults to
146-
# "<project> v<release> documentation".
147-
#html_title = None
148-
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".
16460
html_static_path = ['_static']
16561

166-
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
167-
# using the given strftime format.
168-
#html_last_updated_fmt = '%b %d, %Y'
169-
170-
# If true, SmartyPants will be used to convert quotes and dashes to
171-
# typographically correct entities.
172-
#html_use_smartypants = True
173-
174-
# Custom sidebar templates, maps document names to template names.
175-
#html_sidebars = {}
176-
177-
# Additional templates that should be rendered to pages, maps page names to
178-
# template names.
179-
#html_additional_pages = {}
180-
181-
# If false, no module index is generated.
182-
#html_domain_indices = True
183-
184-
# If false, no index is generated.
185-
#html_use_index = True
186-
187-
# If true, the index is split into individual pages for each letter.
188-
#html_split_index = False
189-
190-
# If true, links to the reST sources are added to the pages.
191-
#html_show_sourcelink = True
192-
193-
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
194-
#html_show_sphinx = True
195-
196-
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
197-
#html_show_copyright = True
198-
199-
# If true, an OpenSearch description file will be output, and all pages will
200-
# contain a <link> tag referring to it. The value of this option must be the
201-
# base URL from which the finished HTML is served.
202-
#html_use_opensearch = ''
203-
204-
# This is the file name suffix for HTML files (e.g. ".xhtml").
205-
#html_file_suffix = None
206-
207-
# Output file base name for HTML help builder.
20862
htmlhelp_basename = '%sdoc' % about['__title__']
20963

210-
# -- Options for LaTeX output --------------------------------------------------
211-
212-
latex_elements = {
213-
# The paper size ('letterpaper' or 'a4paper').
214-
#'papersize': 'letterpaper',
215-
216-
# The font size ('10pt', '11pt' or '12pt').
217-
#'pointsize': '10pt',
218-
219-
# Additional stuff for the LaTeX preamble.
220-
#'preamble': '',
221-
}
222-
223-
# Grouping the document tree into LaTeX files. List of tuples
224-
# (source start file, target name, title, author, documentclass [howto/manual]).
22564
latex_documents = [
226-
('index', '{0}.tex'.format(about['__package_name__']), '{0} Documentation'.format(about['__title__']),
227-
about['__author__'], 'manual'),
65+
('index', '{0}.tex'.format(about['__package_name__']),
66+
'{0} Documentation'.format(about['__title__']),
67+
about['__author__'], 'manual'),
22868
]
22969

230-
# The name of an image file (relative to this directory) to place at the top of
231-
# the title page.
232-
#latex_logo = None
233-
234-
# For "manual" documents, if this is true, then toplevel headings are parts,
235-
# not chapters.
236-
#latex_use_parts = False
237-
238-
# If true, show page references after internal links.
239-
#latex_show_pagerefs = False
240-
241-
# If true, show URL addresses after external links.
242-
#latex_show_urls = False
243-
244-
# Documents to append as an appendix to all manuals.
245-
#latex_appendices = []
246-
247-
# If false, no module index is generated.
248-
#latex_domain_indices = True
249-
250-
251-
# -- Options for manual page output --------------------------------------------
252-
253-
# One entry per manual page. List of tuples
254-
# (source start file, name, description, authors, manual section).
25570
man_pages = [
256-
('index', about['__package_name__'], '{0} Documentation'.format(about['__title__']),
257-
about['__author__'], 1),
71+
('index', about['__package_name__'],
72+
'{0} Documentation'.format(about['__title__']),
73+
about['__author__'], 1),
25874
]
25975

260-
# If true, show URL addresses after external links.
261-
#man_show_urls = False
262-
263-
264-
# -- Options for Texinfo output ------------------------------------------------
265-
266-
# Grouping the document tree into Texinfo files. List of tuples
267-
# (source start file, target name, title, author,
268-
# dir menu entry, description, category)
26976
texinfo_documents = [
270-
('index', '{0}'.format(about['__package_name__']), '{0} Documentation'.format(about['__title__']),
271-
about['__author__'], about['__package_name__'], about['__description__'], 'Miscellaneous'),
77+
('index', '{0}'.format(about['__package_name__']),
78+
'{0} Documentation'.format(about['__title__']),
79+
about['__author__'], about['__package_name__'],
80+
about['__description__'], 'Miscellaneous'),
27281
]
27382

274-
# Documents to append as an appendix to all manuals.
275-
#texinfo_appendices = []
276-
277-
# If false, no module index is generated.
278-
#texinfo_domain_indices = True
279-
280-
# How to display URL addresses: 'footnote', 'no', or 'inline'.
281-
#texinfo_show_urls = 'footnote'
282-
283-
# If true, do not generate a @detailmenu in the "Top" node's menu.
284-
#texinfo_no_detailmenu = False
285-
286-
# Example configuration for intersphinx: refer to the Python standard library.
28783
intersphinx_mapping = {
28884
'python': ('http://docs.python.org/', None),
28985
'libtmux': ('https://libtmux.readthedocs.io/', None)

0 commit comments

Comments
 (0)