зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
15d08f2e20
Коммит
c4c34a5c37
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче