From 780029c6c5b94725205f1b01aed7a99e369228fc Mon Sep 17 00:00:00 2001 From: Artem Konev Date: Wed, 9 Oct 2024 09:31:14 +0100 Subject: [PATCH] Makefile: run clean-doc before spelling This addresses canonical/sphinx-docs-starter-pack#225. --- sp-files/Makefile.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sp-files/Makefile.sp b/sp-files/Makefile.sp index beaf79df..c924358c 100644 --- a/sp-files/Makefile.sp +++ b/sp-files/Makefile.sp @@ -109,7 +109,7 @@ sp-clean-doc: sp-spellcheck: sp-spellcheck-install . $(VENV) ; python3 -m pyspelling -c $(SPHINXDIR)/spellingcheck.yaml -j $(shell nproc) -sp-spelling: sp-html sp-spellcheck +sp-spelling: sp-clean-doc sp-html sp-spellcheck sp-linkcheck: sp-install . $(VENV) ; $(SPHINXBUILD) -b linkcheck "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) || { grep --color -F "[broken]" "$(BUILDDIR)/output.txt"; exit 1; }