diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /comm/docs/conf.py | |
parent | Initial commit. (diff) | |
download | thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | comm/docs/conf.py | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/comm/docs/conf.py b/comm/docs/conf.py new file mode 100644 index 0000000000..fc9c1fb9b3 --- /dev/null +++ b/comm/docs/conf.py @@ -0,0 +1,69 @@ +# 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/. + +# Configuration file for the Sphinx documentation builder. + +import os +import sys + +# 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", + "bzlink", +] + +myst_enable_extensions = [ + "deflist", + "fieldlist", + "html_admonition", + "html_image", + "linkify", + "replacements", + "smartquotes", + "strikethrough", + "tasklist", +] + +myst_linkify_fuzzy_links = False +myst_heading_anchors = 2 + +templates_path = ["_templates"] +source_suffix = [".rst", ".md"] +exclude_patterns = [ + "_build", + "Thumbs.db", + ".DS_Store", + "_staging", + "_venv", + "README.md", +] + +html_theme = "sphinx_rtd_theme" +html_static_path = ["_static"] + +autosectionlabel_maxdepth = 1 + + +def setup(app): + app.add_css_file("custom_theme.css") |