StanfordHCI/cs247-2017-spring

Name: cs247-2017-spring

Owner: Stanford HCI

Description: CS 247 website for spring 2017 instantiation

Created: 2017-03-15 21:55:24.0

Updated: 2017-03-15 22:04:43.0

Pushed: 2017-06-05 15:17:39.0

Homepage: null

Size: 27825

Language: CSS

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

CS 247

Web site for CS 247.

Getting started

Local development

Start the local server by running the following command:

i-server --index index.shtml --rootpath 2017-spring

You might need to make ./ssi-server executable first by e.g. running chmod +x ./ssi-server.

The index option changes the default index file from index.html to one allowing server side includes. The rootpath option allows to mimick running in a subdirectory on the actual webserver. CS247 has so far put content for each class in a subdirectory based on year and quarter of the instantiation of the course.

Deployment

Run ./deploy.sh from the repository root. This assumes a fully configured hci host in your .ssh/config file. An example configuration would be:

 hci
stname hci.stanford.edu
er <<<your csid>>>
rwardAgent yes

Rationale and background

This is meant to be a pretty static HTML site. We wanted no build system. But we also wanted DRY includes. Our solution are Server Side Includes. Stanford's web servers are running Apache [0], and Apache has an implementation of Server Side Includes. SSI allows for includes like this:

#include virtual="header.html" -->
 Some HTML</h1>
#include virtual="footer.html" -->

Note no space after the opening comment <!-- is allowed. Name all files that will use include statements *.shtml.

[0] See if that's still true when you read this: curl --silent -I http://www.stanford.edu | grep Apache

Setup Apache SSI

This is already done for you, but FYI:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.