# 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/.
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, ".."))
# JSDoc must run successfully for dirs specified, so running # tree-wide (the default) will not work currently. # When adding more paths to this list, please ensure that they are not # excluded from valid-jsdoc in the top-level .eslintrc.js.
js_source_path = [ "../browser/components/backup", "../browser/components/backup/actors", "../browser/components/backup/resources", "../browser/components/customizableui", "../browser/components/extensions", "../browser/components/migration", "../browser/components/migration/content", "../browser/components/uitour", "../browser/components/urlbar", "../js/xpconnect/loader", "../remote/marionette", "../testing/mochitest/BrowserTestUtils", "../testing/mochitest/tests/SimpleTest/SimpleTest.js", "../testing/mochitest/tests/SimpleTest/EventUtils.js", "../testing/modules/Assert.sys.mjs", "../testing/modules/TestUtils.sys.mjs", "../toolkit/actors", "../toolkit/components/extensions", "../toolkit/components/extensions/parent", "../toolkit/components/featuregates", "../toolkit/components/ml/content/ONNXPipeline.mjs", "../toolkit/mozapps/extensions", "../toolkit/components/prompts/src", "../toolkit/components/pictureinpicture", "../toolkit/components/pictureinpicture/content", "../toolkit/components/search", "../toolkit/components/uniffi-bindgen-gecko-js/components/generated",
]
root_for_relative_js_paths = ".."
jsdoc_config_path = "jsdoc.json"
# Override the search box to use Google instead of # sphinx search on firefox-source-docs.mozilla.org if (
os.environ.get("MOZ_SOURCE_DOCS_USE_GOOGLE") == "1" and os.environ.get("MOZ_SCM_LEVEL") == "3"
):
templates_path.append("_search_template")
exclude_patterns = ["_build", "_staging", "_venv", "**security/nss/legacy/**"]
pygments_style = "sphinx" # generate label “slugs” for header anchors so that # we can reference them from markdown links.
myst_heading_anchors = 5
# We need to perform some adjustment of the settings and environment # when running on Read The Docs.
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
if on_rtd: # SHELL isn't set on RTD and mach.mixin.process's import raises if a # shell-related environment variable can't be found. Set the variable here # to hack us into working on RTD. assert"SHELL"notin os.environ
os.environ["SHELL"] = "/bin/bash" else: # We only need to set the RTD theme when not on RTD because the RTD # environment handles this otherwise.
html_theme = "sphinx_rtd_theme"
# As we parse the error messages and they can be translated, force # the english locale
os.environ["LANG"] = "C"
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.