mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
16 lines
392 B
Bash
Executable file
16 lines
392 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"
|
|
marked $page >> "$dest$fileroot.html"
|
|
sed "1,/REPLACETHIS/ d" tutor.template.html >> "$dest$fileroot.html"
|
|
done
|