last scripts need to build/deply the site i think
This commit is contained in:
@@ -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
3
scripts/server.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
cd public
|
||||
python -m SimpleHTTPServer
|
||||
Reference in New Issue
Block a user