File tree 4 files changed +13
-8
lines changed 4 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 9
9
* ~
10
10
.gdb_history
11
11
Doc /build /
12
- Doc /tools /docutils /
13
- Doc /tools /jinja /
14
- Doc /tools /jinja2 /
15
- Doc /tools /pygments /
16
- Doc /tools /sphinx /
12
+ Doc /venv /
17
13
Lib /lib2to3 /* .pickle
18
14
Lib /test /data /*
19
15
Lib /_sysconfigdata.py
Original file line number Diff line number Diff line change 9
9
autom4te.cache$
10
10
^build/
11
11
^Doc/build/
12
+ ^Doc/venv/
12
13
buildno$
13
14
config.cache
14
15
config.log
Original file line number Diff line number Diff line change @@ -15,11 +15,12 @@ ALLSPHINXOPTS = -b $(BUILDER) -d build/doctrees -D latex_paper_size=$(PAPER) \
15
15
16
16
.PHONY : help build html htmlhelp latex text changes linkcheck \
17
17
suspicious coverage doctest pydoc-topics htmlview clean dist check serve \
18
- autobuild-dev autobuild-stable
18
+ autobuild-dev autobuild-stable venv
19
19
20
20
help :
21
21
@echo " Please use \` make <target>' where <target> is one of"
22
22
@echo " clean to remove build files"
23
+ @echo " venv to create a venv with necessary tools"
23
24
@echo " html to make standalone HTML files"
24
25
@echo " htmlview to open the index page built by the html target in your browser"
25
26
@echo " htmlhelp to make HTML files and a HTML help project"
@@ -102,7 +103,11 @@ htmlview: html
102
103
$(PYTHON ) -c " import webbrowser; webbrowser.open('build/html/index.html')"
103
104
104
105
clean :
105
- -rm -rf build/*
106
+ -rm -rf build/* venv/*
107
+
108
+ venv :
109
+ $(PYTHON ) -m venv venv
110
+ ./venv/bin/python3 -m pip install -U Sphinx
106
111
107
112
dist :
108
113
rm -rf dist
@@ -172,4 +177,3 @@ autobuild-stable:
172
177
exit 1;; \
173
178
esac
174
179
@make autobuild-dev
175
-
Original file line number Diff line number Diff line change @@ -1348,6 +1348,10 @@ C API
1348
1348
Documentation
1349
1349
-------------
1350
1350
1351
+ - Issue #22394: Doc/Makefile now supports ``make venv PYTHON=../python`` to
1352
+ create a venv for generating the documentation, e.g.,
1353
+ ``make html PYTHON=venv/bin/python3``.
1354
+
1351
1355
- Issue #21514: The documentation of the json module now refers to new JSON RFC
1352
1356
7159 instead of obsoleted RFC 4627.
1353
1357
You can’t perform that action at this time.
0 commit comments