diff --git a/page.sh b/page.sh index ba1be24..0184db1 100755 --- a/page.sh +++ b/page.sh @@ -6,7 +6,7 @@ expand() { - + EOF diff --git a/knazarovcom.css b/style.css similarity index 100% rename from knazarovcom.css rename to style.css diff --git a/toc.sh b/toc.sh new file mode 100755 index 0000000..0f858b1 --- /dev/null +++ b/toc.sh @@ -0,0 +1,25 @@ +#!/bin/bash + + +render() { + TITLE="$1" + DIR="$2" + + find "$DIR/" -type f -name '*.md' | while read -r FN + do + echo "FILE: $(realpath $FN)" + done + +} + +if [ -z "$1" ]; then + echo "Missing page title" + exit 1 +fi + +if [ ! -d "$2" ]; then + echo "Missing source directory" + exit 1 +fi + +render "$1" "$2"