Skip to content

Commit 148fb14

Browse files
committed
Merge pull request scrapy#1319 from yarikoptic/fix-fail-if-docsbuild-fails
[MRG+1] BF: fail if docs failed to build
2 parents 2e55e65 + 5f3e1e9 commit 148fb14

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,14 @@ help:
2424
@echo " changes to make an overview over all changed/added/deprecated items"
2525
@echo " linkcheck to check all external links for integrity"
2626

27-
28-
build:
27+
build-dirs:
2928
mkdir -p build/$(BUILDER) build/doctrees
29+
30+
build: build-dirs
31+
sphinx-build $(ALLSPHINXOPTS)
32+
@echo
33+
34+
build-ignore-errors: build-dirs
3035
-sphinx-build $(ALLSPHINXOPTS)
3136
@echo
3237

@@ -59,7 +64,8 @@ linkcheck: build
5964
@echo "Link check complete; look for any errors in the above output " \
6065
"or in build/$(BUILDER)/output.txt"
6166

62-
linkfix: linkcheck
67+
linkfix: BUILDER = linkcheck
68+
linkfix: build-ignore-errors
6369
$(PYTHON) utils/linkfix.py
6470
@echo "Fixing redirecting links in docs has finished; check all " \
6571
"replacements before committing them"

0 commit comments

Comments
 (0)