- 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. 9a. 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 runningbrew 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. 9b. 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. 9c. 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. - 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.
Tejas7007/website
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Releases
No releases published
Languages
- SCSS 42.9%
- Python 28.1%
- HTML 13.2%
- Ruby 7.0%
- Shell 4.8%
- JavaScript 4.0%