improve Do not modify HTML comments
Changed `bin/gen-year-index.sh` VERSION from "1.0.2 2024-03-08" to "1.0.3 2024-03-09". Changed `bin/md2html.sh` VERSION from "1.1 2024-03-08" to "1.1.1 2024-03-09".
This commit is contained in:
1 parent
085a708660
commit
17f6da63b2
401 files changed
+4807
-1600
No files matched your search
@@ -51,7 +51,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.2 2024-03-08"
|
||||
export VERSION="1.0.3 2024-03-09"
|
||||
NAME=$(basename "$0")
|
||||
export NAME
|
||||
export V_FLAG=0
|
||||
@@ -170,8 +170,7 @@ while getopts :hv:Vd:D:nNt:T:u:w: flag; do
|
||||
*) ;;
|
||||
esac
|
||||
TAGLINE="$OPTARG"
|
||||
TOOL_OPTION+=("-t")
|
||||
TOOL_OPTION+=("$TAGLINE")
|
||||
# -t tagline is always added further down
|
||||
;;
|
||||
T) MD2HTML_SH="$OPTARG"
|
||||
TOOL_OPTION+=("-T")
|
||||
@@ -205,8 +204,8 @@ done
|
||||
|
||||
# parse the command line arguments
|
||||
#
|
||||
if [[ $V_FLAG -ge 1 ]]; then
|
||||
echo "$0: debug[1]: debug level: $V_FLAG" 1>&2
|
||||
if [[ $V_FLAG -ge 3 ]]; then
|
||||
echo "$0: debug[3]: debug level: $V_FLAG" 1>&2
|
||||
fi
|
||||
#
|
||||
shift $(( OPTIND - 1 ));
|
||||
@@ -345,6 +344,11 @@ if [[ ! -x $MD2HTML_SH ]]; then
|
||||
exit 5
|
||||
fi
|
||||
|
||||
# always add -t tagline
|
||||
#
|
||||
TOOL_OPTION+=("-t")
|
||||
TOOL_OPTION+=("$TAGLINE")
|
||||
|
||||
# parameter debugging
|
||||
#
|
||||
if [[ $V_FLAG -ge 3 ]]; then
|
||||
|
||||
+11
-3
@@ -10,9 +10,17 @@
|
||||
<!-- -->
|
||||
<!-- END: this line ends content from: inc/top.default.html -->
|
||||
<!-- -->
|
||||
<!-- The original markdown content was formed by the tool: bin/gen-top-html.sh -->
|
||||
<!-- The main part of the markdown content came from: bin/README.md -->
|
||||
<!-- The HTML was converted from markdown by the tool: bin/md2html.sh -->
|
||||
<!-- This web page was formed via the tool: bin/gen-top-html.sh -->
|
||||
<!-- -->
|
||||
<!-- The content of main section of this web page came from: bin/README.md -->
|
||||
<!-- -->
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<!-- !!! Do not modify this web page, instead modify the file: bin/README.md -->
|
||||
<!-- !!! Do not modify this web page, instead modify the file: bin/README.md -->
|
||||
<!-- !!! Do not modify this web page, instead modify the file: bin/README.md -->
|
||||
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<!-- -->
|
||||
<!-- Markdown content was converted into HTML via the tool: bin/md2html.sh -->
|
||||
<!-- -->
|
||||
<!-- START: this line starts content from: inc/head.default.html -->
|
||||
|
||||
|
||||
+20
-4
@@ -107,7 +107,7 @@ shopt -s lastpipe # run last command of a pipeline not executed in the backgroun
|
||||
|
||||
# set variables referenced in the usage message
|
||||
#
|
||||
export VERSION="1.1 2024-03-08"
|
||||
export VERSION="1.1.1 2024-03-09"
|
||||
NAME=$(basename "$0")
|
||||
export NAME
|
||||
export V_FLAG=0
|
||||
@@ -1694,11 +1694,27 @@ fi
|
||||
if [[ -z $NOOP && ${HTML_PHASE_NAME[$CUR_PHASE_NAME]} != . ]]; then
|
||||
{
|
||||
echo "<!-- -->"
|
||||
echo "<!-- The original markdown content was formed by the tool: $TAGLINE -->"
|
||||
echo "<!-- This web page was formed via the tool: $TAGLINE -->"
|
||||
echo "<!-- -->"
|
||||
if [[ -n $MDTAG ]]; then
|
||||
echo "<!-- The main part of the markdown content came from: $MDTAG -->"
|
||||
echo "<!-- The content of main section of this web page came from: $MDTAG -->"
|
||||
else
|
||||
echo "<!-- The main section of this web page came from JSON and other data files -->"
|
||||
fi
|
||||
echo "<!-- The HTML was converted from markdown by the tool: bin/$NAME -->"
|
||||
echo "<!-- -->"
|
||||
echo "<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->"
|
||||
if [[ -n $MDTAG ]]; then
|
||||
echo "<!-- !!! Do not modify this web page, instead modify the file: $MDTAG -->"
|
||||
echo "<!-- !!! Do not modify this web page, instead modify the file: $MDTAG -->"
|
||||
echo "<!-- !!! Do not modify this web page, instead modify the file: $MDTAG -->"
|
||||
else
|
||||
echo "<!-- The main section of this web page was generated via the tool: $TAGLINE -->"
|
||||
echo "<!-- The main section of this web page was generated via the tool: $TAGLINE -->"
|
||||
echo "<!-- The main section of this web page was generated via the tool: $TAGLINE -->"
|
||||
fi
|
||||
echo "<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->"
|
||||
echo "<!-- -->"
|
||||
echo "<!-- Markdown content was converted into HTML via the tool: bin/$NAME -->"
|
||||
echo "<!-- -->"
|
||||
} >> "$TMP_INDEX_HTML"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user