fix links in 1992/buzzard.2/buzzard.2.README.html
The `1992/buzzard.2/buzzard.2.README.md` has been improved so that links to files that is referenced are directed to the proper web pages (web site or GitHub). Links in `1992/buzzard.2/buzzard.2.README.md` markdown files have been changed to the generated HTML files. Changed `bin/gen-other-html.sh` VERSION from to "1.0.4 2024-04-13" to "1.1 2024-04-20". By default, we substitute _%%REPO_URL%%_ and _%%SITE_URL%%_ in inc files. Changed `bin/subst.default.sh` VERSION from to "1.2.3 2024-04-13" to "1.3 2024-04-20". All `-s TOKEN=value` substitutions are applied to all markdown files that are processed by `bin/md2html.sh`. Substitutions of and **%%TOKEN%%** are performed on included HTML content, content generated by the ‘before tool’ (-b tool), content generated by the ‘after tool’ (-a tool), as well as the markdown content given to the pandoc wrapper tool (-p tool). It is an error, unless -S is given, for any phase, except HTML phases 20-29, to not substitute all **%%TOKEN%%**'s. For HTML phases 20-29, any **%%TOKEN%%** that is not substituted are passed thru without substitution. Update `bin/index.html` to clarify Changed `bin/md2html.sh` VERSION from to "1.4 2024-04-18" to "1.5 2024-04-20". Fix the _BEFORE: 1st line of markdown file_ and _AFTER: last line of markdown file_ HTML comments so that the true markdown file source (not some temporary file) is identified. This prevents `authors.html`, `location.html` and `years.html` from always changing due to different temporary files being used on each run. Run `make www` to perform the above.
This commit is contained in:
1 parent
9b55039fd4
commit
c1b0d7de48
11 files changed
+274
-226
No files matched your search
+5
-4
@@ -141,7 +141,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.4 2024-04-18"
|
||||
export VERSION="1.5 2024-04-20"
|
||||
NAME=$(basename "$0")
|
||||
export NAME
|
||||
export V_FLAG=0
|
||||
@@ -1684,7 +1684,7 @@ fi
|
||||
|
||||
# input.md is -, we will need to capture standard input into a new temporary file
|
||||
#
|
||||
export ORIG_INPUT_MD="$INPUT_MD"
|
||||
export ORIG_INPUT_MD="$MATCH_MD"
|
||||
if [[ -z $NOOP ]]; then
|
||||
if [[ $INPUT_MD == - ]]; then
|
||||
export TMP_INPUT_MD=".$NAME.$$.stdin.md"
|
||||
@@ -1751,6 +1751,7 @@ if [[ -z $NOOP ]]; then
|
||||
#
|
||||
echo "<!-- BEFORE: 1st line of markdown file: $ORIG_INPUT_MD -->" > "$TMP_STRIPPED_MD"
|
||||
|
||||
# perform the %%TOKEN%% substitutions markdown file AND
|
||||
# strip commented language after markdown code block
|
||||
#
|
||||
# We do not want the sed extended regular expression to be expanded, so
|
||||
@@ -1759,10 +1760,10 @@ if [[ -z $NOOP ]]; then
|
||||
# SC2016 (info): Expressions don't expand in single quotes, use double quotes for that.
|
||||
# https://www.shellcheck.net/wiki/SC2016
|
||||
# shellcheck disable=SC2016
|
||||
sed -E -e 's/^```[[:space:]]<!---[^-][^-]*-->/```/' "$INPUT_MD" >> "$TMP_STRIPPED_MD"
|
||||
sed -E -e 's/^```[[:space:]]<!---[^-][^-]*-->/```/' -f "$TMP_SED_SCRIPT" "$INPUT_MD" >> "$TMP_STRIPPED_MD"
|
||||
status="$?"
|
||||
if [[ $status -ne 0 ]]; then
|
||||
echo "$0: ERROR: strip commented language after markdown code block from $INPUT_MD into file:" \
|
||||
echo "$0: ERROR: token substation and strip code block command language from $INPUT_MD into file:" \
|
||||
"$TMP_INPUT_MD failed, error code: $status" 1>&2
|
||||
exit 25
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user