Skip to content

Adding entries to the mentoring program page

Athanasia Monika Mowinckel edited this page Oct 25, 2023 · 4 revisions

The data for the mentoring program is updated by adding new entries to the mentoring program json-file. This can be done directly in github, rather than forking or working on a local copy. Go to the mentoring data edit page, copy a previous entry (the main bulk between two curly braces), paste it below the last entry (with a comma between entries, i.e. before your {), and edit the information. Once you are satisfied with the new data you've entered, write a message, make sure to create a new branch, and propose the changes.

Copy a previous entry Paste it below the last entry, and make sure there is a comma between the entries Edit the entry Write a commit message, create a new branch, and propose the changes

Once the changes have been proposed, you will need to add an image to go along with your new entry. In the previous step, you made a new branch of the repository, a temporary copy that you will ask to be merged into the main repository later. You will add your image to this branch, so that the image and the new entry come together. Note: the image file name needs to match exactly to the name you wrote in the json-file.

In the example images, a branch named drmowinckels-patch-1 was made. Go to the main repository page, and look for your new branch in the dropdown meny at the top left of the file contents table.

Look for the branch name you made, and click it to enter it

The site should look more or less the same to you. Navigate to content/activities/mentoring/img/, and select Add file then Upload files Choose to upload new files

Drag and drop the image for your entry, write a commit message, and make sure it is committed to the branch you are on (should be selected by default). Comment and propose changes to the branch you are on

Once this is done, you are redirected to the main repository page of your current branch, where a message that your branch has recently been pushed to. Click the Compare & pull request button that appears next to this message. Click on the 'Compare & pull request' button.

Change the head message for the pull request to clearly state what the proposed change is about. Click on the Create pull request button. Enter a meaningful short description of the changes and click 'Create pull request' button.

Once this is done, someone on the website team will review your proposed changes and make sure that everything is working as expected. If something needs changing, you will be contacted with information on what needs fixing. Once everything looks fine, your changes will be merged into the main repository and will appear on the website.