Improve bin/gen-years.sh

The links in the html file now are a bit more consistent in form and
the titles make a bit more sense.

By that I mean that it used to be that it would say 'About the 1st IOCCC' but only '1st IOCCC' was a link
and 'About' was bold but now it's all bold and now it's all a link (to suggest that the link is actually about
the first IOCCC). The download links were also improved in this way and
they now say 'winning entries' rather than say (for 1984) '1984 entry
source' (that was for all entries). Also, since it would otherwise say
something like:

	...
	Download all 1985 IOCCC winning entries.
	Download all 1984 IOCCC winning entries.

I reworded it to say:

	...
	Download all IOCCC winning entries of 1985.
	Download all IOCCC winning entries of 1984.

As other link titles were in bold in the file now each entry link is in
bold as well and so is the title - to help it stand out a bit better. I
am not quite sure about the bold title yet but the link should be bold
anyway to match others. I think the bold title does seem like a good
idea though.

Rebuilt years.html.

Note that most of the links have been checked in this file but I will
look at each entry link again as I verify links and formatting in the
entries' html files.
This commit is contained in:
Cody Boone Ferguson committed 2024-06-09 06:29:06 -07:00
1 parent 7e63c97ab1
commit 68b6fc4c12
2 files changed
+411 -411

No files matched your search

+8 -6
View File
@@ -4,6 +4,8 @@
#
# Copyright (c) 2024 by Landon Curt Noll. All Rights Reserved.
#
# .. with very minor improvements in June 2024 by Cody Boone Ferguson.
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby granted,
# provided that the above copyright, this permission notice and text
@@ -225,7 +227,7 @@ function output_award
echo "$0: ERROR: in output_award: no award found in .entry.json file: $ENTRY_JSON_PATH" 1>&2
return 5
fi
echo "$AWARD_STRING"
echo "**$AWARD_STRING**"
return 0
}
@@ -586,7 +588,7 @@ EOF
"$FMT_TOOL" -w 120 |
sed -e 's/ / | /g' -e 's/$/<br><br>/' -e '$s/<br><br>//'
echo
echo '**Jump to** the [year level tarballs](#year_level)'
echo '[**Year level tarballs**](#year_level)'
echo
} | if [[ -z $NOOP ]]; then
@@ -668,8 +670,8 @@ for YYYY in $("$TAC_TOOL" "$TOP_FILE"); do
echo "<div id=\"$YYYY\">"
echo "## $YYYY - The $ORDINAL IOCCC"
echo
echo "**About** the [$ORDINAL IOCCC]($YYYY/index.html)<br>"
echo "**Download** all [$YYYY IOCCC entry source]($YYYY/$YYYY.tar.bz2)</div>"
echo "[**About the $ORDINAL IOCCC &#40;$YYYY&#41;**]($YYYY/index.html).<br>"
echo "[**Download all IOCCC winning entries of $YYYY**]($YYYY/$YYYY.tar.bz2).</div>"
echo
} | if [[ -z $NOOP ]]; then
cat >> "$TMP_YEARS_MD"
@@ -795,7 +797,7 @@ for YYYY in $("$TAC_TOOL" "$TOP_FILE"); do
# output markdown for this entry
#
echo "* <div id=\"${YEAR_DIR}_${ENTRY_DIR}\">[$YYYY_DIR]($YYYY_DIR/index.html) - $AWARD</div>"
echo "* <div id=\"${YEAR_DIR}_${ENTRY_DIR}\">[**$YYYY_DIR**]($YYYY_DIR/index.html) - $AWARD</div>"
done | if [[ -z $NOOP ]]; then
cat >> "$TMP_YEARS_MD"
else
@@ -834,7 +836,7 @@ done
echo '</div></div>'
echo
for YYYY in $("$TAC_TOOL" "$TOP_FILE"); do
echo "* Download all [$YYYY IOCCC entry source]($YYYY/$YYYY.tar.bz2)<br>"
echo "[**Download all IOCCC winning entries of $YYYY**]($YYYY/$YYYY.tar.bz2).<br>"
done
echo
echo '&nbsp;**Jump to:** [top](#)'
+403 -405
View File
File diff suppressed because it is too large. Load diff