commiting
This commit is contained in:
16
markdown_content/scripts/build.sh
Normal file
16
markdown_content/scripts/build.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#! /run/current-system/sw/bin/bash
|
||||
|
||||
# Static runtime variables
|
||||
SRC_DIR=src
|
||||
PUBLIC_DIR=public
|
||||
|
||||
for content in $(find $SRC_DIR -type f)
|
||||
do
|
||||
output_file="$PUBLIC_DIR/$(echo "$content" | sed -e 's/src\///g' -e 's/md$/html/g')"
|
||||
content_type=$(echo $content | awk -F/ '{ print $2 }')
|
||||
|
||||
mkdir -p $(dirname $output_file)
|
||||
|
||||
pandoc -o "$output_file" "$content"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user