From d342884ecf059914cfe99fe6f805e426d1503ae0 Mon Sep 17 00:00:00 2001 From: David Runge Date: Mon, 23 Oct 2023 17:57:29 +0200 Subject: [PATCH] feat: Add make target to check links in html output using lychee Signed-off-by: David Runge --- book/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/book/Makefile b/book/Makefile index cda2a70..15c0f8a 100644 --- a/book/Makefile +++ b/book/Makefile @@ -8,6 +8,7 @@ # from the environment for the first two. SPHINXOPTS ?= SPHINXBUILD ?= sphinx-build +LYCHEE ?= lychee SOURCEDIR = source BUILDDIR = build @@ -15,6 +16,9 @@ BUILDDIR = build help: @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) +html-linkcheck: html + @$(LYCHEE) "$(BUILDDIR)/html/"*.html + .PHONY: help Makefile # Catch-all target: route all unknown targets to Sphinx using the new