You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doc: test linkgit macros for well-formedness and existence of target
Some readers of man pages have reported that they found malformed linkgit
macros in the documentation. This commit adds a test to check that all links
to other man pages are made with the linkgit macro, and that the target of
the linkgit macro exists.
Signed-off-by: Jean-Noël Avila <[email protected]>
test_expect_success 'linkgit macros are well formed''
8
+
(cd $GIT_BUILD_DIR && git grep -r '\''git[-a-z]*\[[0-9]'\'' -- '\''Documentation/**.adoc'\'') | sed -e '\''/linkgit:git/ d'\'' > out &&
9
+
test_must_be_empty out
10
+
'
11
+
12
+
test_expect_success 'linkgit macros point to existing files''
13
+
for f in $(cd $GIT_BUILD_DIR && git grep -Ero '\''(linkgit:)[-a-z0-9{}]*'\'' -- '\''Documentation/**.adoc'\'' | cut -f3 -d:| sed -e '\''s/{litdd}/--/g'\'')
0 commit comments