forked from mmistakes/minimal-mistakes
-
Notifications
You must be signed in to change notification settings - Fork 2
Site editing workflow
Leighton Pritchard edited this page Jun 1, 2022
·
1 revision
There are alternative workflows depending whether you have write access to the repository.
- Clone the
sipbs-compbiol.github.io
repository to your machine (if you have not done so already) - Confirm that you are in the
master
branch of your local copy of the repository, and it is up to date usinggit pull
and/orgit rebase master
- Create a new branch for your changes with, e.g.
git checkout -b <BRANCH NAME>
- Start serving the site locally using
bundle exec jekyll serve
- Navigate a browser to
http://localhost:4000/
(or whichever URL thejekyll
server indicates) to check that the site renders correctly - Make your changes to the site
- Check that the changes render correctly, that links work, etc.
-
git add
your changes to the repository andgit commit
them with an informative short (and if helpful, also a long) message -
git push
your changes to the remote repository - Make a Pull Request for your changes in GitHub
- Fork the
sipbs-compbiol.github.io
repository in your GitHub account - Clone the
sipbs-compbiol.github.io
repository to your machine (if you have not done so already) - Confirm that you are on the
master
branch of your local copy of the repository and that it is up to date usinggit pull
and/orgit rebase upstream master
- Create a new branch for your changes with, e.g.
git checkout -b <BRANCH NAME>
- Start serving the site locally using
bundle exec jekyll serve
- Navigate a browser to
http://localhost:4000/
(or whichever URL thejekyll
server indicates) to check that the site renders correctly - Make your changes to the site
- Check that the changes render correctly, that links work, etc.
-
git add
your changes to the repository andgit commit
them with an informative short (and if helpful, also a long) message -
git push
your changes to the remote repository - Make a Pull Request for your changes in GitHub against the
master
branch ofsipbs-compbiol.github.io
The general workflow for handling Pull Requests is
- Someone with write access (possibly the editor themselves, if they have write access) will review the changes
- If more editing is required, or the changes cannot be cleanly merged, a discussion will follow on the Pull Request page, and changes made until the edits are OK
- The changes will be merged into
master