fix bin/gen_top_html
Fix `bin/gen_top_html` to generate the proper Nu HTML check URLs. Changed `bin/gen_top_html` VERSION from "1.3 2024-04-14" to "1.4 2024-04-15". Remove improper "xmlns:cc="http://creativecommons.org/ns#" from `inc/inc/footer.default.html`. Run `make gen_top_html` to perform the above and test under macOS. TODO: If this is successful, rebuild all other constructed HTML files.
This commit is contained in:
1 parent
f7f5a86441
commit
e0a62bf5d3
18 files changed
+35
-45
No files matched your search
+3
-13
@@ -88,7 +88,7 @@ TOP_MD_SET+=("faq")
|
||||
|
||||
# set variables referenced in the usage message
|
||||
#
|
||||
export VERSION="1.3 2024-04-14"
|
||||
export VERSION="1.4 2024-04-15"
|
||||
NAME=$(basename "$0")
|
||||
export NAME
|
||||
export V_FLAG=0
|
||||
@@ -302,12 +302,7 @@ if [[ -n $TAGLINE ]]; then
|
||||
TOOL_OPTION+=("$TAGLINE")
|
||||
fi
|
||||
|
||||
# always add the '-U URL' for the top level location.html file
|
||||
#
|
||||
TOOL_OPTION+=("-U")
|
||||
TOOL_OPTION+=("$SITE_URL/location.html")
|
||||
|
||||
# always add the '-D docroot/' for the top level location.html file
|
||||
# always add the '-D docroot/' for the top level files
|
||||
#
|
||||
TOOL_OPTION+=("-D")
|
||||
TOOL_OPTION+=("$DOCROOT_SLASH")
|
||||
@@ -402,10 +397,6 @@ if [[ ! -x $LOCATION_TOOL ]]; then
|
||||
exit 5
|
||||
fi
|
||||
|
||||
# note location.html file
|
||||
#
|
||||
export LOCATION_HTML="location.html"
|
||||
|
||||
# print running info if verbose
|
||||
#
|
||||
# If -v 3 or higher, print exported variables in order that they were exported.
|
||||
@@ -437,7 +428,6 @@ if [[ $V_FLAG -ge 3 ]]; then
|
||||
echo "$0: debug[3]: AUTHOR_DIR=$AUTHOR_DIR" 1>&2
|
||||
echo "$0: debug[3]: BIN_PATH=$BIN_PATH" 1>&2
|
||||
echo "$0: debug[3]: BIN_DIR=$BIN_DIR" 1>&2
|
||||
echo "$0: debug[3]: LOCATION_HTML=$LOCATION_HTML" 1>&2
|
||||
fi
|
||||
|
||||
# -N stops early before any processing is performed
|
||||
@@ -505,7 +495,7 @@ for name in "${TOP_MD_SET[@]}"; do
|
||||
echo "$0: debug[1]: about to run: $MD2HTML_SH ${TOOL_OPTION[*]} -m $MD_FILE --" \
|
||||
"$MD_FILE $HTML_FILE" 1>&2
|
||||
fi
|
||||
"$MD2HTML_SH" "${TOOL_OPTION[@]}" -m "$MD_FILE" -- \
|
||||
"$MD2HTML_SH" "${TOOL_OPTION[@]}" -U "$SITE_URL/$HTML_FILE" -m "$MD_FILE" -- \
|
||||
"$MD_FILE" "$HTML_FILE"
|
||||
status="$?"
|
||||
if [[ $status -ne 0 ]]; then
|
||||
|
||||
+2
-2
@@ -664,7 +664,7 @@ is directly under a <code>year</code> directory.</p>
|
||||
<p>All IOCCC content including this file and web page are:</p>
|
||||
<b> Copyright © 1984-2024 by Landon Curt Noll. <a href="https://creativecommons.org/faq/#what-does-some-rights-reserved-mean">Some Rights Reserved</a>.</b>
|
||||
<p>This work is licensed by Landon Curt Noll under:</p>
|
||||
<p xmlns:cc="http://creativecommons.org/ns#" ><b><a href="https://creativecommons.org/licenses/by-sa/4.0/?ref=chooser-v1"
|
||||
<p><b><a href="https://creativecommons.org/licenses/by-sa/4.0/?ref=chooser-v1"
|
||||
target="_blank" rel="license noopener noreferrer" style="display:inline-block;"> CC BY-SA 4.0
|
||||
<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;"
|
||||
src="../png/cc.png"
|
||||
@@ -685,7 +685,7 @@ is directly under a <code>year</code> directory.</p>
|
||||
<p>You may wish to review the <b><a href="../license.html">highlights of some of the key
|
||||
features and terms</a></b> of the <a href="https://creativecommons.org/licenses/by-sa/4.0/legalcode.en">actual license</a>.</p>
|
||||
<h2>Coda</h2>
|
||||
<p><a href="https://validator.w3.org/nu/?doc=https%3A%2F%2Fioccc-src.github.io%2Ftemp-test-ioccc%2Flocation.html">Nu HTML check this web page</a></p>
|
||||
<p><a href="https://validator.w3.org/nu/?doc=https%3A%2F%2Fioccc-src.github.io%2Ftemp-test-ioccc%2Fbin%2Findex.html">Nu HTML check this web page</a></p>
|
||||
<p><a href="#top">Jump to top</a> <a href="#content">Jump to Content</a> <a href="#inventory">Jump to Inventory</a></p>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user