Source code for the Tufts ML research group website from 2018-present.
Serving the groups of Prof. Bert Huang, Prof. Liping Liu and Prof. Mike Hughes.
How to:
- Add an event to the events page
- Add a person to the people page
- Add a course to the courses page
- Build website from source
- Install dependencies
-
Add a row to the appropriate CSV file
-
Then do
make html
to rebuild from source.
Event files:
-
Edit by hand the file: people.md
-
The do
make html
to rebuild from source
-
New semester? Add a new CSV file and update the list at the top of make_page__courses.py
-
Add a row to the appropriate CSV file
-
Then do
make html
to rebuild from source.
Course files:
$ make html # Build static site on local machine, in output/ folder
$ make serve # Serve website locally (runs in background). To view, point your favorite browser to: localhost:8000
To push any local changes to the real site, just do:
$ SSH_USER=____ SSH_HOST=____ SSH_TARGET_DIR=____ make rsync_upload
This will upload the files to SSH_USER@SSH_HOST:SSH_TARGET_DIR via rsync.
- Pelican: http://blog.getpelican.com/
- Markdown
- Pandas (for reading/writing csv files)
$ conda install -c conda-forge pelican
$ conda install markdown
$ conda install pandas