|
1 | 1 | # -*- 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. |
13 | 2 |
|
14 | 3 | import os |
15 | 4 | import sys |
16 | 5 |
|
17 | | -from tmuxp import __version__ |
18 | | - |
19 | 6 | # Get the project root dir, which is the parent dir of this |
20 | 7 | cwd = os.getcwd() |
21 | 8 | project_root = os.path.dirname(cwd) |
22 | 9 |
|
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. |
26 | 10 | 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"))) |
28 | 13 |
|
29 | 14 | # package data |
30 | 15 | about = {} |
31 | 16 | with open("../tmuxp/__about__.py") as fp: |
32 | 17 | exec(fp.read(), about) |
33 | 18 |
|
34 | 19 |
|
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. |
43 | 20 | extensions = ['sphinx.ext.autodoc', |
44 | 21 | 'sphinx.ext.intersphinx', |
45 | 22 | 'sphinx.ext.todo', |
46 | 23 | 'aafig', |
47 | 24 | 'releases', |
48 | 25 | ] |
49 | 26 |
|
50 | | -# 'releases' (changelog) settings |
51 | 27 | releases_unstable_prehistory = True |
52 | 28 | releases_document_name = "history" |
53 | 29 | releases_issue_uri = "https://github.com/tony/tmuxp/issues/%s" |
54 | 30 | releases_release_uri = "https://github.com/tony/tmuxp/tree/%s" |
55 | 31 |
|
56 | | -# Add any paths that contain templates here, relative to this directory. |
57 | 32 | templates_path = ['_templates'] |
58 | 33 |
|
59 | | -# The suffix of source filenames. |
60 | 34 | source_suffix = '.rst' |
61 | 35 |
|
62 | | -# The encoding of source files. |
63 | | -#source_encoding = 'utf-8-sig' |
64 | | - |
65 | | -# The master toctree document. |
66 | 36 | master_doc = 'index' |
67 | 37 |
|
68 | | -# General information about the project. |
69 | 38 | project = about['__title__'] |
70 | 39 | copyright = about['__copyright__'] |
71 | 40 |
|
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. |
77 | 41 | version = '%s' % ('.'.join(about['__version__'].split('.'))[:2]) |
78 | | -# The full version, including alpha/beta/rc tags. |
79 | 42 | release = '%s' % (about['__version__']) |
80 | 43 |
|
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. |
93 | 44 | exclude_patterns = ['_build'] |
94 | 45 |
|
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. |
110 | 46 | pygments_style = 'sphinx' |
111 | 47 |
|
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. |
120 | 48 | on_rtd = os.environ.get('READTHEDOCS', None) == 'True' |
121 | 49 | if on_rtd: |
122 | 50 | html_theme = 'default' |
|
128 | 56 | except ImportError: |
129 | 57 | html_theme = 'pyramid' |
130 | 58 |
|
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. |
139 | 59 | 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". |
164 | 60 | html_static_path = ['_static'] |
165 | 61 |
|
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. |
208 | 62 | htmlhelp_basename = '%sdoc' % about['__title__'] |
209 | 63 |
|
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]). |
225 | 64 | 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'), |
228 | 68 | ] |
229 | 69 |
|
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). |
255 | 70 | 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), |
258 | 74 | ] |
259 | 75 |
|
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) |
269 | 76 | 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'), |
272 | 81 | ] |
273 | 82 |
|
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. |
287 | 83 | intersphinx_mapping = { |
288 | 84 | 'python': ('http://docs.python.org/', None), |
289 | 85 | 'libtmux': ('https://libtmux.readthedocs.io/', None) |
|
0 commit comments