Share a live documentation preview
Guidance last updated: 11 November 2026
Use a live preview to share a browser link for reviewing documentation changes before publication. For a large release, such as an operating system upgrade, bring the related changes together on one preview branch so reviewers can see how they fit together. Reviewers only need the link to view the preview.
The Pages workflow
publishes master at /en/latest/ and each live test branch at
/en/<branch>/. A test branch name must start with test_ and contain
only letters, numbers, dots, underscores or hyphens after that prefix.
For example, test_newsletter is published at
https://docs.hpc.shef.ac.uk/en/test_newsletter/.
Permissions and deployment settings
The active Test preview branches ruleset targets test_* and restricts
branch creation, updates and deletion to repository administrators. Maintainers
who need to manage previews can be granted access through a designated team on
the ruleset’s bypass list.
Under repository Settings → Environments → github-pages, the deployment
branch rules must allow both master and the branch pattern test_*.
Allowing a branch to deploy does not grant permission to create or update it.
Prepare and share a live preview
Create the content branch from updated
master. Ask a repository administrator to create a separatetest_*branch from updatedmaster, or use an existing preview branch suitable for the review.Open a pull request from the content branch into the test branch. The
test_docs_buildcheck runs for pull requests targeting any branch, includingtest_*. Wait for it to pass before an administrator merges the pull request. Keep the content branch if it will be published separately.Check the Pages workflow run, then share the preview URL with reviewers. Append a page’s normal path to link directly to that page in the preview.
Make any review fixes on the content branch and merge them into the test branch through another pull request. Each push to
masteror atest_*branch rebuilds the main site and all current test branches, so the preview remains available through ordinary deployments.
Publish reviewed changes
For an individual change, open a separate pull request from the original
content branch into master. This leaves any unrelated changes and test
banner on the preview branch.
For a coordinated release, such as documentation prepared for an operating
system upgrade, use a dedicated test_* integration branch. Merge the
related content PRs into it and review the combined published preview. When
the release is ready, remove any preview-only changes, including a test banner,
and open a pull request from the integration branch into master. Review
the complete diff and wait for the normal checks and approval before merging.
Once the live pages are correct and the preview is no longer needed, ask an administrator to delete the remote test branch. Its deletion triggers a deployment without that preview.
The preview ruleset controls who can change test branches; it does not require the PR build check to pass. Administrators should check the result before merging.
The workflow’s manual run option can rebuild the site if a run fails. A failed branch build stops deployment, leaving the previous Pages site in place until a successful run replaces it. Check the workflow result after deleting a branch to confirm its preview has actually gone.
Preview URLs are publicly accessible even though the source repository is
private. The robots.txt rule discourages indexing of /en/test_ paths;
it does not control access. Do not put confidential material in
a test branch.