https://github.com/python/cpython/commit/ed395f5c0e4005d86b5aae31656fd81b97a828ae
commit: ed395f5c0e4005d86b5aae31656fd81b97a828ae
branch: 3.12
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2024-05-15T18:20:41Z
summary:

[3.12] gh-119009: Add gettext target (GH-119006) (#119075)

Co-authored-by: Rafael Fontenelle <[email protected]>

files:
M Doc/Makefile
M Doc/conf.py

diff --git a/Doc/Makefile b/Doc/Makefile
index dd068c520ad60c..eca574ec290af7 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -32,6 +32,7 @@ help:
        @echo "  clean      to remove build files"
        @echo "  venv       to create a venv with necessary tools"
        @echo "  html       to make standalone HTML files"
+       @echo "  gettext    to generate POT files"
        @echo "  htmlview   to open the index page built by the html target in 
your browser"
        @echo "  htmllive   to rebuild and reload HTML files in your browser"
        @echo "  htmlhelp   to make HTML files and a HTML help project"
@@ -140,6 +141,11 @@ pydoc-topics: build
        @echo "Building finished; now run this:" \
              "cp build/pydoc-topics/topics.py ../Lib/pydoc_data/topics.py"
 
+.PHONY: gettext
+gettext: BUILDER = gettext
+gettext: SPHINXOPTS += '-d build/doctrees-gettext'
+gettext: build
+
 .PHONY: htmlview
 htmlview: html
        $(PYTHON) -c "import os, webbrowser; webbrowser.open('file://' + 
os.path.realpath('build/html/index.html'))"
diff --git a/Doc/conf.py b/Doc/conf.py
index 74b6c9d4115643..e292bdd5003b97 100644
--- a/Doc/conf.py
+++ b/Doc/conf.py
@@ -358,6 +358,8 @@
 # Split the index
 html_split_index = True
 
+# Split pot files one per reST file
+gettext_compact = False
 
 # Options for LaTeX output
 # ------------------------

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to