Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

ENH: make explicit build-ignore-errors to be used by linkfix

Yaroslav Halchenko5f3e1e9a169c
diff --git a/docs/Makefile b/docs/Makefile
index 373a1ae82..26b2b52b1 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -24,12 +24,17 @@ help:
@echo " changes to make an overview over all changed/added/deprecated items"
@echo " linkcheck to check all external links for integrity"
-
-build:
+build-dirs:
mkdir -p build/$(BUILDER) build/doctrees
+
+build: build-dirs
sphinx-build $(ALLSPHINXOPTS)
@echo
+build-ignore-errors: build-dirs
+ -sphinx-build $(ALLSPHINXOPTS)
+ @echo
+
html: BUILDER = html
html: build
@@ -59,7 +64,8 @@ linkcheck: build
@echo "Link check complete; look for any errors in the above output " \
"or in build/$(BUILDER)/output.txt"
-linkfix: linkcheck
+linkfix: BUILDER = linkcheck
+linkfix: build-ignore-errors
$(PYTHON) utils/linkfix.py
@echo "Fixing redirecting links in docs has finished; check all " \
"replacements before committing them"