summaryrefslogtreecommitdiff
path: root/lib/html.source.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/html.source.sh')
-rw-r--r--lib/html.source.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/html.source.sh b/lib/html.source.sh
index fa9080f..8a923be 100644
--- a/lib/html.source.sh
+++ b/lib/html.source.sh
@@ -77,6 +77,7 @@ html::theme () {
html::theme::styles "$html_base_dir"
html::theme::webfonts "$html_base_dir"
+ html::theme::scripts "$html_base_dir"
}
html::theme::styles () {
@@ -124,6 +125,15 @@ html::theme::webfonts () {
fi
}
+html::theme::scripts () {
+ local -r html_base_dir="$1"; shift
+ log INFO 'Installing theme JavaScript files'
+
+ if [ -f "${HTML_JS_SCRIPT:-}" ]; then
+ cp "$HTML_JS_SCRIPT" "$html_base_dir/$(basename "$HTML_JS_SCRIPT")"
+ fi
+}
+
html::source_highlight () {
local -r bare_text="$1"; shift
local -r language="$1"; shift