- Begin by cloning the repository to your local computer. You can do this by clicking the green
<> codebutton above, copying the URL to your clipboard, and then executinggit clone linkin the terminal in which you paste the link in place of the wordlinkin your desired local directory. - In the terminal, travel to the website directory. Remain there for the rest of the instructions. Create a new branch by executing
git checkout -b your_name_branchin the terminal. - Add your name to
members.txt(by runningnano members.txtin the terminal) under the appropriate category in alphabetic order by last name. Type your name exactly how you would like it to show up in the directory. - Execute
cp members/example_student.md members/your_name.mdin terminal whereyour_nameis the name you wrote in (3), but lowercase and with '_' instead of spaces. This will create a filemembers/your_name.mdthat is an exact copy ofmembers/example_student.md. - Fill out
members/your_name.md! Access the file by executingnano members/your_name.mdand make sure to replace all instances ofexample studentwith your name. - Add a professional photo (preferably square aspect ratio) at
assets/img/your_name.png. This can be done manually on the cumputer desktop or by executingcp /path/to/source/your_name.png ./assets/img, where/path/to/sourceis the path to where the image is on your computer. - Add any extra photos (research, hobbies, etc.) at
assets/img/your_name_#.png, where#is a number 1-3. If you choose not to do this, comment out the table inmembers/your_name.md. - Run
make_member_page.pyand check that there are no errors. - Preview your webpage by calling
bundle install; bundle exec jekyll serve.- This step may not work if you do not have Jekyll installed correctly or installed in general on your computer. To fix this, the first step is to install Ruby through a version manager. Do this by running
brew install rbenv, then runrbenv init, and then restart your terminal and return to the website directory. The second step is to rungem install jekyll, and the problem will be solved. - Another reason this step may not work is because your version of Ruby is not compatible with the bundler that generatreed the Gemfile.loc file (
1.17.2). Begin by seeing if this is the issue by executingruby -vin the terminal. If any number is displayed that is higher than 2.6.10, then an older version of Ruby must be downloaded. Do this by executingrbenv install 2.6.10, thenrbenv global 2.6.10, and finallyruby -vto verify version 2.6.10 of Ruby is now installed. - Once the command is succesfully ran, copy and paste the provided URL into your browser and verify everything on the website is how you want it to look.
- Update as of October 10, 2025: If none of these commands work, you can use the provided Dockerfile to create an image and container. To get started, follow these instructions to download, install, and learn more about Docker.
- Run
rm Gemfile.lockto remove the Lockfile if it exists - it will be regenerated in later steps - After doing so, run
docker build -t jekyll:latest ., which will build the image. This takes a few minutes, but building the image only needs to be done once. - Then, run
- Linux/Mac:
docker run --rm -it -v $(pwd):/website -p 4000:4000 jekyll:latest - Windows Powershell:
docker run --rm -it -v ${PWD}:/website -p 4000:4000 jekyll:latest - Windows Command Prompt:
docker run --rm -it -v %cd%:/website -p 4000:4000 jekyll:latest
- Linux/Mac:
- After about 30 seconds, it will present you with the url
http://0.0.0.0:4000. This URL works for Linux and Mac, but not Windows. If you're on Windows, navigate tohttp://localhost:4000. - These commands will run the container and the server, mounting this directory to
/websitein the docker container. Things will be properly hot-reloaded, allowing for immediate feedback on updates to the webpage.
- Run
- This step may not work if you do not have Jekyll installed correctly or installed in general on your computer. To fix this, the first step is to install Ruby through a version manager. Do this by running
- Commit your branch and push it to the repository with
git add *; git commit -m "Making a page for your name"; git push origin your_name_branch. - Create a pull request on
https://github.com/cersonsky-lab/website/pullsand check that all tests run. - Request one of your group members and Rosy (@rosecers) as a reviewer.
forked from cersonsky-lab/website
-
Notifications
You must be signed in to change notification settings - Fork 0
This repository is for the Cersonsky lab group website.
License
jamesyeom/website
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
This repository is for the Cersonsky lab group website.
Resources
License
Code of conduct
Contributing
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- SCSS 40.7%
- Python 26.6%
- HTML 12.4%
- Ruby 6.6%
- Dockerfile 5.4%
- Shell 4.6%
- JavaScript 3.7%