Skip to content

KubeStellar has multiple documentation versions to match its multiple releases.
Please make sure you are viewing the docs version which matches the release version of the code you are using!

Testing website PRs

Testing a KubeStellar documentation PR#

If a contributor has not created a sharable preview of a documentation PR as documented in the documents management overview , here are the steps to checkout a git pull request for local testing.

STEP-1: Checkout the Pull Request

Helpers: GitHub, DevOpsCube

1.1 Use the pull request number to fetch origin (note: be sure to check out the right branch!)#

    Fetch the reference to the pull request based on its ID number, creating a new branch locally. Replace ID with your PR # and BRANCH_NAME with the desired branch name.

        git fetch origin pull/ID/head:BRANCH_NAME

1.2 Switch to the new branch#

   Checkout the BRANCH_NAME where you have all the changes from the pull request.

        git switch BRANCH_NAME

    At this point, you can do anything you want with this branch. You can run some local tests, or merge other branches into the branch.

STEP-2: Test and Build the Documentation (optional)

    Use this procedure if you want to view and modify the documentation in the branch you have checked out.

Helpers: KubeStellar/docs, MkDocs

2.1 Install MkDocs and its requirements#

  cd docs
  pip install mkdocs
  pip install -r requirements.txt  

2.2 Build and view the documentation#

         mkdocs serve

    Next, open a browser to http://127.0.0.1:8000 and review the changes.