diff --git a/gen_kb.sh b/gen_kb.sh index 7f6aa57..70ae1ae 100755 --- a/gen_kb.sh +++ b/gen_kb.sh @@ -2,9 +2,12 @@ files=$(find kb -type f | awk -F'/' '{print $NF}') IFS=' ' mkdir -p franklincce/staticfiles/kb +mkdir -p franklincce/staticfiles/root for file in $files; do without_extension=${file%.*} echo $file, $without_extension pandoc -s --template=./template.html -f markdown -t html -o "franklincce/staticfiles/kb/$without_extension.html" "kb/$without_extension.md" --lua-filter=links-to-html.lua -done \ No newline at end of file +done + +cp franklincce/staticfiles/kb/web_root.html franklincce/staticfiles/root/index.html \ No newline at end of file diff --git a/kb/web_root.md b/kb/web_root.md new file mode 100644 index 0000000..2a6511c --- /dev/null +++ b/kb/web_root.md @@ -0,0 +1,6 @@ +--- +title: "Franklin CCE Delegation website" +--- + +This website contains some materials for the Franklin High School YMCA Center for Civic Engagement delegation. +Specifically, a [bill database](/explorer) and a [collection of helpful articles](/kb) on various things are available here. \ No newline at end of file diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 79ad793..32298f7 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -5,7 +5,7 @@ upstream franklincce { server { listen 80; - location / { + location /explorer/ { proxy_pass http://franklincce; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; @@ -20,4 +20,8 @@ server { location /kb { alias /home/app/web/staticfiles/kb; } + + location / { + alias /home/app/web/staticfiles/root/; + } }