Skip to content

Commit

Permalink
Update test_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
briantoby authored Jan 16, 2025
1 parent 98d4868 commit acffb40
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/test_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,23 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Find tutorials
- name: convert tutorials
run: |
cd MDtutorials
ls
for path in ./*; do
[ -d "${path}" ] || continue # if not a directory, skip
[ -d "${path}" ] || continue # skip if not a directory
dirname="$(basename "${path}")"
mkdir -v ../$dirname
dest="../$dirname)
mkdir -v ${dest}
[ -d "${path}/data" ] || cp -rv "${path}/data" ${dest}/
[ -d "${path}/imgs" ] || cp -rv "${path}/imgs" ${dest}/
cp -v tutorial.css ${dest}
for fil in $dirname/*.md; do
echo $fil
ls -l $fil
outfile="${dest}/$(basename "${fil%.md}.html")"
echo $outfile
pandoc --standalone ${fil} --css tutorial.css -o ${outfile}
sed -i '' 's/<figure>/<BR clear=all><figure>/g' ${outfile}
done
done
which pandoc
which sed

0 comments on commit acffb40

Please sign in to comment.