diff options
Diffstat (limited to 'gen.sh')
-rwxr-xr-x | gen.sh | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -0,0 +1,24 @@ +#!/bin/bash + +MARKDOWN_DIR="Pages" +MARKDOWN_DIR_LENGTH=$(expr 1 + ${#MARKDOWN_DIR}) + +HTML_DIR="Html" + + + + +SELECTOR="${MARKDOWN_DIR}/**/*.md" +for FILENAME in $SELECTOR; do + WITHOUT_DIR=${FILENAME:$MARKDOWN_DIR_LENGTH} + WITHOUT_EXT=${WITHOUT_DIR%.*} + HTML_FILENAME="$HTML_DIR/$WITHOUT_EXT.html" + + # echo $FILENAME + # echo $HTML_FILENAME + + # echo "pandoc -o $HTML_FILENAME $FILENAME" + # pandoc -o "\"$HTML_FILENAME\"" "\"$FILENAME\"" +done + +pandoc -o Html/accessoires/eponges.html Pages/accessoires/eponges.md |