File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 32
32
@echo " clean to remove build files"
33
33
@echo " venv to create a venv with necessary tools"
34
34
@echo " html to make standalone HTML files"
35
+ @echo " gettext to generate POT files"
35
36
@echo " htmlview to open the index page built by the html target in your browser"
36
37
@echo " htmllive to rebuild and reload HTML files in your browser"
37
38
@echo " htmlhelp to make HTML files and a HTML help project"
@@ -140,6 +141,11 @@ pydoc-topics: build
140
141
@echo " Building finished; now run this:" \
141
142
" cp build/pydoc-topics/topics.py ../Lib/pydoc_data/topics.py"
142
143
144
+ .PHONY : gettext
145
+ gettext : BUILDER = gettext
146
+ gettext : SPHINXOPTS += '-d build/doctrees-gettext'
147
+ gettext : build
148
+
143
149
.PHONY : htmlview
144
150
htmlview : html
145
151
$(PYTHON ) -c " import os, webbrowser; webbrowser.open('file://' + os.path.realpath('build/html/index.html'))"
Original file line number Diff line number Diff line change 374
374
# Split the index
375
375
html_split_index = True
376
376
377
+ # Split pot files one per reST file
378
+ gettext_compact = False
377
379
378
380
# Options for LaTeX output
379
381
# ------------------------
You can’t perform that action at this time.
0 commit comments