mirror of
https://github.com/tridactyl/tridactyl.git
synced 2026-09-10 15:26:18 -04:00
17 lines
405 B
Bash
Executable file
17 lines
405 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Combine tutorial markdown and template
|
|
|
|
cd src/static/clippy
|
|
|
|
pages=$(ls *.md)
|
|
dest="../../../generated/static/clippy/"
|
|
|
|
for page in $pages
|
|
do
|
|
fileroot=$(echo $page | cut -d'.' -f-1)
|
|
sed "/REPLACETHIS/,$ d" tutor.template.html > "$dest$fileroot.html"
|
|
"$(npm bin)/marked" $page >> "$dest$fileroot.html"
|
|
sed "1,/REPLACETHIS/ d" tutor.template.html >> "$dest$fileroot.html"
|
|
done
|