From ab81411cede9e5fe52b416c4df835e19f1048426 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 4 May 2016 14:34:23 -0700 Subject: ci: validate "linkgit:" in documentation It is easy to add incorrect "linkgit:[
]" references to our documentation suite. Catch these common classes of errors: * Referring to Documentation/.txt that does not exist. * Referring to a outside the Git suite. In general, must begin with "git". * Listing the manual
incorrectly. The first line of the Documentation/.txt must end with "(
)". with a new script "ci/lint-gitlink", and drive it from "make check-docs". Signed-off-by: Junio C Hamano --- Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2742a6977c..61bd0abad5 100644 --- a/Makefile +++ b/Makefile @@ -2496,6 +2496,7 @@ ALL_COMMANDS += git-gui git-citool .PHONY: check-docs check-docs:: + $(MAKE) -C Documentation lint-docs @(for v in $(ALL_COMMANDS); \ do \ case "$$v" in \ -- cgit v1.2.3