improve years.html and fix links to year-level compressed tarballs

Fixed links to year level compressed tarballs.

Added an "Inventory" of year-level compressed tarballs to the
generated `years.html` web page.

In `bin/gen-years.sh` changed VERSION from "1.0.3 2024-03-26"
to "1.1 2024-03-30".

In `bin/output-year-index.sh` changed VERSION from "1.1.2 2024-03-26"
to "1.2 2024-03-30".

Added `inc/topnav.empty.html` for an empty narrow topnav bar.

Changed references from "topnav=." to "topnav=empty" in `inc/md2html.cfg`.

Removed top level `ioccc.tar.bz2` compressed tarball.  NOTE: Sorry
(tm Canada 🇨🇦) to remove the top level `ioccc.tar.bz2` file.  We
will look into [Git Large File Storage [Git-LFS](https://git-lfs.com/).
If Git-LFS works well and does not have undesirable side effects,
we will consider restoring `ioccc.tar.bz2`.

Removed top level Makefile rules for "untar_all_tarball" and
"form_all_tarball".  Removed `bin/tar-all.sh`.

Added `make gen_status` to `make quick_www` and `make www` in the
top level `Makefile`.

Ran `make www` to perform the above and test under macOS.
This commit is contained in:
Landon Curt Noll committed 2024-03-30 14:03:29 -07:00
1 parent bc445e0dcb
commit 1979ea0280
52 files changed
+299 -1004

No files matched your search

+28 -6
View File
@@ -83,7 +83,7 @@ shopt -s globstar # enable ** to match all files and zero or more directories an
# set variables referenced in the usage message
#
export VERSION="1.0.3 2024-03-26"
export VERSION="1.1 2024-03-30"
NAME=$(basename "$0")
export NAME
export V_FLAG=0
@@ -576,10 +576,6 @@ fi
cat << EOF
# IOCCC Winning Entries by Year
## All IOCCC years
**Download IOCCC** [all entry source](ioccc.tar.bz2)
### Jump to:
EOF
@@ -590,6 +586,8 @@ 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
} | if [[ -z $NOOP ]]; then
cat >> "$TMP_YEARS_MD"
@@ -600,6 +598,7 @@ else
fi
fi
# write markdown for each IOCCC year in reverse order
#
YEAR_COUNT=$(wc -l < "$TOP_FILE" | sed -e 's/[[:space:]]//g')
@@ -668,7 +667,8 @@ for YYYY in $("$TAC_TOOL" "$TOP_FILE"); do
ORDINAL=$(output_ordinal "$YEAR_COUNT")
echo "## <a name=$YYYY></a>$YYYY - The $ORDINAL IOCCC"
echo
echo "**Download IOCCC** [$YYYY entry source]($YYYY/ioccc.$YYYY.tar.bz2)"
echo "**About** the [$ORDINAL IOCCC]($YYYY/index.html)<br>"
echo "**Download** all [$YYYY IOCCC entry source]($YYYY/$YYYY.tar.bz2)"
echo
} | if [[ -z $NOOP ]]; then
cat >> "$TMP_YEARS_MD"
@@ -810,6 +810,7 @@ for YYYY in $("$TAC_TOOL" "$TOP_FILE"); do
echo
echo '&nbsp;**Jump to:** [top](#)'
echo
} | if [[ -z $NOOP ]]; then
cat >> "$TMP_YEARS_MD"
else
@@ -824,6 +825,27 @@ for YYYY in $("$TAC_TOOL" "$TOP_FILE"); do
((--YEAR_COUNT))
done
# write year_level links to all the year level tarballs
#
{
echo '## <a name="year_level"></a><a name="inventory"></a>IOCCC Year level tarballs'
echo
for YYYY in $("$TAC_TOOL" "$TOP_FILE"); do
echo "* Download all [$YYYY IOCCC entry source]($YYYY/$YYYY.tar.bz2)<br>"
done
echo
echo '&nbsp;**Jump to:** [top](#)'
echo
} | if [[ -z $NOOP ]]; then
cat >> "$TMP_YEARS_MD"
else
cat > /dev/null
if [[ $V_FLAG -ge 3 ]]; then
echo "$0: debug[3]: because of -n, links to year level tarball markdown data is NOT written into: $TMP_YEARS_MD" 1>&2
fi
fi
# use the md2html.sh tool to form a location HTML file, unless -n
#
if [[ -z $NOOP ]]; then