This is the Jekyll-powered website for the Human-Computer Interaction group at MIT CSAIL.
Important: This project uses rbenv for Ruby version management to ensure all developers use the same Ruby version and avoid dependency conflicts.
-
Install rbenv (official instructions)
# On macOS with Homebrew: brew install rbenv ruby-build # Add rbenv to your shell profile (.bashrc, .zshrc, etc.) echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc echo 'eval "$(rbenv init -)"' >> ~/.zshrc # Restart your terminal or reload your profile source ~/.zshrc
-
Install the correct Ruby version
# The .ruby-version file specifies Ruby 3.3.6 rbenv install 3.3.6 rbenv global 3.3.6 # or just cd into this directory
-
Install dependencies
bundle install
# Serve with live reload (recommended for development)
bundle exec jekyll serve --livereload
# Or serve on all interfaces (useful for testing on other devices)
bundle exec jekyll serve --livereload --host 0.0.0.0The site will be available at http://localhost:4000 with automatic browser refresh when you make changes.
bundle exec jekyll buildThis website uses Jekyll with data files for easy content management:
Edit the YAML files in _data/:
_data/faculty.yml- Faculty and PI information_data/phds.yml- PhD students and PostDocs_data/groups.yml- Research group information
Edit _data/research.yml to add new research projects with descriptions and example project links.
Edit _data/classes.yml to add course information.
Edit _data/alumni.yml - organized by graduation year.
- Layouts:
_layouts/- Page templates - Includes:
_includes/- Reusable components - Data:
_data/- All content in YAML format - Assets:
assets/- Images, CSS, and other static files
Ruby version management is crucial for Jekyll projects because:
- Different Ruby versions can cause gem compatibility issues
- Team members need consistent environments
- Deployment environments should match development
- The
.ruby-versionfile ensures everyone uses Ruby 3.3.6
If you get Ruby version errors:
- Check you have rbenv installed:
which rbenv - Check Ruby version:
ruby --version(should show 3.3.6) - Reinstall gems:
bundle install
If Jekyll won't start:
- Try
bundle update - Make sure you're using
bundle exec jekyll serve - Check for port conflicts (default port 4000)
- Make sure you're on the
jekyllbranch - Follow the rbenv setup above
- Make your changes
- Test locally with
bundle exec jekyll serve --livereload - Commit and push your changes