Contribute to this page#
The recommended workflow for development#
Fork the repository to your Github account and fetch upstream to receive the newest commits.
Alternatively, you should just clone this repo if you are part of the eScience2024 team, this way the branches you create will get
Perform the development in a newly-created branch (other than
master
) in your repository.Note that since we are using
myst-parser
both.rst
and.md
can be used.Build the page in the command line to test the introduced modifications by following the instructions below.
Locally build this page#
Before filling a pull-request you should check that the changes introduced by you still make the site build. Therefore, you should always build and test locally before you ask for a pull request.
To automatically update the documentation locally during development:
$[~/PROJECT_ROOT] sphinx-autobuild docs/ _build
Using venv or conda is highly recommended. Also, when you are pulling from master
, please don’t forget to update your environment with pip install -r requirements.txt
since those might have been changed since you last built the page locally.
After you are done with your changes:#
Merge or rebase on
upstream/master
(master
if you work within this repo) and resolve conflicts.Check with
sphinx-autobuild
to see if the page builds and looks as intended.Create a pull request to the
master
branch. Give a short description of what you have added.
The static webpage is hosted on Github and automatically built by pushing changes to the master
branch. The built webpage is displayed when selecting the gh-pages
branch. This process is automatic. A guide to the principles can be found here.
If you have any questions, look in the Issues (including closed), if you don’t find an answer - create a new one.
NOTE If workflow above is too hard for you, there is a Github button in the top-right corner.
Reviewing PRs#
Checkout branch that is getting pulled.
Build locally.
Add commits locally to fix things.
Add comments in the pull request.
Merge the PR (if you have rights and are happy with the changes).
The web-page will get updated in a few minutes through github actions.