File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ matrix:
43
43
- cd Doc
44
44
# Sphinx is pinned so that new versions that introduce new warnings won't suddenly cause build failures.
45
45
# (Updating the version is fine as long as no warnings are raised by doing so.)
46
- - python -m pip install sphinx~=1.6.1
46
+ - python -m pip install sphinx~=1.6.1 blurb
47
47
script :
48
48
- make check suspicious html SPHINXOPTS="-q -W -j4"
49
49
- os : linux
Original file line number Diff line number Diff line change 6
6
# You can set these variables from the command line.
7
7
PYTHON = python3
8
8
SPHINXBUILD = sphinx-build
9
+ BLURB = $(PYTHON ) -m blurb
9
10
PAPER =
10
11
SOURCES =
11
12
DISTVERSION = $(shell $(PYTHON ) tools/extensions/patchlevel.py)
38
39
@echo " serve to serve the documentation on the localhost (8000)"
39
40
40
41
build :
42
+ -mkdir -p build
43
+ # Look first for a Misc/NEWS file (building from a source release tarball
44
+ # or old repo) and use that, otherwise look for a Misc/NEWS.d directory
45
+ # (building from a newer repo) and use blurb to generate the NEWS file.
46
+ @if [ -f ../Misc/NEWS ] ; then \
47
+ echo "Using existing Misc/NEWS file"; \
48
+ cp ../Misc/NEWS build/NEWS; \
49
+ elif [ -d ../Misc/NEWS.d ]; then \
50
+ echo "Building NEWS from Misc/NEWS.d with blurb"; \
51
+ $(BLURB) merge -f build/NEWS; \
52
+ else \
53
+ echo "Neither Misc/NEWS.d nor Misc/NEWS found; cannot build docs"; \
54
+ exit 1; \
55
+ fi
41
56
$(SPHINXBUILD) $(ALLSPHINXOPTS)
42
57
@echo
43
58
@@ -107,7 +122,7 @@ clean:
107
122
108
123
venv :
109
124
$(PYTHON ) -m venv venv
110
- ./venv/bin/python3 -m pip install -U Sphinx
125
+ ./venv/bin/python3 -m pip install -U Sphinx blurb
111
126
112
127
dist :
113
128
rm -rf dist
Original file line number Diff line number Diff line change 4
4
Changelog
5
5
+++++++++
6
6
7
- .. miscnews :: ../../Misc /NEWS
7
+ .. miscnews :: ../build /NEWS
You can’t perform that action at this time.
0 commit comments