One way to do this is to make a new directory structure that has:
https://moorepants.github.io/learn-multibody-dynamics/pull-requests/branch-name
Then each pull request could build the version of the website and deploy to a subdirectory. When the pull request is merged, that directory should be deleted on gh-pages.