Uploading Pictures
The website has a picture page that display pictures of past events at COGS. To upload pictures to this page, follow the steps below:
Prerequisites
- Make sure you have Python installed on your computer.
- Make sure you have Git installed on your computer.
-
Clone the website GitHub repository locally if you don't have it already
> git clone https://github.com/rucogs/rucogs.github.io
-
Inside the repository folder, install the python packages using
> pip install -r requirements.txt
Steps
-
Upload pictures to the
src/assets/pictures-page-images
folder- Make sure to place in the image in the correct folder based on it's year and then semester
- If the folder doesn't exist, feel free to create it.
-
Run the following command. This will add the images to the website as well as generate preview thumbnails for the images
> py update_images.py
-
Commit and push your changes to GitHub
> git add . > git commit -m "Description of changes, etc." > git push