summaryrefslogtreecommitdiff
path: root/build-html.sh
diff options
context:
space:
mode:
authoryctct <yctct@yctct.com>2025-05-10 19:45:46 +0200
committeryctct <yctct@yctct.com>2025-05-10 19:45:46 +0200
commit820782f5767a90cb734eb237c20a84f01ea5e02e (patch)
treef80f7efd975f1d7cb2c52bd3c60a39d209675a07 /build-html.sh
parent849eff15db15bd8485bc4f10ecb64ae7c8a7e895 (diff)
Shorten name
Diffstat (limited to 'build-html.sh')
-rwxr-xr-xbuild-html.sh24
1 files changed, 0 insertions, 24 deletions
diff --git a/build-html.sh b/build-html.sh
deleted file mode 100755
index 1302352..0000000
--- a/build-html.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-echo Welcome to the markdown to html converter.
-markdown_file="$1"
-echo file is "$markdown_file"
-
-if [[ -z "$markdown_file" ]]; then
- printf "Usage: %s <markdown_file>\n" "$0"
- exit 1
- fi
-
- # output_dir="$(dirname "$markdown_file")"
- # output_file="$output_dir/${markdown_file%%.*}.html"
- output_file="${markdown_file%%.*}.html"
-
- pandoc "$markdown_file" -f markdown+hard_line_breaks \
- -t html5 -H "header.html" \
- --template="default.html5" \
- -o "$output_file" --verbose --highlight-style=breezedark
-
-
- printf "markdown_file: %s\n" "$markdown_file"
- printf "output_file: %s\n" "$output_file"
-
- echo We did it capitan, we converted to html.