summaryrefslogtreecommitdiffstats
path: root/Doc/conf.py
diff options
context:
space:
mode:
authorAdam Turner <9087854+AA-Turner@users.noreply.github.com>2023-05-04 07:11:09 (GMT)
committerGitHub <noreply@github.com>2023-05-04 07:11:09 (GMT)
commit35d273825abc319d0ecbd69110e847f6040d0cd7 (patch)
tree3faf83af2ece32cf5fabf5dc85c08628959221b7 /Doc/conf.py
parent9885677b0494e9be3eb8d7d69bebca0e79d8abcc (diff)
downloadcpython-35d273825abc319d0ecbd69110e847f6040d0cd7.zip
cpython-35d273825abc319d0ecbd69110e847f6040d0cd7.tar.gz
cpython-35d273825abc319d0ecbd69110e847f6040d0cd7.tar.bz2
GH-97950: Allow translation of index directive content (#104000)
Diffstat (limited to 'Doc/conf.py')
-rw-r--r--Doc/conf.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/conf.py b/Doc/conf.py
index 6a3c01c..485c0bd 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -91,6 +91,11 @@ smartquotes_excludes = {
# Avoid a warning with Sphinx >= 2.0
master_doc = 'contents'
+# Allow translation of index directives
+gettext_additional_targets = [
+ 'index',
+]
+
# Options for HTML output
# -----------------------