Skip to content

carpetdev/leeds-maths-pgr.github.io

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leeds Maths PGR Website

GitHub Pages Deployment

This holds the content for the Mathematics PGR site at the University of Leeds and handles the site upload via GitHub actions.

Updating the website

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.

Working on the site locally

  1. (on first run only) Run git clone git@github.com:leeds-maths-pgr/leeds-maths-pgr.github.io.
  2. cd leeds-maths-pgr.github.io and git pull to merge changes.
  3. Make changes to the markdown files in the content folder. See below for information on how to locally preview changes.
  4. Once you're happy with your changes, git add and git commit.
  5. git push

The site is built and deployed automatically upon git push to main, it should not take more than one minute.

Previewing changes

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 html to set up the local directories and locally build the site
  • make serve to run the local python http server, if you have python installed
  • make darkserve to run the local darkhttpd server, if you have darkhttpd installed

The preview of the site should then be available at http://localhost:8000/

Uploading assets

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!

About

Repository for the Mathematics PGR site at the University of Leeds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 86.8%
  • CSS 5.9%
  • Makefile 5.0%
  • HTML 2.3%