Bug 1678710 - Add a warning when creating the entire docs r=firefox-source-docs-reviewers,ahal DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D169077
This commit is contained in:
ogiorgis 2023-02-17 13:33:50 +00:00
Родитель 8500e18b77
Коммит 1a578e35ae
1 изменённых файлов: 9 добавлений и 1 удалений

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

@ -157,7 +157,15 @@ def build_docs(
outdir = outdir or os.path.join(command_context.topobjdir, "docs")
savedir = os.path.join(outdir, fmt)
path = path or command_context.topsrcdir
if path is None:
path = command_context.topsrcdir
if os.environ.get("MOZ_AUTOMATION") != "1":
print(
"\nBuilding the full documentation tree."
"Did you mean to only build part of the documentation?\n"
"For a faster command, consider running:\n"
" ./mach doc path/to/docs\n"
)
path = os.path.normpath(os.path.abspath(path))
docdir = _find_doc_dir(path)