Fixed #33753 -- Fixed docs build on Sphinx 5+.

Empty language is not supported anymore.
This commit is contained in:
Mariusz Felisiak 2022-06-01 12:13:15 +02:00 committed by GitHub
parent f3e2bb0833
commit 565ad5ace4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,11 @@ PAPER ?=
BUILDDIR ?= _build
LANGUAGE ?=
# Set the default language.
ifndef LANGUAGE
override LANGUAGE = en
endif
# Convert something like "en_US" to "en", because Sphinx does not recognize
# underscores. Country codes should be passed using a dash, e.g. "pt-BR".
LANGUAGEOPT = $(firstword $(subst _, ,$(LANGUAGE)))