test method to W3C validate 2020/yang/index.html

This commit is contained in:
Landon Curt Noll committed 2023-10-31 23:55:06 -07:00
1 parent 8f7bf4afd9
commit 1148486536
2 files changed
+58 -46

No files matched your search

+26 -23
View File
@@ -1,29 +1,32 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html>
<!-- DO NOT EDIT nor MODIFY THIS FILE !!! --> <!-- -->
<!-- DO NOT EDIT nor MODIFY THIS FILE !!! --> <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<!-- DO NOT EDIT nor MODIFY THIS FILE !!! --> <!-- !!! DO NOT MODIFY THIS FILE - This file is generated by a tool !!! -->
<!-- file: 2020/yang/index.html created by: fake.gen_index.sh version: 1.0.2 2023-10-31 --> <!-- !!! DO NOT MODIFY THIS FILE - This file is generated by a tool !!! -->
<HTML> <!-- !!! DO NOT MODIFY THIS FILE - This file is generated by a tool !!! -->
<HEAD> <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <!-- -->
<TITLE>2020 yang</TITLE> <!-- file: 2020/yang/.inventory.html created by: fake.gen_index.sh version: 1.0.2 2023-10-31 -->
<META name="description" content="IOCCC year: 2020 IOCCC winner: yang index page"> <html lang="en">
<META name="keywords" content="IOCCC,2020,yang"> <head>
</HEAD> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>2020 yang</title>
<meta name="description" content="IOCCC year: 2020 IOCCC winner: yang winner index page">
<meta name="keywords" content="IOCCC,2020,yang,winner index page">
</head>
<BODY> <body>
<H1>2020 yang</H1> <h1>2020 yang</h1>
XXX - fake content until readme2index is working - XXX <p>XXX - fake content until readme2index is working - XXX</p>
<HR SIZE="4" WIDTH="100%"> <hr style="width:50%;text-align:left;margin-left:0">
<!-- Start WWW validator - v2.0 --> <!-- Start WWW nu validator -->
<P> <p><a href="https://validator.w3.org/nu/?doc=https%3A%2F%2Fioccc-src.github.io%2F%2Ftemp-test-ioccc%2F2020%2Fyang%2Findex.html">Validate this web page</a></p>
<A HREF="https://validator.w3.org/nu/">validate web page</A> <!-- End WWW nu validator -->
</P>
<!-- End WWW validator - v2.0 -->
</BODY> </body>
</HTML> </html>
+32 -23
View File
@@ -124,6 +124,11 @@ case "$#" in
esac esac
export FULL_WINNER_PATH="$TOPDIR/$WINNER_PATH" export FULL_WINNER_PATH="$TOPDIR/$WINNER_PATH"
# for validator doc string
#
VALIDATOR_DOC=$(echo "https://$DOMAIN/$DOCPATH/$YEAR/$WINNER/index.html" | sed -e 's;/;%2F;g' -e 's;:;%3A;')
export VALIDATOR_DOC
# print running info if verbose # print running info if verbose
# #
if [[ $V_FLAG -ge 5 ]]; then if [[ $V_FLAG -ge 5 ]]; then
@@ -137,6 +142,7 @@ if [[ $V_FLAG -ge 5 ]]; then
echo "$0: debug[5]: WINNER=$WINNER" 1>&2 echo "$0: debug[5]: WINNER=$WINNER" 1>&2
echo "$0: debug[5]: WINNER_PATH=$WINNER_PATH" 1>&2 echo "$0: debug[5]: WINNER_PATH=$WINNER_PATH" 1>&2
echo "$0: debug[5]: FULL_WINNER_PATH=$FULL_WINNER_PATH" 1>&2 echo "$0: debug[5]: FULL_WINNER_PATH=$FULL_WINNER_PATH" 1>&2
echo "$0: debug[5]: VALIDATOR_DOC=$VALIDATOR_DOC" 1>&2
fi fi
# make is easier to process CSV files # make is easier to process CSV files
@@ -164,35 +170,38 @@ export INDEX_PATH="$FULL_WINNER_PATH/index.html"
export TMP_FILE="$FULL_WINNER_PATH/tmp.$$.index.html" export TMP_FILE="$FULL_WINNER_PATH/tmp.$$.index.html"
trap 'rm -f $TMP_FILE; exit' 0 1 2 3 15 trap 'rm -f $TMP_FILE; exit' 0 1 2 3 15
cat > "$TMP_FILE" << EOF cat > "$TMP_FILE" << EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html>
<!-- DO NOT EDIT nor MODIFY THIS FILE !!! --> <!-- -->
<!-- DO NOT EDIT nor MODIFY THIS FILE !!! --> <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<!-- DO NOT EDIT nor MODIFY THIS FILE !!! --> <!-- !!! DO NOT MODIFY THIS FILE - This file is generated by a tool !!! -->
<!-- file: $WINNER_PATH/index.html created by: $NAME version: $VERSION --> <!-- !!! DO NOT MODIFY THIS FILE - This file is generated by a tool !!! -->
<HTML> <!-- !!! DO NOT MODIFY THIS FILE - This file is generated by a tool !!! -->
<HEAD> <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <!-- -->
<TITLE>$YEAR $WINNER</TITLE> <!-- file: $WINNER_PATH/.inventory.html created by: $NAME version: $VERSION -->
<META name="description" content="IOCCC year: $YEAR IOCCC winner: $WINNER index page"> <html lang="en">
<META name="keywords" content="IOCCC,$YEAR,$WINNER"> <head>
</HEAD> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>$YEAR $WINNER</title>
<meta name="description" content="IOCCC year: $YEAR IOCCC winner: $WINNER winner index page">
<meta name="keywords" content="IOCCC,$YEAR,$WINNER,winner index page">
</head>
<BODY> <body>
<H1>$YEAR $WINNER</H1> <h1>$YEAR $WINNER</h1>
XXX - fake content until readme2index is working - XXX <p>XXX - fake content until readme2index is working - XXX</p>
<HR SIZE="4" WIDTH="100%"> <hr style="width:50%;text-align:left;margin-left:0">
<!-- Start WWW validator - v2.0 --> <!-- Start WWW nu validator -->
<P> <p><a href="https://validator.w3.org/nu/?doc=$VALIDATOR_DOC">Validate this web page</a></p>
<A HREF="https://validator.w3.org/nu/">validate web page</A> <!-- End WWW nu validator -->
</P>
<!-- End WWW validator - v2.0 -->
</BODY> </body>
</HTML> </html>
EOF EOF
# update index.html if needed # update index.html if needed