summaryrefslogtreecommitdiff
path: root/Documentation/Makefile
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2021-04-09 15:02:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-04-11 06:36:34 (GMT)
commitea8b9271b17e64502dc80981cf09cec42739dce7 (patch)
tree7660e38921c7d2d36df523bbefdbfbff260e9869 /Documentation/Makefile
parentcafd9828e89328fef563e39f3b8e78e9aee74da5 (diff)
downloadgit-ea8b9271b17e64502dc80981cf09cec42739dce7.zip
git-ea8b9271b17e64502dc80981cf09cec42739dce7.tar.gz
git-ea8b9271b17e64502dc80981cf09cec42739dce7.tar.bz2
doc lint: lint relative section order
Add a linting script to check the relative order of the sections in the documentation. We should have NAME, then SYNOPSIS, DESCRIPTION, OPTIONS etc. in that order. That holds true throughout our documentation, except for a few exceptions which are hardcoded in the linting script. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/Makefile')
-rw-r--r--Documentation/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile
index 34b4f57..5e08288 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -483,7 +483,8 @@ lint-docs::
--section=1 $(MAN1_TXT) \
--section=5 $(MAN5_TXT) \
--section=7 $(MAN7_TXT); \
- $(PERL_PATH) lint-man-end-blurb.perl $(MAN_TXT)
+ $(PERL_PATH) lint-man-end-blurb.perl $(MAN_TXT); \
+ $(PERL_PATH) lint-man-section-order.perl $(MAN_TXT);
ifeq ($(wildcard po/Makefile),po/Makefile)
doc-l10n install-l10n::