diff --git a/build-docs b/build-docs index 52e0dab3..21af2ce7 100755 --- a/build-docs +++ b/build-docs @@ -125,7 +125,7 @@ function build_source { -e '/\{\{[ ]*document\.content[ ]*\}\}/{r '"${DOCUMENT_Content}" -e 'd;}' \ -e '/\{\{[ ]*template\.footer[ ]*\}\}/{r '"${TEMPLATE_Footer}" -e 'd;}' \ -i.sedbak "${DEST}.html" - # process custom tags + # process template tags TEMPLATE_Scripts="" for SCRIPT in ${TEMPLATE_Scripts_array[@]}; do TEMPLATE_Scripts+="" @@ -152,6 +152,12 @@ function build_source { -e 's|\{\{[ ]*document\.redirect-url[ ]*\}\}|'"${DOCUMENT_Redirect_URL:-}"'|g' \ -e 's|\{\{[ ]*base\.relpath[ ]*\}\}|'"${BASE_RELPATH:-}"'|g' \ -i.sedbak "${DEST}.html" + # process comment tags + sed -E \ + -e 's||
|g' \ + -e 's||
|g' \ + -e 's||
|g' \ + -i.sedbak "${DEST}.html" # postprocess sed -E \ -e 's|

|
|' \