Blacken docs config.

This commit is contained in:
Jannis Leidel 2020-02-07 11:14:43 +01:00
parent c39adbb1bb
commit 4d5a4ceeab
No known key found for this signature in database
GPG key ID: C795956FB489DCA9

View file

@ -11,8 +11,6 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
import os
import sys
from pkg_resources import get_distribution
# If extensions (or modules to document with autodoc) are in another directory,
@ -31,26 +29,26 @@ extensions = []
# templates_path = ['.templates']
# The suffix of source filenames.
source_suffix = '.txt'
source_suffix = ".txt"
# The encoding of source files.
# source_encoding = 'utf-8'
# The master toctree document.
master_doc = 'index'
master_doc = "index"
# General information about the project.
project = u'django-authority'
copyright = u'2009-2019, Jannis Leidel'
project = u"django-authority"
copyright = u"2009-2020, Jannis Leidel"
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = get_distribution('django-authority').version
release = get_distribution("django-authority").version
# The short X.Y version.
version = '.'.join(release.split('.')[:2])
version = ".".join(release.split(".")[:2])
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
@ -67,7 +65,7 @@ version = '.'.join(release.split('.')[:2])
# List of directories, relative to source directory, that shouldn't be searched
# for source files.
exclude_trees = ['build']
exclude_trees = ["build"]
# The reST default role (used for this markup: `text`) to use for all documents.
# default_role = None
@ -84,7 +82,7 @@ exclude_trees = ['build']
# show_authors = False
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = "sphinx"
# A list of ignored prefixes for module index sorting.
# modindex_common_prefix = []
@ -94,7 +92,7 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
html_theme = 'nature'
html_theme = "nature"
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
@ -102,7 +100,7 @@ html_theme = 'nature'
# html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory.
html_theme_path = ['.theme']
html_theme_path = [".theme"]
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
@ -113,17 +111,17 @@ html_theme_path = ['.theme']
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
html_logo = '.static/logo.png'
html_logo = ".static/logo.png"
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
html_favicon = 'favicon.png'
html_favicon = "favicon.png"
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['.static']
html_static_path = [".static"]
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
@ -161,7 +159,7 @@ html_show_sourcelink = False
# html_file_suffix = ''
# Output file base name for HTML help builder.
htmlhelp_basename = 'django-authoritydoc'
htmlhelp_basename = "django-authoritydoc"
# -- Options for LaTeX output --------------------------------------------------
@ -175,8 +173,13 @@ htmlhelp_basename = 'django-authoritydoc'
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [
('index', 'django-authority.tex', u'django-authority Documentation',
u'The django-authority team', 'manual'),
(
"index",
"django-authority.tex",
u"django-authority Documentation",
u"The django-authority team",
"manual",
),
]
# The name of an image file (relative to this directory) to place at the top of