How to Contribute to This Portal#

Clone the repository, build locally, and submit your changes.

This guide covers how to contribute to the SKA Developer Portal. For documentation standards and style guidance, see the Documentation Style Guide.


Quick Edit via GitLab#

For small changes, use the Edit on GitLab button on any page.

The Edit on GitLab link in the top right of a Developer Portal page.

After logging in:

  1. Make your changes in GitLab’s editor

  2. Commit to a new branch

  3. Create a Merge Request

If you don’t have write access, GitLab automatically creates a fork for you.


Local Development Setup#

For larger changes, set up local development to preview your work.

Clone the Repository#

Use SSH (recommended):

git clone --recurse-submodules git@gitlab.com:ska-telescope/developer.skatelescope.org.git

Or HTTPS:

git clone --recurse-submodules https://gitlab.com/ska-telescope/developer.skatelescope.org.git

If you already have a clone, update submodules:

git submodule update --init --recursive

Install Dependencies#

  1. Install Poetry if you don’t have it

  2. Create a virtual environment and install dependencies:

    poetry shell
    poetry install
    

Build the Documentation#

Inside the virtual environment:

make docs-build html

This creates ./build/html. Open ./build/html/index.html in a browser to preview.


Merge Request Workflow#

Create a Branch#

Follow the Branching policy:

git checkout -b your-branch-name

Make your changes, then commit:

git add .
git commit -m "Brief description of changes"
git push origin your-branch-name

Submit a Merge Request#

  1. Go to the Developer Portal GitLab project

  2. Click Create merge request

  3. Fill in the description

Preview Your Changes#

Use the View app button on your merge request to share a preview without requiring others to build locally.

The View app button on a GitLab merge request.

For wider consultation, ask the team in `System Team Support Service Desk<https://jira.skatelescope.org/servicedesk/customer/portal/166/create/298>`__ or leave a comment on the Merge Request to have your version added to the ReadTheDocs version dropdown.

Merge and Redirect#

After approval:

  1. Merge your merge request or someone from the team will merge it after approval


See Also#