Skip to content

Commit 3bb206b

Browse files
authored
Merge branch 'master' into bugfix/mute-django-signals-when-viewing-historical-versions-of-objects-in-admin
2 parents 9124902 + 90e7dd6 commit 3bb206b

1 file changed

Lines changed: 42 additions & 36 deletions

File tree

docs/conf.py

Lines changed: 42 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# sys.path.insert(0, os.path.abspath('.'))
2222

2323
import os
24+
2425
from reversion import __version__
2526

2627
# -- General configuration ------------------------------------------------
@@ -45,35 +46,35 @@
4546
# You can specify multiple suffix as a list of string:
4647
#
4748
# source_suffix = ['.rst', '.md']
48-
source_suffix = '.rst'
49+
source_suffix = ".rst"
4950

5051
# The encoding of source files.
5152
#
5253
# source_encoding = 'utf-8-sig'
5354

5455
# The master toctree document.
55-
master_doc = 'index'
56+
master_doc = "index"
5657

5758
# General information about the project.
58-
project = 'django-reversion'
59-
copyright = '2016, Dave Hall'
60-
author = 'Dave Hall'
59+
project = "django-reversion"
60+
copyright = "2016, Dave Hall"
61+
author = "Dave Hall"
6162

6263
# The version info for the project you're documenting, acts as replacement for
6364
# |version| and |release|, also used in various other places throughout the
6465
# built documents.
6566
#
6667
# The short X.Y version.
67-
version = '.'.join(str(x) for x in __version__[:2])
68+
version = ".".join(str(x) for x in __version__[:2])
6869
# The full version, including alpha/beta/rc tags.
69-
release = '.'.join(str(x) for x in __version__)
70+
release = ".".join(str(x) for x in __version__)
7071

7172
# The language for content autogenerated by Sphinx. Refer to documentation
7273
# for a list of supported languages.
7374
#
7475
# This is also used if you do content translation via gettext catalogs.
7576
# Usually you set "language" from the command line for these cases.
76-
language = 'en'
77+
language = "en"
7778

7879
# There are two options for replacing |today|: either, you set today to some
7980
# non-false value, then it is used:
@@ -87,7 +88,7 @@
8788
# List of patterns, relative to source directory, that match files and
8889
# directories to ignore when looking for source files.
8990
# This patterns also effect to html_static_path and html_extra_path
90-
exclude_patterns = ['_build', '_include', 'Thumbs.db', '.DS_Store']
91+
exclude_patterns = ["_build", "_include", "Thumbs.db", ".DS_Store"]
9192

9293
# The reST default role (used for this markup: `text`) to use for all
9394
# documents.
@@ -109,7 +110,7 @@
109110
# show_authors = False
110111

111112
# The name of the Pygments (syntax highlighting) style to use.
112-
pygments_style = 'sphinx'
113+
pygments_style = "sphinx"
113114

114115
# A list of ignored prefixes for module index sorting.
115116
# modindex_common_prefix = []
@@ -126,10 +127,8 @@
126127
# -- Options for HTML output ----------------------------------------------
127128

128129
# Use RTD theme locally.
129-
if not os.environ.get('READTHEDOCS', None) == 'True':
130-
import sphinx_rtd_theme
130+
if not os.environ.get("READTHEDOCS", None) == "True":
131131
html_theme = "sphinx_rtd_theme"
132-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
133132

134133
# The name for this set of Sphinx documents.
135134
# "<project> v<release> documentation" by default.
@@ -234,34 +233,36 @@
234233
# html_search_scorer = 'scorer.js'
235234

236235
# Output file base name for HTML help builder.
237-
htmlhelp_basename = 'django-reversiondoc'
236+
htmlhelp_basename = "django-reversiondoc"
238237

239238
# -- Options for LaTeX output ---------------------------------------------
240239

241240
latex_elements = {
242-
# The paper size ('letterpaper' or 'a4paper').
243-
#
244-
# 'papersize': 'letterpaper',
245-
246-
# The font size ('10pt', '11pt' or '12pt').
247-
#
248-
# 'pointsize': '10pt',
249-
250-
# Additional stuff for the LaTeX preamble.
251-
#
252-
# 'preamble': '',
253-
254-
# Latex figure (float) alignment
255-
#
256-
# 'figure_align': 'htbp',
241+
# The paper size ('letterpaper' or 'a4paper').
242+
#
243+
# 'papersize': 'letterpaper',
244+
# The font size ('10pt', '11pt' or '12pt').
245+
#
246+
# 'pointsize': '10pt',
247+
# Additional stuff for the LaTeX preamble.
248+
#
249+
# 'preamble': '',
250+
# Latex figure (float) alignment
251+
#
252+
# 'figure_align': 'htbp',
257253
}
258254

259255
# Grouping the document tree into LaTeX files. List of tuples
260256
# (source start file, target name, title,
261257
# author, documentclass [howto, manual, or own class]).
262258
latex_documents = [
263-
(master_doc, 'django-reversion.tex', 'django-reversion Documentation',
264-
'Dave Hall', 'manual'),
259+
(
260+
master_doc,
261+
"django-reversion.tex",
262+
"django-reversion Documentation",
263+
"Dave Hall",
264+
"manual",
265+
),
265266
]
266267

267268
# The name of an image file (relative to this directory) to place at the top of
@@ -296,8 +297,7 @@
296297
# One entry per manual page. List of tuples
297298
# (source start file, name, description, authors, manual section).
298299
man_pages = [
299-
(master_doc, 'django-reversion', 'django-reversion Documentation',
300-
[author], 1)
300+
(master_doc, "django-reversion", "django-reversion Documentation", [author], 1)
301301
]
302302

303303
# If true, show URL addresses after external links.
@@ -311,9 +311,15 @@
311311
# (source start file, target name, title, author,
312312
# dir menu entry, description, category)
313313
texinfo_documents = [
314-
(master_doc, 'django-reversion', 'django-reversion Documentation',
315-
author, 'django-reversion', 'One line description of project.',
316-
'Miscellaneous'),
314+
(
315+
master_doc,
316+
"django-reversion",
317+
"django-reversion Documentation",
318+
author,
319+
"django-reversion",
320+
"One line description of project.",
321+
"Miscellaneous",
322+
),
317323
]
318324

319325
# Documents to append as an appendix to all manuals.

0 commit comments

Comments
 (0)