Add linkchecker target for checking html links
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c979cf55b0
commit
03634e6c9b
1 changed files with 12 additions and 7 deletions
|
|
@ -9,6 +9,7 @@
|
|||
# validation.
|
||||
#
|
||||
# Additional html validation can be done using the validate target.
|
||||
# Additional link checking can be done using the linkchecker target.
|
||||
#
|
||||
|
||||
# Note the # and " are escaped
|
||||
|
|
@ -28,9 +29,9 @@ CCache.html: ../../CCache/ccache.yo
|
|||
# it is just used as a primitive HTML checker.
|
||||
# CCache.html is generated by yodl2html and has a few insignificant problems, so we don't put it through tidy
|
||||
check:
|
||||
tidy -errors --gnu-emacs yes -quiet index.html
|
||||
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;
|
||||
tidy -errors --gnu-emacs yes -quiet index.html
|
||||
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;
|
||||
|
||||
generate: swightml.book swigpdf.book
|
||||
htmldoc --batch swightml.book || true
|
||||
|
|
@ -60,11 +61,15 @@ clean-baks:
|
|||
rm -f *.bak
|
||||
|
||||
test:
|
||||
grep "href=\".*\.html\"" index.html
|
||||
grep "href=\".*\.html\"" Sections.html
|
||||
all=`sed '/^#/d' chapters`; for a in $$all; do grep -l "href=\".*\.html\"" $$a; done;
|
||||
grep "href=\".*\.html\"" index.html
|
||||
grep "href=\".*\.html\"" Sections.html
|
||||
all=`sed '/^#/d' chapters`; for a in $$all; do grep -l "href=\".*\.html\"" $$a; done;
|
||||
|
||||
# Validating using the WDG offline validator - http://www.htmlhelp.com/tools/validator/offline/
|
||||
validate:
|
||||
all=`sed '/^#/d' chapters`; for a in $$all; do validate --emacs $$a; done;
|
||||
all=`sed '/^#/d' chapters`; for a in $$all; do validate --emacs $$a; done;
|
||||
|
||||
# Link checking using linkchecker (can take a while - 30 mins)
|
||||
linkchecker:
|
||||
linkchecker --anchors Contents.html
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue