This holds the content for the Mathematics PGR site at the University of Leeds and handles the site upload via GitHub actions.
You can update the website either by editing the content on GitHub directly, or by cloning the repository and pushing your changes. Creating a local copy will allow you to preview your changes before deploying them. Before you can make any changes, you will need to become a member of the leeds-maths-pgr organisation. Please see that webpage for details.
- (on first run only) Run
git clone git@github.com:leeds-maths-pgr/leeds-maths-pgr.github.io. cd leeds-maths-pgr.github.ioandgit pullto merge changes.- Make changes to the markdown files in the
contentfolder. See below for information on how to locally preview changes. - Once you're happy with your changes,
git addandgit commit. git push
The site is built and deployed automatically upon git push to main, it should not take more than one minute.
If you have a copy of python accessible from your path, you can use its in-built http server to preview changes.
Alternatively, if you prefer not to use python, you can use darkhttpd.
This has been added to a Makefile for your convenience; run:
make htmlto set up the local directories and locally build the sitemake serveto run the local python http server, if you have python installedmake darkserveto run the localdarkhttpdserver, if you havedarkhttpdinstalled
The preview of the site should then be available at http://localhost:8000/
Place any static assets (e.g. PDFs or images) in the assets directory, they can then be linked to from the content document.
For example, if you wanted to link to assets/Georg_Friedrich_Bernhard_Riemann.jpeg, you would write [link text](/assets/Georg_Friedrich_Bernhard_Riemann.jpeg).
Do take note of the leading / in the URL above, it is important!