fix Nu HTML check URLs for year level index.html
Fixed the "Nu HTML check this web page" for _YYYY/index.html_ files. Changed `bin/gen-top-html.sh` VERSION from to "1.4 2024-04-15" to "1.4.1 2024-04-16". Changed `bin/gen-year-index.sh` VERSION from to "1.0.7 2024-04-14" to "1.1 2024-04-16". Run `make www` to perform the above and test under macOS.
This commit is contained in:
1 parent
c5848302e8
commit
1eed473049
29 files changed
+43
-43
No files matched your search
@@ -85,7 +85,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.7 2024-04-14"
|
||||
export VERSION="1.1 2024-04-16"
|
||||
NAME=$(basename "$0")
|
||||
export NAME
|
||||
export V_FLAG=0
|
||||
@@ -426,15 +426,15 @@ fi
|
||||
if [[ -z $NOOP ]]; then
|
||||
|
||||
if [[ $V_FLAG -ge 1 ]]; then
|
||||
echo "$0: debug[1]: about to run: $MD2HTML_SH ${TOOL_OPTION[*]} -m $YYYY/README.md --" \
|
||||
"$YYYY/README.md $YYYY/index.html" 1>&2
|
||||
echo "$0: debug[1]: about to run: $MD2HTML_SH -U $SITE_URL/$YYYY/index.html ${TOOL_OPTION[*]}" \
|
||||
"-m $YYYY/README.md -- $YYYY/README.md $YYYY/index.html" 1>&2
|
||||
fi
|
||||
"$MD2HTML_SH" "${TOOL_OPTION[@]}" -m "$YYYY/README.md" -- \
|
||||
"$YYYY/README.md" "$YYYY/index.html"
|
||||
"$MD2HTML_SH" -U "$SITE_URL/$YYYY/index.html" "${TOOL_OPTION[@]}" \
|
||||
-m "$YYYY/README.md" -- "$YYYY/README.md" "$YYYY/index.html"
|
||||
status="$?"
|
||||
if [[ $status -ne 0 ]]; then
|
||||
echo "$0: ERROR: tool: $MD2HTML_SH ${TOOL_OPTION[*]} -m $YYYY/README.md --" \
|
||||
"$YYYY/README.md $YYYY/index.html failed, error: $status" 1>&2
|
||||
echo "$0: ERROR: tool: $MD2HTML_SH -U $SITE_URL/$YYYY/index.html ${TOOL_OPTION[*]}" \
|
||||
"-m $YYYY/README.md -- $YYYY/README.md $YYYY/index.html failed, error: $status" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in new issue
Block a user