Add a linkchecker target for checking broken links in SWIGDocumentation.html
This commit is contained in:
parent
e069365775
commit
862b4c6138
9 changed files with 29 additions and 21 deletions
|
|
@ -9,7 +9,7 @@
|
|||
# validation.
|
||||
#
|
||||
# Additional html validation can be done using the validate target.
|
||||
# Additional link checking can be done using the linkchecker target.
|
||||
# Additional link checking can be done using the linkchecker1 and linkchecker2 target.
|
||||
#
|
||||
|
||||
# Note the # and " are escaped
|
||||
|
|
@ -34,6 +34,14 @@ check:
|
|||
tidy -errors --gnu-emacs yes -quiet Sections.html
|
||||
all=`sed '/^#/d' chapters | grep -v CCache.html`; for a in $$all; do tidy -errors --gnu-emacs yes -quiet $$a; done;
|
||||
|
||||
# Check for links which don't work including those generated from the individual .html files into SWIGDocumentation.html
|
||||
linkchecker:
|
||||
rm -rf linkchecker-tmp
|
||||
mkdir linkchecker-tmp
|
||||
cp SWIGDocumentation.html linkchecker-tmp
|
||||
cp *.png linkchecker-tmp
|
||||
(cd linkchecker-tmp && linkchecker -F text --no-warnings SWIGDocumentation.html)
|
||||
|
||||
generate: swightml.book swigpdf.book
|
||||
htmldoc --batch swightml.book || true
|
||||
htmldoc --batch swigpdf.book || true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue