Skip to content

Commit 86f3aa4

Browse files
trim down sphinx config
1 parent 2b01527 commit 86f3aa4

File tree

1 file changed

+3
-296
lines changed

1 file changed

+3
-296
lines changed

docs/conf.py

Lines changed: 3 additions & 296 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,6 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# pluggy documentation build configuration file, created by
4-
# sphinx-quickstart on Mon Nov 14 11:08:31 2016.
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.
14-
15-
# If extensions (or modules to document with autodoc) are in another directory,
16-
# add these directories to sys.path here. If the directory is relative to the
17-
# documentation root, use os.path.abspath to make it absolute, like shown here.
18-
#
19-
# import os
20-
# import sys
21-
# sys.path.insert(0, os.path.abspath('.'))
22-
23-
# -- General configuration ------------------------------------------------
24-
25-
# If your documentation needs a minimal Sphinx version, state it here.
26-
#
27-
# needs_sphinx = '1.0'
28-
29-
# Add any Sphinx extension module names here, as strings. They can be
30-
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
31-
# ones.
322
import pkg_resources
333

34-
dist = pkg_resources.get_distribution('pluggy')
354

365
extensions = [
376
'sphinx.ext.autodoc',
@@ -44,281 +13,36 @@
4413
# Add any paths that contain templates here, relative to this directory.
4514
templates_path = ['_templates']
4615

47-
# The suffix(es) of source filenames.
48-
# You can specify multiple suffix as a list of string:
49-
#
50-
# source_suffix = ['.rst', '.md']
5116
source_suffix = '.rst'
5217

53-
# The encoding of source files.
54-
#
55-
# source_encoding = 'utf-8-sig'
56-
5718
# The master toctree document.
5819
master_doc = 'index'
5920

6021
# General information about the project.
22+
23+
dist = pkg_resources.get_distribution('pluggy')
6124
project = dist.project_name
6225
copyright = u'2016, Holger Krekel'
6326
author = 'Holger Krekel'
6427

65-
# The version info for the project you're documenting, acts as replacement for
66-
# |version| and |release|, also used in various other places throughout the
67-
# built documents.
68-
#
69-
# The full version, including alpha/beta/rc tags.
7028
release = dist.version
7129
# The short X.Y version.
7230
version = u'.'.join(dist.version.split('.')[:2])
7331

74-
# The language for content autogenerated by Sphinx. Refer to documentation
75-
# for a list of supported languages.
76-
#
77-
# This is also used if you do content translation via gettext catalogs.
78-
# Usually you set "language" from the command line for these cases.
79-
language = None
8032

81-
# There are two options for replacing |today|: either, you set today to some
82-
# non-false value, then it is used:
83-
#
84-
# today = ''
85-
#
86-
# Else, today_fmt is used as the format for a strftime call.
87-
#
88-
# today_fmt = '%B %d, %Y'
89-
90-
# List of patterns, relative to source directory, that match files and
91-
# directories to ignore when looking for source files.
92-
# This patterns also effect to html_static_path and html_extra_path
93-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
94-
95-
# The reST default role (used for this markup: `text`) to use for all
96-
# documents.
97-
#
98-
# default_role = None
99-
100-
# If true, '()' will be appended to :func: etc. cross-reference text.
101-
#
102-
# add_function_parentheses = True
103-
104-
# If true, the current module name will be prepended to all description
105-
# unit titles (such as .. function::).
106-
#
107-
# add_module_names = True
108-
109-
# If true, sectionauthor and moduleauthor directives will be shown in the
110-
# output. They are ignored by default.
111-
#
112-
# show_authors = False
33+
language = None
11334

114-
# The name of the Pygments (syntax highlighting) style to use.
11535
pygments_style = 'sphinx'
116-
117-
# A list of ignored prefixes for module index sorting.
118-
# modindex_common_prefix = []
119-
120-
# If true, keep warnings as "system message" paragraphs in the built documents.
121-
# keep_warnings = False
122-
123-
# If true, `todo` and `todoList` produce output, else they produce nothing.
124-
todo_include_todos = False
125-
126-
127-
# -- Options for HTML output ----------------------------------------------
128-
129-
# The theme to use for HTML and HTML Help pages. See the documentation for
130-
# a list of builtin themes.
131-
#
13236
html_theme = 'alabaster'
133-
134-
# Theme options are theme-specific and customize the look and feel of a theme
135-
# further. For a list of options available for each theme, see the
136-
# documentation.
137-
#
138-
# html_theme_options = {}
139-
140-
# Add any paths that contain custom themes here, relative to this directory.
141-
# html_theme_path = []
142-
143-
# The name for this set of Sphinx documents.
144-
# "<project> v<release> documentation" by default.
145-
#
146-
# html_title = u'pluggy v0.5.0'
147-
148-
# A shorter title for the navigation bar. Default is the same as html_title.
149-
#
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-
#
155-
# html_logo = None
156-
157-
# The name of an image file (relative to this directory) to use as a favicon of
158-
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
159-
# pixels large.
160-
#
161-
# html_favicon = None
162-
163-
# Add any paths that contain custom static files (such as style sheets) here,
164-
# relative to this directory. They are copied after the builtin static files,
165-
# so a file named "default.css" will overwrite the builtin "default.css".
16637
html_static_path = ['_static']
16738

168-
# Add any extra paths that contain custom files (such as robots.txt or
169-
# .htaccess) here, relative to this directory. These files are copied
170-
# directly to the root of the documentation.
171-
#
172-
# html_extra_path = []
173-
174-
# If not None, a 'Last updated on:' timestamp is inserted at every page
175-
# bottom, using the given strftime format.
176-
# The empty string is equivalent to '%b %d, %Y'.
177-
#
178-
# html_last_updated_fmt = None
179-
180-
# If true, SmartyPants will be used to convert quotes and dashes to
181-
# typographically correct entities.
182-
#
183-
# html_use_smartypants = True
184-
185-
# Custom sidebar templates, maps document names to template names.
186-
#
187-
# html_sidebars = {}
188-
189-
# Additional templates that should be rendered to pages, maps page names to
190-
# template names.
191-
#
192-
# html_additional_pages = {}
193-
194-
# If false, no module index is generated.
195-
#
196-
# html_domain_indices = True
197-
198-
# If false, no index is generated.
199-
#
200-
# html_use_index = True
201-
202-
# If true, the index is split into individual pages for each letter.
203-
#
204-
# html_split_index = False
205-
206-
# If true, links to the reST sources are added to the pages.
207-
#
208-
# html_show_sourcelink = True
209-
210-
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
211-
#
212-
# html_show_sphinx = True
213-
214-
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
215-
#
216-
# html_show_copyright = True
217-
218-
# If true, an OpenSearch description file will be output, and all pages will
219-
# contain a <link> tag referring to it. The value of this option must be the
220-
# base URL from which the finished HTML is served.
221-
#
222-
# html_use_opensearch = ''
223-
224-
# This is the file name suffix for HTML files (e.g. ".xhtml").
225-
# html_file_suffix = None
226-
227-
# Language to be used for generating the HTML full-text search index.
228-
# Sphinx supports the following languages:
229-
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
230-
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr', 'zh'
231-
#
232-
# html_search_language = 'en'
233-
234-
# A dictionary with options for the search language support, empty by default.
235-
# 'ja' uses this config value.
236-
# 'zh' user can custom change `jieba` dictionary path.
237-
#
238-
# html_search_options = {'type': 'default'}
239-
240-
# The name of a javascript file (relative to the configuration directory) that
241-
# implements a search results scorer. If empty, the default will be used.
242-
#
243-
# html_search_scorer = 'scorer.js'
244-
245-
# Output file base name for HTML help builder.
246-
htmlhelp_basename = 'pluggydoc'
247-
248-
# -- Options for LaTeX output ---------------------------------------------
249-
250-
latex_elements = {
251-
# The paper size ('letterpaper' or 'a4paper').
252-
#
253-
# 'papersize': 'letterpaper',
254-
255-
# The font size ('10pt', '11pt' or '12pt').
256-
#
257-
# 'pointsize': '10pt',
258-
259-
# Additional stuff for the LaTeX preamble.
260-
#
261-
# 'preamble': '',
262-
263-
# Latex figure (float) alignment
264-
#
265-
# 'figure_align': 'htbp',
266-
}
267-
268-
# Grouping the document tree into LaTeX files. List of tuples
269-
# (source start file, target name, title,
270-
# author, documentclass [howto, manual, or own class]).
271-
latex_documents = [
272-
(master_doc, 'pluggy.tex', u'pluggy Documentation',
273-
u'Holger Krekel', 'manual'),
274-
]
275-
276-
# The name of an image file (relative to this directory) to place at the top of
277-
# the title page.
278-
#
279-
# latex_logo = None
280-
281-
# For "manual" documents, if this is true, then toplevel headings are parts,
282-
# not chapters.
283-
#
284-
# latex_use_parts = False
285-
286-
# If true, show page references after internal links.
287-
#
288-
# latex_show_pagerefs = False
289-
290-
# If true, show URL addresses after external links.
291-
#
292-
# latex_show_urls = False
293-
294-
# Documents to append as an appendix to all manuals.
295-
#
296-
# latex_appendices = []
297-
298-
# It false, will not define \strong, \code, itleref, \crossref ... but only
299-
# \sphinxstrong, ..., \sphinxtitleref, ... To help avoid clash with user added
300-
# packages.
301-
#
302-
# latex_keep_old_macro_names = True
303-
304-
# If false, no module index is generated.
305-
#
306-
# latex_domain_indices = True
307-
308-
309-
# -- Options for manual page output ---------------------------------------
310-
31139
# One entry per manual page. List of tuples
31240
# (source start file, name, description, authors, manual section).
31341
man_pages = [
31442
(master_doc, 'pluggy', u'pluggy Documentation',
31543
[author], 1)
31644
]
31745

318-
# If true, show URL addresses after external links.
319-
#
320-
# man_show_urls = False
321-
32246

32347
# -- Options for Texinfo output -------------------------------------------
32448

@@ -331,22 +55,5 @@
33155
'Miscellaneous'),
33256
]
33357

334-
# Documents to append as an appendix to all manuals.
335-
#
336-
# texinfo_appendices = []
337-
338-
# If false, no module index is generated.
339-
#
340-
# texinfo_domain_indices = True
341-
342-
# How to display URL addresses: 'footnote', 'no', or 'inline'.
343-
#
344-
# texinfo_show_urls = 'footnote'
345-
346-
# If true, do not generate a @detailmenu in the "Top" node's menu.
347-
#
348-
# texinfo_no_detailmenu = False
349-
350-
35158
# Example configuration for intersphinx: refer to the Python standard library.
35259
intersphinx_mapping = {'https://docs.python.org/': None}

0 commit comments

Comments
 (0)