summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-06-01 12:13:15 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-06-01 12:13:38 +0200
commit007a21b57696308f812a3249194fa815773c7c11 (patch)
tree1dd5c5408b37005e03de49475994b873f70c4ef6 /docs
parent2f974e3c1e8c2a74114b1e9f0e8257743c4d472c (diff)
[4.1.x] Fixed #33753 -- Fixed docs build on Sphinx 5+.
Empty language is not supported anymore. Backport of 565ad5ace46aa1e2368450701cba45dd1a95a026 from main
Diffstat (limited to 'docs')
-rw-r--r--docs/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/Makefile b/docs/Makefile
index 39f84ec0e3..2b44830531 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -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)))