Welcome to the official repository for the University of Edinburgh MathSoc website.
This repository contains the source code for the University of Edinburgh MathSoc website. The website provides information about events, membership, and resources for students interested in mathematics.
To set up the project locally, follow these steps: (Work in progress currently only works on MacOS and Linux)
-
Clone the repository:
In a terminal window, run the following command:
git clone --recursive [email protected]:samuelwebb2/mathsoc-website.git
In order to complete this step you may need to setup the following if you haven't already:
-
Navigate to the project directory and open it in your editor:
cd mathsoc-website code .
-
Install the dependencies:
If you don't have homebrew installed follow the instructions here.
brew install hugo node@20
npm i -g blowfish-tools
To start the development server, run:
blowfish-tools
Using your arrow keys sellect the option: 'Run a local server with Blowfish', and press enter.
Open your browser and navigate to http://localhost:1313 to view the website.
If you are not a member of the MathSoc exec team, you will need to create a pull request to merge your changes into the main branch.
-
Pull the latest changes from the repository:
git pull
-
Make your changes to the website.
e.g. Add a new page to the website by using the following commands:
blowfish-tools
Using your arrow keys sellect the option: 'Generate a new article', and press enter.
Follow the prompts to create a new page. Edit the page content in the
content
directory. -
Add your changes to the staging area:
git add .
-
Commit your changes:
git commit -m "Your commit message here"
-
Push your changes to the repository:
git push
-
Publish your changes to the live website:
If you are a member of the MathSoc exec team, you can publish your changes to the live website by running the following command:
hugo && rsync -avz --delete public/ [email protected]:~/www