improved the h2 title for HTML from markdown other than README.md

For HTML files from markdown files other than README.md, the h2
title now refers to the HTML file instead of the markdown file.

Changed `bin/gen-other-html.sh` VERSION from "1.2.3 2024-04-28"
to "1.2.4 2024-05-31" to perform the above.

Perform `make www` to perform the above and test under macOS.
This commit is contained in:
Landon Curt Noll committed 2024-05-31 18:09:35 -07:00
1 parent 8f0fede49a
commit dede0bb7cd
36 files changed
+40 -37

No files matched your search

+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>compilers.md for 1986/marshall</h2> <h2>compilers.html for 1986/marshall</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>sorta.README.md for 1991/brnstnd</h2> <h2>sorta.README.html for 1991/brnstnd</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>buzzard.2.README.md for 1992/buzzard.2</h2> <h2>buzzard.2.README.html for 1992/buzzard.2</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>buzzard.2.design.md for 1992/buzzard.2</h2> <h2>buzzard.2.design.html for 1992/buzzard.2</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>hanoi.md for 1993/ejb</h2> <h2>hanoi.html for 1993/ejb</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>patience.md for 1993/ejb</h2> <h2>patience.html for 1993/ejb</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>design.md for 1993/rince</h2> <h2>design.html for 1993/rince</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>shapiro.md for 1994/shapiro</h2> <h2>shapiro.html for 1994/shapiro</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>spoiler1.md for 1995/leo</h2> <h2>spoiler1.html for 1995/leo</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>dorssel.md for 1998/dorssel</h2> <h2>dorssel.html for 1998/dorssel</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>macos.md for 1998/schweikh1</h2> <h2>macos.html for 1998/schweikh1</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>gavin.md for 2004/gavin</h2> <h2>gavin.html for 2004/gavin</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>deckmyn.md for 2012/deckmyn</h2> <h2>deckmyn.html for 2012/deckmyn</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>hint.md for 2012/hou</h2> <h2>hint.html for 2012/hou</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>how.md for 2012/tromp</h2> <h2>how.html for 2012/tromp</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>example.md for 2013/hou</h2> <h2>example.html for 2013/hou</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>spoilers.md for 2014/endoh1</h2> <h2>spoilers.html for 2014/endoh1</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>road.to.obscurity.md for 2015/burton</h2> <h2>road.to.obscurity.html for 2015/burton</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>spoilers.md for 2015/burton</h2> <h2>spoilers.html for 2015/burton</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>discrepancies.md for 2018/burton2</h2> <h2>discrepancies.html for 2018/burton2</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>FILES.md for 2018/ferguson</h2> <h2>FILES.html for 2018/ferguson</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>rpm.md for 2018/ferguson</h2> <h2>rpm.html for 2018/ferguson</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>index.md for 2020/endoh2</h2> <h2>index.html for 2020/endoh2</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>COMPILING.md for 2020/ferguson1</h2> <h2>COMPILING.html for 2020/ferguson1</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>HACKING.md for 2020/ferguson1</h2> <h2>HACKING.html for 2020/ferguson1</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>bugs.md for 2020/ferguson1</h2> <h2>bugs.html for 2020/ferguson1</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>cannibalism.log.md for 2020/ferguson1</h2> <h2>cannibalism.log.html for 2020/ferguson1</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>chocolate-cake.md for 2020/ferguson1</h2> <h2>chocolate-cake.html for 2020/ferguson1</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>crazy.log.md for 2020/ferguson1</h2> <h2>crazy.log.html for 2020/ferguson1</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>gameplay.md for 2020/ferguson1</h2> <h2>gameplay.html for 2020/ferguson1</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>spoilers.md for 2020/ferguson1</h2> <h2>spoilers.html for 2020/ferguson1</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>terminals.md for 2020/ferguson1</h2> <h2>terminals.html for 2020/ferguson1</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>troubleshooting.md for 2020/ferguson1</h2> <h2>troubleshooting.html for 2020/ferguson1</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>obfuscation.md for 2020/ferguson2</h2> <h2>obfuscation.html for 2020/ferguson2</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+1 -1
View File
@@ -363,7 +363,7 @@
height=110> height=110>
</a> </a>
<h1>The International Obfuscated C Code Contest</h1> <h1>The International Obfuscated C Code Contest</h1>
<h2>recode.md for 2020/ferguson2</h2> <h2>recode.html for 2020/ferguson2</h2>
</div> </div>
<!-- END: this line ends content from: inc/header.default.html --> <!-- END: this line ends content from: inc/header.default.html -->
+5 -2
View File
@@ -84,7 +84,7 @@ shopt -s globstar # enable ** to match all files and zero or more directories an
# set variables referenced in the usage message # set variables referenced in the usage message
# #
export VERSION="1.2.3 2024-04-28" export VERSION="1.2.4 2024-05-31"
NAME=$(basename "$0") NAME=$(basename "$0")
export NAME export NAME
export V_FLAG=0 export V_FLAG=0
@@ -163,6 +163,7 @@ Exit codes:
$NAME version: $VERSION" $NAME version: $VERSION"
# parse command line # parse command line
# #
while getopts :hv:Vd:D:nNt:T:p:u:w: flag; do while getopts :hv:Vd:D:nNt:T:p:u:w: flag; do
@@ -579,6 +580,8 @@ for YYYY in $(< "$TOP_FILE"); do
# determine the HTML file # determine the HTML file
# #
export HTML_FILE=${MD_FILE//\.md/.html} export HTML_FILE=${MD_FILE//\.md/.html}
HTML_BASENAME=$(basename "$HTML_FILE")
export HTML_BASENAME
# determine the description arg # determine the description arg
# #
@@ -591,7 +594,7 @@ for YYYY in $(< "$TOP_FILE"); do
# determine the HEADER_2 arg # determine the HEADER_2 arg
# #
export HEADER_2="HEADER_2=$MD_BASENAME for $YYYY_DIR" export HEADER_2="HEADER_2=$HTML_BASENAME for $YYYY_DIR"
# determine the number of levels in path of MD_FILE from topdir # determine the number of levels in path of MD_FILE from topdir
# #