setting up to have gitlab pages host some content for us

This commit is contained in:
shockrah 2020-07-05 16:33:36 -07:00
parent 4a562b57da
commit 478219631c
2 changed files with 11 additions and 1 deletions

View File

@ -2,7 +2,7 @@ image: pandoc/core
pages:
script:
- ./build-html.sh
- ./scripts/build-html.sh
artifacts:
paths:
-public

10
scripts/build-html.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# Locations of important md files to build
lecture_dirs='311/lec/ 312/ 337/lec/ 363/lec/ 370/notes/ 412/'
mkdir -p public
for d in $lecture_dirs;do
echo $d;
pandoc `ls --sort=version $d` -o "public/$d.html"
done