Skip to content

Commit

Permalink
print out linkcheck errors at the end
Browse files Browse the repository at this point in the history
The output of the linkcheck is usually really long. Therefore, print
any broken links at the end to make it easier to find them.

Signed-off-by: Ruth Fuchss <[email protected]>
  • Loading branch information
ru-fu committed Jun 5, 2024
1 parent 9257889 commit 5a4d40e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile.sp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ sp-spellcheck:
sp-spelling: sp-html sp-spellcheck
sp-linkcheck: sp-install
. $(VENV) ; $(SPHINXBUILD) -b linkcheck "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
. $(VENV) ; $(SPHINXBUILD) -b linkcheck "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) || (grep --color -F "[broken]" "$(BUILDDIR)/output.txt"; exit 1)
exit 0
sp-woke: sp-woke-install
woke $(ALLFILES) --exit-1-on-failure \
Expand Down

0 comments on commit 5a4d40e

Please sign in to comment.