last scripts need to build/deply the site i think

This commit is contained in:
shockrah
2020-07-05 17:18:25 -07:00
parent ec31274f14
commit 06a1192e41
4 changed files with 371 additions and 7 deletions

View File

@@ -1,10 +1,20 @@
#!/bin/sh
# Locations of important md files to build
mkdir -p public/img
cp gitlab-page/style.css public/style.css
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
md() {
pandoc -s --css style.css `ls --sort=version $1`
}
md "311/lec/*.md" > public/intro-to-networking-311.html
md "312/*.md" > public/network-security-concepts-312.html
md "337/lec/*.md" > public/computer-architecture-mips-337.html
cp 337/img/* public/img/
md "363/lec/*.md" > public/intro-to-databases-363.html
md "370/notes/*.md" > public/advanced-algorithms-370.html
md "412/*.md" > public/networking-concepts.html
md gitlab-page/index.md > public/index.html

3
scripts/server.sh Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
cd public
python -m SimpleHTTPServer