2015-08-18 01:25:12 +02:00
|
|
|
|
#
|
|
|
|
|
# zulip-contributor-docs documentation build configuration file, created by
|
|
|
|
|
# sphinx-quickstart on Mon Aug 17 16:24:04 2015.
|
|
|
|
|
#
|
|
|
|
|
# This file is execfile()d with the current directory set to its
|
|
|
|
|
# containing dir.
|
|
|
|
|
#
|
|
|
|
|
# Note that not all possible configuration values are present in this
|
|
|
|
|
# autogenerated file.
|
|
|
|
|
#
|
|
|
|
|
# All configuration values have a default; values that are commented out
|
|
|
|
|
# serve to show the default.
|
|
|
|
|
import os
|
2019-11-22 03:55:23 +01:00
|
|
|
|
import sys
|
2017-10-27 10:48:19 +02:00
|
|
|
|
from typing import Any, Dict, List, Optional
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If extensions (or modules to document with autodoc) are in another directory,
|
|
|
|
|
# add these directories to sys.path here. If the directory is relative to the
|
|
|
|
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# sys.path.insert(0, os.path.abspath('.'))
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
2019-11-22 03:55:23 +01:00
|
|
|
|
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
|
|
|
|
|
from version import ZULIP_VERSION
|
|
|
|
|
|
2015-08-18 01:25:12 +02:00
|
|
|
|
# -- General configuration ------------------------------------------------
|
|
|
|
|
|
|
|
|
|
# If your documentation needs a minimal Sphinx version, state it here.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# needs_sphinx = '1.0'
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# Add any Sphinx extension module names here, as strings. They can be
|
|
|
|
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
|
|
|
|
# ones.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
extensions: List[str] = []
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# Add any paths that contain templates here, relative to this directory.
|
2021-02-12 08:20:45 +01:00
|
|
|
|
templates_path = ["_templates"]
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# The encoding of source files.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# source_encoding = 'utf-8-sig'
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# The master toctree document.
|
2021-02-12 08:20:45 +01:00
|
|
|
|
master_doc = "index"
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# General information about the project.
|
2021-02-12 08:20:45 +01:00
|
|
|
|
project = "Zulip"
|
|
|
|
|
copyright = "2012–2015 Dropbox, Inc., 2015–2021 Kandra Labs, Inc., and contributors"
|
|
|
|
|
author = "The Zulip Team"
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# 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.
|
2019-11-22 03:55:23 +01:00
|
|
|
|
version = ZULIP_VERSION
|
2015-08-18 01:25:12 +02:00
|
|
|
|
# The full version, including alpha/beta/rc tags.
|
2019-11-22 03:55:23 +01:00
|
|
|
|
release = ZULIP_VERSION
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
|
|
|
# for a list of supported languages.
|
|
|
|
|
#
|
|
|
|
|
# This is also used if you do content translation via gettext catalogs.
|
|
|
|
|
# Usually you set "language" from the command line for these cases.
|
python: Convert assignment type annotations to Python 3.6 style.
This commit was split by tabbott; this piece covers the vast majority
of files in Zulip, but excludes scripts/, tools/, and puppet/ to help
ensure we at least show the right error messages for Xenial systems.
We can likely further refine the remaining pieces with some testing.
Generated by com2ann, with whitespace fixes and various manual fixes
for runtime issues:
- invoiced_through: Optional[LicenseLedger] = models.ForeignKey(
+ invoiced_through: Optional["LicenseLedger"] = models.ForeignKey(
-_apns_client: Optional[APNsClient] = None
+_apns_client: Optional["APNsClient"] = None
- notifications_stream: Optional[Stream] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)
- signup_notifications_stream: Optional[Stream] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)
+ notifications_stream: Optional["Stream"] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)
+ signup_notifications_stream: Optional["Stream"] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)
- author: Optional[UserProfile] = models.ForeignKey('UserProfile', blank=True, null=True, on_delete=CASCADE)
+ author: Optional["UserProfile"] = models.ForeignKey('UserProfile', blank=True, null=True, on_delete=CASCADE)
- bot_owner: Optional[UserProfile] = models.ForeignKey('self', null=True, on_delete=models.SET_NULL)
+ bot_owner: Optional["UserProfile"] = models.ForeignKey('self', null=True, on_delete=models.SET_NULL)
- default_sending_stream: Optional[Stream] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)
- default_events_register_stream: Optional[Stream] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)
+ default_sending_stream: Optional["Stream"] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)
+ default_events_register_stream: Optional["Stream"] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)
-descriptors_by_handler_id: Dict[int, ClientDescriptor] = {}
+descriptors_by_handler_id: Dict[int, "ClientDescriptor"] = {}
-worker_classes: Dict[str, Type[QueueProcessingWorker]] = {}
-queues: Dict[str, Dict[str, Type[QueueProcessingWorker]]] = {}
+worker_classes: Dict[str, Type["QueueProcessingWorker"]] = {}
+queues: Dict[str, Dict[str, Type["QueueProcessingWorker"]]] = {}
-AUTH_LDAP_REVERSE_EMAIL_SEARCH: Optional[LDAPSearch] = None
+AUTH_LDAP_REVERSE_EMAIL_SEARCH: Optional["LDAPSearch"] = None
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-22 01:09:50 +02:00
|
|
|
|
language: Optional[str] = None
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# There are two options for replacing |today|: either, you set today to some
|
|
|
|
|
# non-false value, then it is used:
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# today = ''
|
2015-08-18 01:25:12 +02:00
|
|
|
|
# Else, today_fmt is used as the format for a strftime call.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# today_fmt = '%B %d, %Y'
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# List of patterns, relative to source directory, that match files and
|
|
|
|
|
# directories to ignore when looking for source files.
|
2021-02-12 08:20:45 +01:00
|
|
|
|
exclude_patterns = ["_build", "README.md"]
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# The reST default role (used for this markup: `text`) to use for all
|
|
|
|
|
# documents.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# default_role = None
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If true, '()' will be appended to :func: etc. cross-reference text.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# add_function_parentheses = True
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If true, the current module name will be prepended to all description
|
|
|
|
|
# unit titles (such as .. function::).
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# add_module_names = True
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If true, sectionauthor and moduleauthor directives will be shown in the
|
|
|
|
|
# output. They are ignored by default.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# show_authors = False
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# The name of the Pygments (syntax highlighting) style to use.
|
2021-02-12 08:20:45 +01:00
|
|
|
|
pygments_style = "sphinx"
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# A list of ignored prefixes for module index sorting.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# modindex_common_prefix = []
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If true, keep warnings as "system message" paragraphs in the built documents.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# keep_warnings = False
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If true, `todo` and `todoList` produce output, else they produce nothing.
|
|
|
|
|
todo_include_todos = False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# -- Options for HTML output ----------------------------------------------
|
|
|
|
|
|
|
|
|
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
|
|
|
|
# a list of builtin themes.
|
2015-08-18 23:42:27 +02:00
|
|
|
|
|
|
|
|
|
# Read The Docs can't import sphinx_rtd_theme, so don't import it there.
|
2021-02-12 08:20:45 +01:00
|
|
|
|
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
|
2015-08-18 23:42:27 +02:00
|
|
|
|
|
|
|
|
|
if not on_rtd:
|
|
|
|
|
import sphinx_rtd_theme
|
2021-02-12 08:19:30 +01:00
|
|
|
|
|
2021-02-12 08:20:45 +01:00
|
|
|
|
html_theme = "sphinx_rtd_theme"
|
2015-08-18 23:42:27 +02:00
|
|
|
|
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
|
2017-11-17 19:40:58 +01:00
|
|
|
|
else:
|
2021-02-12 08:20:45 +01:00
|
|
|
|
html_theme = "sphinx_rtd_theme"
|
2017-11-17 19:40:58 +01:00
|
|
|
|
html_style = None
|
2021-02-12 08:20:45 +01:00
|
|
|
|
html_theme_options = {"collapse_navigation": False}
|
2017-11-17 19:40:58 +01:00
|
|
|
|
using_rtd_theme = True
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
# documentation.
|
2021-02-12 08:20:45 +01:00
|
|
|
|
html_theme_options = {"collapse_navigation": False, "logo_only": True}
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# Add any paths that contain custom themes here, relative to this directory.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_theme_path = []
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# The name for this set of Sphinx documents. If None, it defaults to
|
|
|
|
|
# "<project> v<release> documentation".
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_title = None
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# A shorter title for the navigation bar. Default is the same as html_title.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_short_title = None
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# The name of an image file (relative to this directory) to place at the top
|
|
|
|
|
# of the sidebar.
|
2021-02-12 08:20:45 +01:00
|
|
|
|
html_logo = "images/zulip-logo.svg"
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# 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.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_favicon = None
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# 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".
|
2021-02-12 08:20:45 +01:00
|
|
|
|
html_static_path = ["_static"]
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# Add any extra paths that contain custom files (such as robots.txt or
|
|
|
|
|
# .htaccess) here, relative to this directory. These files are copied
|
|
|
|
|
# directly to the root of the documentation.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_extra_path = []
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
|
|
|
|
# using the given strftime format.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_last_updated_fmt = '%b %d, %Y'
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If true, SmartyPants will be used to convert quotes and dashes to
|
|
|
|
|
# typographically correct entities.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_use_smartypants = True
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# Custom sidebar templates, maps document names to template names.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_sidebars = {}
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# Additional templates that should be rendered to pages, maps page names to
|
|
|
|
|
# template names.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_additional_pages = {}
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If false, no module index is generated.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_domain_indices = True
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If false, no index is generated.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_use_index = True
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If true, the index is split into individual pages for each letter.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_split_index = False
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If true, links to the reST sources are added to the pages.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_show_sourcelink = True
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_show_sphinx = True
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_show_copyright = True
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If true, an OpenSearch description file will be output, and all pages will
|
|
|
|
|
# contain a <link> tag referring to it. The value of this option must be the
|
|
|
|
|
# base URL from which the finished HTML is served.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_use_opensearch = ''
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# This is the file name suffix for HTML files (e.g. ".xhtml").
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_file_suffix = None
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# Language to be used for generating the HTML full-text search index.
|
|
|
|
|
# Sphinx supports the following languages:
|
|
|
|
|
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
|
|
|
|
|
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_search_language = 'en'
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# A dictionary with options for the search language support, empty by default.
|
|
|
|
|
# Now only 'ja' uses this config value
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_search_options = {'type': 'default'}
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# The name of a javascript file (relative to the configuration directory) that
|
|
|
|
|
# implements a search results scorer. If empty, the default will be used.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# html_search_scorer = 'scorer.js'
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# Output file base name for HTML help builder.
|
2021-02-12 08:20:45 +01:00
|
|
|
|
htmlhelp_basename = "zulip-contributor-docsdoc"
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# -- Options for LaTeX output ---------------------------------------------
|
|
|
|
|
|
python: Convert assignment type annotations to Python 3.6 style.
This commit was split by tabbott; this piece covers the vast majority
of files in Zulip, but excludes scripts/, tools/, and puppet/ to help
ensure we at least show the right error messages for Xenial systems.
We can likely further refine the remaining pieces with some testing.
Generated by com2ann, with whitespace fixes and various manual fixes
for runtime issues:
- invoiced_through: Optional[LicenseLedger] = models.ForeignKey(
+ invoiced_through: Optional["LicenseLedger"] = models.ForeignKey(
-_apns_client: Optional[APNsClient] = None
+_apns_client: Optional["APNsClient"] = None
- notifications_stream: Optional[Stream] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)
- signup_notifications_stream: Optional[Stream] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)
+ notifications_stream: Optional["Stream"] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)
+ signup_notifications_stream: Optional["Stream"] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)
- author: Optional[UserProfile] = models.ForeignKey('UserProfile', blank=True, null=True, on_delete=CASCADE)
+ author: Optional["UserProfile"] = models.ForeignKey('UserProfile', blank=True, null=True, on_delete=CASCADE)
- bot_owner: Optional[UserProfile] = models.ForeignKey('self', null=True, on_delete=models.SET_NULL)
+ bot_owner: Optional["UserProfile"] = models.ForeignKey('self', null=True, on_delete=models.SET_NULL)
- default_sending_stream: Optional[Stream] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)
- default_events_register_stream: Optional[Stream] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)
+ default_sending_stream: Optional["Stream"] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)
+ default_events_register_stream: Optional["Stream"] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)
-descriptors_by_handler_id: Dict[int, ClientDescriptor] = {}
+descriptors_by_handler_id: Dict[int, "ClientDescriptor"] = {}
-worker_classes: Dict[str, Type[QueueProcessingWorker]] = {}
-queues: Dict[str, Dict[str, Type[QueueProcessingWorker]]] = {}
+worker_classes: Dict[str, Type["QueueProcessingWorker"]] = {}
+queues: Dict[str, Dict[str, Type["QueueProcessingWorker"]]] = {}
-AUTH_LDAP_REVERSE_EMAIL_SEARCH: Optional[LDAPSearch] = None
+AUTH_LDAP_REVERSE_EMAIL_SEARCH: Optional["LDAPSearch"] = None
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-22 01:09:50 +02:00
|
|
|
|
latex_elements: Dict[str, str] = {
|
2016-12-28 05:16:12 +01:00
|
|
|
|
# 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',
|
python: Convert assignment type annotations to Python 3.6 style.
This commit was split by tabbott; this piece covers the vast majority
of files in Zulip, but excludes scripts/, tools/, and puppet/ to help
ensure we at least show the right error messages for Xenial systems.
We can likely further refine the remaining pieces with some testing.
Generated by com2ann, with whitespace fixes and various manual fixes
for runtime issues:
- invoiced_through: Optional[LicenseLedger] = models.ForeignKey(
+ invoiced_through: Optional["LicenseLedger"] = models.ForeignKey(
-_apns_client: Optional[APNsClient] = None
+_apns_client: Optional["APNsClient"] = None
- notifications_stream: Optional[Stream] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)
- signup_notifications_stream: Optional[Stream] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)
+ notifications_stream: Optional["Stream"] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)
+ signup_notifications_stream: Optional["Stream"] = models.ForeignKey('Stream', related_name='+', null=True, blank=True, on_delete=CASCADE)
- author: Optional[UserProfile] = models.ForeignKey('UserProfile', blank=True, null=True, on_delete=CASCADE)
+ author: Optional["UserProfile"] = models.ForeignKey('UserProfile', blank=True, null=True, on_delete=CASCADE)
- bot_owner: Optional[UserProfile] = models.ForeignKey('self', null=True, on_delete=models.SET_NULL)
+ bot_owner: Optional["UserProfile"] = models.ForeignKey('self', null=True, on_delete=models.SET_NULL)
- default_sending_stream: Optional[Stream] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)
- default_events_register_stream: Optional[Stream] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)
+ default_sending_stream: Optional["Stream"] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)
+ default_events_register_stream: Optional["Stream"] = models.ForeignKey('zerver.Stream', null=True, related_name='+', on_delete=CASCADE)
-descriptors_by_handler_id: Dict[int, ClientDescriptor] = {}
+descriptors_by_handler_id: Dict[int, "ClientDescriptor"] = {}
-worker_classes: Dict[str, Type[QueueProcessingWorker]] = {}
-queues: Dict[str, Dict[str, Type[QueueProcessingWorker]]] = {}
+worker_classes: Dict[str, Type["QueueProcessingWorker"]] = {}
+queues: Dict[str, Dict[str, Type["QueueProcessingWorker"]]] = {}
-AUTH_LDAP_REVERSE_EMAIL_SEARCH: Optional[LDAPSearch] = None
+AUTH_LDAP_REVERSE_EMAIL_SEARCH: Optional["LDAPSearch"] = None
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
2020-04-22 01:09:50 +02:00
|
|
|
|
}
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# Grouping the document tree into LaTeX files. List of tuples
|
|
|
|
|
# (source start file, target name, title,
|
|
|
|
|
# author, documentclass [howto, manual, or own class]).
|
|
|
|
|
latex_documents = [
|
2021-02-12 08:20:45 +01:00
|
|
|
|
(master_doc, "zulip-contributor-docs.tex", "Zulip Documentation", "The Zulip Team", "manual"),
|
2015-08-18 01:25:12 +02:00
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# The name of an image file (relative to this directory) to place at the top of
|
|
|
|
|
# the title page.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# latex_logo = None
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# For "manual" documents, if this is true, then toplevel headings are parts,
|
|
|
|
|
# not chapters.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# latex_use_parts = False
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If true, show page references after internal links.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# latex_show_pagerefs = False
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If true, show URL addresses after external links.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# latex_show_urls = False
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# Documents to append as an appendix to all manuals.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# latex_appendices = []
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If false, no module index is generated.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# latex_domain_indices = True
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# -- Options for manual page output ---------------------------------------
|
|
|
|
|
|
|
|
|
|
# One entry per manual page. List of tuples
|
|
|
|
|
# (source start file, name, description, authors, manual section).
|
|
|
|
|
man_pages = [
|
2021-02-12 08:20:45 +01:00
|
|
|
|
(master_doc, "zulip-contributor-docs", "Zulip Documentation", [author], 1),
|
2015-08-18 01:25:12 +02:00
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# If true, show URL addresses after external links.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# man_show_urls = False
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# -- Options for Texinfo output -------------------------------------------
|
|
|
|
|
|
|
|
|
|
# Grouping the document tree into Texinfo files. List of tuples
|
|
|
|
|
# (source start file, target name, title, author,
|
|
|
|
|
# dir menu entry, description, category)
|
|
|
|
|
texinfo_documents = [
|
2021-02-12 08:19:30 +01:00
|
|
|
|
(
|
|
|
|
|
master_doc,
|
2021-02-12 08:20:45 +01:00
|
|
|
|
"zulip-contributor-docs",
|
|
|
|
|
"Zulip Documentation",
|
2021-02-12 08:19:30 +01:00
|
|
|
|
author,
|
2021-02-12 08:20:45 +01:00
|
|
|
|
"zulip-contributor-docs",
|
|
|
|
|
"Documentation for contributing to Zulip.",
|
|
|
|
|
"Miscellaneous",
|
2021-02-12 08:19:30 +01:00
|
|
|
|
),
|
2015-08-18 01:25:12 +02:00
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# Documents to append as an appendix to all manuals.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# texinfo_appendices = []
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If false, no module index is generated.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# texinfo_domain_indices = True
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# How to display URL addresses: 'footnote', 'no', or 'inline'.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# texinfo_show_urls = 'footnote'
|
2015-08-18 01:25:12 +02:00
|
|
|
|
|
|
|
|
|
# If true, do not generate a @detailmenu in the "Top" node's menu.
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# texinfo_no_detailmenu = False
|
2016-04-01 23:55:23 +02:00
|
|
|
|
|
2018-01-23 19:44:41 +01:00
|
|
|
|
from recommonmark.transform import AutoStructify
|
2016-04-01 23:55:23 +02:00
|
|
|
|
|
2019-10-02 03:09:15 +02:00
|
|
|
|
# The suffix(es) of source filenames. You can specify multiple suffix
|
|
|
|
|
# as a dictionary mapping file extensions to file types
|
2019-11-30 19:11:56 +01:00
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/markdown.html
|
2019-10-02 03:09:15 +02:00
|
|
|
|
source_suffix = {
|
2021-02-12 08:20:45 +01:00
|
|
|
|
".rst": "restructuredtext",
|
|
|
|
|
".md": "markdown",
|
2017-01-24 06:34:26 +01:00
|
|
|
|
}
|
2016-04-01 23:55:23 +02:00
|
|
|
|
|
2019-11-30 19:11:56 +01:00
|
|
|
|
# Temporary workaround to remove multiple build warnings caused by upstream bug.
|
|
|
|
|
# See https://github.com/zulip/zulip/issues/13263 for details.
|
2020-07-05 00:23:12 +02:00
|
|
|
|
from commonmark.node import Node
|
2019-11-30 19:11:56 +01:00
|
|
|
|
from recommonmark.parser import CommonMarkParser
|
|
|
|
|
|
2020-06-11 00:54:34 +02:00
|
|
|
|
|
2019-11-30 19:11:56 +01:00
|
|
|
|
class CustomCommonMarkParser(CommonMarkParser):
|
2020-07-05 00:23:12 +02:00
|
|
|
|
def visit_document(self, node: Node) -> None:
|
2019-11-30 19:11:56 +01:00
|
|
|
|
pass
|
|
|
|
|
|
2021-02-12 08:19:30 +01:00
|
|
|
|
|
2018-01-23 19:44:41 +01:00
|
|
|
|
def setup(app: Any) -> None:
|
|
|
|
|
|
2019-11-30 19:11:56 +01:00
|
|
|
|
app.add_source_parser(CustomCommonMarkParser)
|
2021-02-12 08:19:30 +01:00
|
|
|
|
app.add_config_value(
|
2021-02-12 08:20:45 +01:00
|
|
|
|
"recommonmark_config",
|
2021-02-12 08:19:30 +01:00
|
|
|
|
{
|
2021-02-12 08:20:45 +01:00
|
|
|
|
"enable_eval_rst": True,
|
2021-02-12 08:19:30 +01:00
|
|
|
|
# Turn off recommonmark features we aren't using.
|
2021-02-12 08:20:45 +01:00
|
|
|
|
"enable_auto_doc_ref": False,
|
|
|
|
|
"auto_toc_tree_section": None,
|
|
|
|
|
"enable_auto_toc_tree": False,
|
|
|
|
|
"enable_math": False,
|
|
|
|
|
"enable_inline_math": False,
|
|
|
|
|
"url_resolver": lambda x: x,
|
2021-02-12 08:19:30 +01:00
|
|
|
|
},
|
|
|
|
|
True,
|
|
|
|
|
)
|
2018-01-23 19:44:41 +01:00
|
|
|
|
|
|
|
|
|
# Enable `eval_rst`, and any other features enabled in recommonmark_config.
|
2020-03-27 01:32:21 +01:00
|
|
|
|
# Docs: https://recommonmark.readthedocs.io/en/latest/auto_structify.html
|
2018-01-23 19:44:41 +01:00
|
|
|
|
# (But NB those docs are for master, not latest release.)
|
|
|
|
|
app.add_transform(AutoStructify)
|
|
|
|
|
|
|
|
|
|
# overrides for wide tables in RTD theme
|
2021-02-12 08:20:45 +01:00
|
|
|
|
app.add_css_file("theme_overrides.css") # path relative to _static
|