rename bin/gen-top-html.sh, added archive/historic/index.html

We rename `bin/gen-top-md2html.sh` to `bin/gen-top-html.sh`.

Modified the `bin/gen-top-html.sh` tool to build `archive/historic/index.html`
from `archive/historic/README.md`.

In `bin/gen-top-html.sh` changed VERSION from "1.1 2024-02-28"
to "1.2 2024-02-29".

Renamed `make gen_top_md2html` to `gen_top_html` in the top level `Makefile`.

Improved `archive/historic/README.md`.

Updated `robots.txt` to include the Sitemap directive.

Moved unused `valid-html401.png` to `png/valid-html401.png`.
This png image may be used later.

Performed `make gen_top_html` which rebuilt all top level HTML files
as well as `bin/index.html` and `inc/index.html`.
This commit is contained in:
Landon Curt Noll committed 2024-02-29 00:16:05 -08:00
1 parent 0f8a0a3af9
commit fb43b1dfef
19 files changed
+319 -26

No files matched your search

+2 -2
View File
@@ -102,14 +102,14 @@ bin/gen-other-html.sh -v 1
```
### [gen-top-md2html.sh](gen-top-md2html.sh)
### [gen-top-html.sh](gen-top-html.sh)
Generate a number of top level HTML pages for the IOCCC web sites.
Usage:
```sh
bin/gen-top-md2html.sh -v 1
bin/gen-top-html.sh -v 1
```
Examples of top level HTML pages built by this tool include:
@@ -1,8 +1,10 @@
#!/usr/bin/env bash
#
# gen-top-md2html.sh - generate select top level HTML files from markdown files
# gen-top-html.sh - generate select top level HTML files from markdown files
#
# We also generate the bin/index.html file from the bin/README.md file.
# We also generate the inc/index.html file from the inc/README.md file.
# We also generate the archive/historic/index.html file from the archive/historic/README.md file.
#
# Copyright (c) 2024 by Landon Curt Noll. All Rights Reserved.
#
@@ -52,7 +54,7 @@ TOP_MD_SET+=("faq")
# set variables referenced in the usage message
#
export VERSION="1.1 2024-02-28"
export VERSION="1.2 2024-02-29"
NAME=$(basename "$0")
export NAME
export V_FLAG=0
@@ -78,6 +80,7 @@ export SITE_URL="https://ioccc-src.github.io/temp-test-ioccc"
unset TOP_MD_SET
TOP_MD_SET+=("CODE_OF_CONDUCT")
TOP_MD_SET+=("README")
TOP_MD_SET+=("archive/historic/README")
TOP_MD_SET+=("bin/README")
TOP_MD_SET+=("bugs")
TOP_MD_SET+=("contact")
@@ -445,6 +448,10 @@ for name in "${TOP_MD_SET[@]}"; do
if [[ $name == inc/README ]]; then
HTML_FILE="inc/index.html"
fi
# archive/historic/README is a special case
if [[ $name == archive/historic/README ]]; then
HTML_FILE="archive/historic/index.html"
fi
# use the md2html.sh tool to form the HTML file, unless -n
#
+4 -4
View File
@@ -10,7 +10,7 @@
<!-- -->
<!-- END: this line ends content from: inc/top.default.html -->
<!-- -->
<!-- The original markdown content was formed by the tool: bin/gen-top-md2html.sh -->
<!-- The original markdown content was formed by the tool: bin/gen-top-html.sh -->
<!-- The HTML was converted from markdown by the tool: bin/md2html.sh -->
<!-- -->
<!-- START: this line starts content from: inc/head.default.html -->
@@ -150,13 +150,13 @@ href="gen-other-html.sh">gen-other-html.sh</a></h3>
index.html HTML files.</p>
<p>Usage:</p>
<div class="sourceCode" id="cb9"><pre class="sourceCode sh"><code class="sourceCode bash"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a><span class="ex">bin/gen-other-html.sh</span> <span class="at">-v</span> 1</span></code></pre></div>
<h3 id="gen-top-md2html.sh"><a
href="gen-top-md2html.sh">gen-top-md2html.sh</a></h3>
<h3 id="gen-top-html.sh"><a
href="gen-top-html.sh">gen-top-html.sh</a></h3>
<p>Generate a number of top level HTML pages for the IOCCC web
sites.</p>
<p>Usage:</p>
<div class="sourceCode" id="cb10"><pre
class="sourceCode sh"><code class="sourceCode bash"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a><span class="ex">bin/gen-top-md2html.sh</span> <span class="at">-v</span> 1</span></code></pre></div>
class="sourceCode sh"><code class="sourceCode bash"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a><span class="ex">bin/gen-top-html.sh</span> <span class="at">-v</span> 1</span></code></pre></div>
<p>Examples of top level HTML pages built by this tool include:</p>
<ul>
<li><a href="CODE_OF_CONDUCT.html">CODE_OF_CONDUCT.html</a></li>