blob: 9fbf044152d499625cbf9bcc772275cb7e90d432 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|