Skip to content

Commit

Permalink
[3.2.x] Fixed #33753 -- Fixed docs build on Sphinx 5+.
Browse files Browse the repository at this point in the history
Empty language is not supported anymore.
Backport of 565ad5a from main
  • Loading branch information
felixxm committed Jun 1, 2022
1 parent e01b383 commit a23c25d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/Makefile
Expand Up @@ -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)))
Expand Down

0 comments on commit a23c25d

Please sign in to comment.