2022-10-05 18:25:15 +03:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2022-09-29 22:01:02 +03:00
|
|
|
|
2022-10-05 18:25:15 +03:00
|
|
|
# Configuration file for the Sphinx documentation builder.
|
2022-09-29 22:01:02 +03:00
|
|
|
|
2022-12-15 21:36:46 +03:00
|
|
|
import os
|
|
|
|
import sys
|
2022-09-29 22:01:02 +03:00
|
|
|
|
2022-12-15 21:36:46 +03:00
|
|
|
# Set up Python environment to load build system packages.
|
|
|
|
OUR_DIR = os.path.dirname(__file__)
|
|
|
|
topsrcdir = os.path.normpath(os.path.join(OUR_DIR, ".."))
|
|
|
|
|
|
|
|
|
|
|
|
project = "Thunderbird Source Docs"
|
|
|
|
html_show_copyright = False
|
|
|
|
author = "Thunderbird Developers"
|
|
|
|
|
|
|
|
EXTRA_PATHS = ("docs/_addons",)
|
|
|
|
|
|
|
|
sys.path[:0] = [os.path.join(topsrcdir, p) for p in EXTRA_PATHS]
|
|
|
|
|
|
|
|
sys.path.insert(0, OUR_DIR)
|
|
|
|
|
|
|
|
extensions = [
|
|
|
|
"myst_parser",
|
|
|
|
"sphinx.ext.autodoc",
|
|
|
|
"sphinx.ext.autosectionlabel",
|
|
|
|
"sphinx.ext.doctest",
|
|
|
|
"sphinx.ext.graphviz",
|
|
|
|
"sphinx.ext.napoleon",
|
|
|
|
"sphinx.ext.todo",
|
2024-02-03 14:09:04 +03:00
|
|
|
"sphinx_js",
|
2022-12-15 21:36:46 +03:00
|
|
|
"bzlink",
|
|
|
|
]
|
|
|
|
|
2024-02-03 14:09:04 +03:00
|
|
|
js_source_path = "../"
|
2024-04-30 01:37:21 +03:00
|
|
|
jsdoc_config_path = "jsdoc.conf.js"
|
2024-02-03 14:09:04 +03:00
|
|
|
|
2022-12-15 21:36:46 +03:00
|
|
|
myst_enable_extensions = [
|
|
|
|
"deflist",
|
|
|
|
"fieldlist",
|
|
|
|
"html_admonition",
|
|
|
|
"html_image",
|
|
|
|
"linkify",
|
|
|
|
"replacements",
|
|
|
|
"smartquotes",
|
|
|
|
"strikethrough",
|
|
|
|
"tasklist",
|
|
|
|
]
|
|
|
|
|
|
|
|
myst_linkify_fuzzy_links = False
|
|
|
|
myst_heading_anchors = 2
|
2022-09-29 22:01:02 +03:00
|
|
|
|
|
|
|
templates_path = ["_templates"]
|
2022-12-15 21:36:46 +03:00
|
|
|
source_suffix = [".rst", ".md"]
|
|
|
|
exclude_patterns = [
|
|
|
|
"_build",
|
|
|
|
"Thumbs.db",
|
|
|
|
".DS_Store",
|
|
|
|
"_staging",
|
|
|
|
"_venv",
|
|
|
|
"README.md",
|
|
|
|
]
|
2022-09-29 22:01:02 +03:00
|
|
|
|
|
|
|
html_theme = "sphinx_rtd_theme"
|
|
|
|
html_static_path = ["_static"]
|
2022-12-15 21:36:46 +03:00
|
|
|
|
|
|
|
autosectionlabel_maxdepth = 1
|
|
|
|
|
|
|
|
|
|
|
|
def setup(app):
|
|
|
|
app.add_css_file("custom_theme.css")
|