feat: Add make target to check links in html output using lychee

Signed-off-by: David Runge <dave@sleepmap.de>
This commit is contained in:
David Runge 2023-10-23 17:57:29 +02:00
parent 647b2494f5
commit d342884ecf
No known key found for this signature in database
GPG key ID: 90D4B9641E092971

View file

@ -8,6 +8,7 @@
# from the environment for the first two. # from the environment for the first two.
SPHINXOPTS ?= SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build SPHINXBUILD ?= sphinx-build
LYCHEE ?= lychee
SOURCEDIR = source SOURCEDIR = source
BUILDDIR = build BUILDDIR = build
@ -15,6 +16,9 @@ BUILDDIR = build
help: help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
html-linkcheck: html
@$(LYCHEE) "$(BUILDDIR)/html/"*.html
.PHONY: help Makefile .PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new # Catch-all target: route all unknown targets to Sphinx using the new