All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 # -*- coding: utf-8 -*-
3 # Configuration file for the Sphinx documentation builder.
5 # This file does only contain a selection of the most common options. For a
6 # full list see the documentation:
7 # http://www.sphinx-doc.org/en/stable/config
9 # -- Path setup --------------------------------------------------------------
11 # If extensions (or modules to document with autodoc) are in another directory,
12 # add these directories to sys.path here. If the directory is relative to the
13 # documentation root, use os.path.abspath to make it absolute, like shown here.
21 sys.path.insert(0, os.path.abspath('.' ))
23 # -- Project information -----------------------------------------------------
26 copyright = '2018, Łukasz Langa and contributors to Black'
27 author = 'Łukasz Langa and contributors to Black'
29 # Autopopulate version
31 # The short X.Y version.
32 # TODO: fix for 2 digit month
33 version = f'{black.__version__[:4]}'
34 # The full version, including alpha/beta/rc tags.
35 release = black.__version__
37 # -- General configuration ---------------------------------------------------
39 # If your documentation needs a minimal Sphinx version, state it here.
41 # needs_sphinx = '1.0'
43 # Add any Sphinx extension module names here, as strings. They can be
44 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
48 'sphinx.ext.intersphinx',
51 # Add any paths that contain templates here, relative to this directory.
52 templates_path = ['_templates']
55 '.md': 'recommonmark.parser.CommonMarkParser',
58 # The suffix(es) of source filenames.
59 # You can specify multiple suffix as a list of string:
60 source_suffix = ['.rst', '.md']
62 # The master toctree document.
65 # The language for content autogenerated by Sphinx. Refer to documentation
66 # for a list of supported languages.
68 # This is also used if you do content translation via gettext catalogs.
69 # Usually you set "language" from the command line for these cases.
72 # List of patterns, relative to source directory, that match files and
73 # directories to ignore when looking for source files.
74 # This pattern also affects html_static_path and html_extra_path .
75 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
77 # The name of the Pygments (syntax highlighting) style to use.
78 pygments_style = 'sphinx'
81 # -- Options for HTML output -------------------------------------------------
83 # The theme to use for HTML and HTML Help pages. See the documentation for
84 # a list of builtin themes.
86 html_theme = 'alabaster'
98 html_theme_options = {
100 'description': 'The uncompromising Python code formatter',
101 'github_user': 'ambv',
102 'github_repo': 'black',
103 'github_button': True,
104 'show_powered_by': True,
105 'fixed_sidebar': True,
109 # Add any paths that contain custom static files (such as style sheets) here,
110 # relative to this directory. They are copied after the builtin static files,
111 # so a file named "default.css" will overwrite the builtin "default.css".
112 html_static_path = ['_static']
114 # Custom sidebar templates, must be a dictionary that maps document names
117 # The default sidebars (for documents that don't match any pattern) are
118 # defined by theme itself. Builtin themes are using these templates by
119 # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
120 # 'searchbox.html']``.
125 # -- Options for HTMLHelp output ---------------------------------------------
127 # Output file base name for HTML help builder.
128 htmlhelp_basename = 'blackdoc'
131 # -- Options for LaTeX output ------------------------------------------------
134 # The paper size ('letterpaper' or 'a4paper').
136 # 'papersize': 'letterpaper',
138 # The font size ('10pt', '11pt' or '12pt').
140 # 'pointsize': '10pt',
142 # Additional stuff for the LaTeX preamble.
146 # Latex figure (float) alignment
148 # 'figure_align': 'htbp',
151 # Grouping the document tree into LaTeX files. List of tuples
152 # (source start file, target name, title,
153 # author, documentclass [howto, manual, or own class]).
155 (master_doc, 'black.tex', 'Documentation for Black',
156 'Łukasz Langa and contributors to Black', 'manual'),
160 # -- Options for manual page output ------------------------------------------
162 # One entry per manual page. List of tuples
163 # (source start file, name, description, authors, manual section).
165 (master_doc, 'black', 'Documentation for black',
170 # -- Options for Texinfo output ----------------------------------------------
172 # Grouping the document tree into Texinfo files. List of tuples
173 # (source start file, target name, title, author,
174 # dir menu entry, description, category)
175 texinfo_documents = [
176 (master_doc, 'Black', 'Documentation for Black',
177 author, 'Black', 'The uncompromising Python code formatter',
182 # -- Options for Epub output -------------------------------------------------
184 # Bibliographic Dublin Core info.
187 epub_publisher = author
188 epub_copyright = copyright
190 # The unique identifier of the text. This can be a ISBN number
191 # or the project homepage.
193 # epub_identifier = ''
195 # A unique identification for the text.
199 # A list of files that should not be packed into the epub file.
200 epub_exclude_files = ['search.html']
203 # -- Extension configuration -------------------------------------------------
205 # -- Options for intersphinx extension ---------------------------------------
207 # Example configuration for intersphinx: refer to the Python standard library.
208 intersphinx_mapping = {'https://docs.python.org/3/': None}