Bug 1765365 - Use sphinx search on local builds r=firefox-source-docs-reviewers,ahal

Google search cannot be used anywhere other than https://firefox-source-docs.mozilla.org

Differential Revision: https://phabricator.services.mozilla.com/D167669
This commit is contained in:
ogiorgis 2023-01-26 14:21:06 +00:00
Родитель 15d08f2e20
Коммит c4c34a5c37
3 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

Просмотреть файл

@ -77,8 +77,15 @@ templates_path = ["_templates"]
source_suffix = [".rst", ".md"]
master_doc = "index"
project = "Firefox Source Docs"
# Override the search box to use Google instead of
# sphinx search
# 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")
html_sidebars = {
"**": [
"searchbox.html",

Просмотреть файл

@ -47,6 +47,8 @@ upload:
worker:
docker-image: {in-tree: "lint"}
max-run-time: 1800
env:
MOZ_SOURCE_DOCS_USE_GOOGLE: "1"
taskcluster-proxy: true
artifacts:
- type: file