Support Wagtail 4.2 (#1)
Co-authored-by: nick.moreton <nick.moreton@torchbox.com> Co-authored-by: Nick Moreton <nick.moreton@torchbox.com> Reviewed-on: #1
This commit is contained in:
66
docs/conf.py
66
docs/conf.py
@ -20,14 +20,15 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
|
||||
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
|
||||
|
||||
if not on_rtd: # only import and set the theme if we're building docs locally
|
||||
import sphinx_rtd_theme
|
||||
html_theme = 'sphinx_rtd_theme'
|
||||
|
||||
html_theme = "sphinx_rtd_theme"
|
||||
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
||||
|
||||
sys.path.insert(0, os.path.abspath('.'))
|
||||
sys.path.insert(0, os.path.abspath("."))
|
||||
|
||||
# -- General configuration ------------------------------------------------
|
||||
|
||||
@ -41,31 +42,31 @@ sys.path.insert(0, os.path.abspath('.'))
|
||||
extensions = []
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
templates_path = ['_templates']
|
||||
templates_path = ["_templates"]
|
||||
|
||||
# The suffix(es) of source filenames.
|
||||
# You can specify multiple suffix as a list of string:
|
||||
#
|
||||
# source_suffix = ['.rst', '.md']
|
||||
source_suffix = '.rst'
|
||||
source_suffix = ".rst"
|
||||
|
||||
# The master toctree document.
|
||||
master_doc = 'index'
|
||||
master_doc = "index"
|
||||
|
||||
# General information about the project.
|
||||
project = 'wagtail-personalisation'
|
||||
copyright = '2019, Lab Digital BV'
|
||||
author = 'Lab Digital BV'
|
||||
project = "wagtail-personalisation"
|
||||
copyright = "2019, Lab Digital BV"
|
||||
author = "Lab Digital BV"
|
||||
|
||||
# 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 short X.Y version.
|
||||
version = '0.15.3'
|
||||
version = "0.15.3"
|
||||
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = '0.15.3'
|
||||
release = "0.15.3"
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
@ -77,10 +78,10 @@ release = '0.15.3'
|
||||
# List of patterns, relative to source directory, that match files and
|
||||
# directories to ignore when looking for source files.
|
||||
# This patterns also effect to html_static_path and html_extra_path
|
||||
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
|
||||
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
pygments_style = 'sphinx'
|
||||
pygments_style = "sphinx"
|
||||
|
||||
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
||||
todo_include_todos = False
|
||||
@ -99,10 +100,10 @@ todo_include_todos = False
|
||||
#
|
||||
# html_theme_options = {}
|
||||
html_theme_options = {
|
||||
'analytics_id': 'UA-100203499-2',
|
||||
"analytics_id": "UA-100203499-2",
|
||||
}
|
||||
|
||||
html_logo = 'logo.png'
|
||||
html_logo = "logo.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,
|
||||
@ -113,7 +114,7 @@ html_logo = 'logo.png'
|
||||
# -- Options for HTMLHelp output ------------------------------------------
|
||||
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'wagtail-personalisationdoc'
|
||||
htmlhelp_basename = "wagtail-personalisationdoc"
|
||||
|
||||
|
||||
# -- Options for LaTeX output ---------------------------------------------
|
||||
@ -122,15 +123,12 @@ latex_elements = {
|
||||
# The paper size ('letterpaper' or 'a4paper').
|
||||
#
|
||||
# 'papersize': 'letterpaper',
|
||||
|
||||
# The font size ('10pt', '11pt' or '12pt').
|
||||
#
|
||||
# 'pointsize': '10pt',
|
||||
|
||||
# Additional stuff for the LaTeX preamble.
|
||||
#
|
||||
# 'preamble': '',
|
||||
|
||||
# Latex figure (float) alignment
|
||||
#
|
||||
# 'figure_align': 'htbp',
|
||||
@ -140,8 +138,13 @@ latex_elements = {
|
||||
# (source start file, target name, title,
|
||||
# author, documentclass [howto, manual, or own class]).
|
||||
latex_documents = [
|
||||
(master_doc, 'wagtail-personalisation.tex', 'wagtail-personalisation Documentation',
|
||||
'Lab Digital BV', 'manual'),
|
||||
(
|
||||
master_doc,
|
||||
"wagtail-personalisation.tex",
|
||||
"wagtail-personalisation Documentation",
|
||||
"Lab Digital BV",
|
||||
"manual",
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
@ -150,8 +153,13 @@ latex_documents = [
|
||||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
(master_doc, 'wagtail-personalisation', 'wagtail-personalisation Documentation',
|
||||
[author], 1)
|
||||
(
|
||||
master_doc,
|
||||
"wagtail-personalisation",
|
||||
"wagtail-personalisation Documentation",
|
||||
[author],
|
||||
1,
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
@ -161,7 +169,13 @@ man_pages = [
|
||||
# (source start file, target name, title, author,
|
||||
# dir menu entry, description, category)
|
||||
texinfo_documents = [
|
||||
(master_doc, 'wagtail-personalisation', 'wagtail-personalisation Documentation',
|
||||
author, 'wagtail-personalisation', 'One line description of project.',
|
||||
'Miscellaneous'),
|
||||
(
|
||||
master_doc,
|
||||
"wagtail-personalisation",
|
||||
"wagtail-personalisation Documentation",
|
||||
author,
|
||||
"wagtail-personalisation",
|
||||
"One line description of project.",
|
||||
"Miscellaneous",
|
||||
),
|
||||
]
|
||||
|
Reference in New Issue
Block a user