This repository contains the source code for the RAIL Lab website at Georgia Tech.
If you want to make changes to the website, you need to be added to the website GitHub repository. Once you have access, you can clone the repository and make changes to the website content. Below are the instructions on how to do this.
Clone the repository to your local machine and navigate to the project directory:
git clone https://github.com/karpekov/rail-website.git
cd rail-websiteMost of the website content is stored in YAML files in the src/data and static/images folders. See below how to add or edit content in the corresponding YAML files:
Contains information about current and past lab members.
To add yourself:
- Add your photo to
static/images/people/- Use a square photo with your face centered (like a passport photo)
- Add your entry to
src/data/people.yamlunder the appropriate section - Required fields: name, status, degree, degree_detail, photo
- Optional fields: website, linkedin, scholar, github, twitter
Contains past research projects.
To add a project:
- Add a representative image to
static/images/projects/- Could be Figure 1 from your paper or a key result
- Recommended aspect ratio: 16:9
- Add your project entry to
src/data/projects.yaml - Required fields: full_title, short_title, venue, image, team, tags
- Optional fields: website, pdf, github, video
Contains lab news and announcements.Add entries in reverse chronological order.
Contains information about lab activities and outreach. Include high-quality images in static/images/fun/.
If you want to edit fields such as the website header or "About Us" section, you can do so by editing the corresponding Svelte components in the src/components folder.
We highly recommend testing your changes locally before pushing them to the main branch.
You need to have Node.js installed on your machine. If you don't have it, you can install it using nvm (Node Version Manager).
-
If you don't have it, install nvm from: https://github.com/nvm-sh/nvm#installing-and-updating
-
Install Node.js 20.x (LTS version):
- Using nvm (recommended):
nvm install 20 nvm use 20
- Or download directly from: https://nodejs.org/
- Using nvm (recommended):
-
Install dependencies from within the project directory:
npm install
This will install all required packages specified in package.json.
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:5173- The site will automatically reload when you make changes
- Check the terminal for any error messages
-
Commit your changes:
git add . git commit -m "Description of your changes"
-
Push to the main branch:
git push origin main
-
The website will automatically deploy through Vercel
- The live site will update within a few minutes
If you run into any issues:
- Check the error messages in your terminal
- Make sure your Node.js version is correct (
node -vshould show v20.x.x) - Try deleting the
node_modulesfolder and runningnpm installagain - Contact the website maintainers for help