Skip to content

Commit 1c2e43d

Browse files
committed
Allow translation of html_short_title in docs config
1 parent 046a4e3 commit 1c2e43d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
# Python specific content from Doc/Tools/extensions/pyspecific.py
1919
from pyspecific import SOURCE_URI
20+
from sphinx.locale import _
2021

2122
# General configuration
2223
# ---------------------
@@ -299,7 +300,7 @@
299300
print("It may be removed in the future\n")
300301

301302
# Short title used e.g. for <title> HTML tags.
302-
html_short_title = f'{release} Documentation'
303+
html_short_title = _(f'{release} Documentation')
303304

304305
# Deployment preview information
305306
# (See .readthedocs.yml and https://docs.readthedocs.io/en/stable/reference/environment-variables.html)

0 commit comments

Comments
 (0)