This is a repository for Red Hat Developer (RHDH) documentation.
Contribute to this repository to add new and edit existing RHDH documentation published on the Red Hat Documentation page.
Before submitting a pull request (PR), create a Jira issue associated with your contribution to this repository.
There are currently three Jira projects related to RHDH:
Choose a Jira project that matches your contribution and create a new issue:
-
In the Jira project, click Create.
-
In the Description field, describe your contribution.
-
In the Component/s field, select Documentation from the drop-down list.
-
Save the created Jira issue.
|
Important
|
RHDH release notes are single-sourced from Jira. See the RHDH Release Notes process document and the release notes repository (VPN required) for details. |
All contributions are in AsciiDoc.
Make sure your writing follows the rules listed in IBM Style and Red Hat supplementary style guide.
|
Note
|
If the IBM Style and the Red Hat supplementary style guide offer conflicting solutions, the Red Hat supplementary style guide solution overrides IBM Style. |
Follow the Modular documentation reference guide to modularize your content.
-
Lychee (downloaded automatically by the build script if not installed)
-
Optional for local builds: A
GITHUB_TOKENenvironment variable to avoid GitHub API rate limiting during lychee link validation. Use GitHub CLI (gh) to get and refresh the token:export GITHUB_TOKEN=$(gh auth token). This token is required in CI for deployment togh-pages.
-
Sync the Vale style rules:
$ vale sync -
Build HTML with images in
titles-generated/usingccutilin a container, then run lychee link validation and CQA content quality checks:$ ./build/scripts/build-ccutil.shThe
ccutilCLI tool reproduces the behavior of the production publication chain (Pantheon), including its limitations, and is therefore preferred overasciidoctor.
Results are written to build-report.json.
The build command above includes lychee link validation automatically. To run lychee separately on already-built HTML:
-
Optional: A
GITHUB_TOKENenvironment variable to avoid GitHub API rate limiting. Use GitHub CLI (gh) to get and refresh the token:export GITHUB_TOKEN=$(gh auth token)
-
Run lychee on the built HTML:
$ lychee titles-generated/
To check for broken links in the published RHDH docs, use linkchecker:
-
Run the following command to create a .txt file with a list of detected broken links:
$ linkchecker --check-extern --output failures --file-output failures/broken-links.txt https://docs.redhat.com/en/documentation/red_hat_developer_hub/<version>
You can view commits to this repo as GitHub Page content here:
PRs have a link to the generated HTML attached as a comment.
The publication workflow has two stages:
-
The PR workflow and GitHub Pages workflow build HTML from AsciiDoc sources and push the output to the
gh-pagesbranch usingbuild/scripts/deploy-gh-pages.js, which handles concurrent pushes with automatic retry, cleanup of stale PR/branch directories, and index regeneration. -
The GitHub Pages build and deployment workflow, managed by GitHub, detects pushes to the
gh-pagesbranch and publishes the content to GitHub Pages.
See GitHub Publication Workflow Architecture for the full technical reference.
All PRs are reviewed for technical accuracy by an SME and writing quality by another tech writer.
When possible, request a tech review first and implement suggestions from the SME. After your PR is approved by the tech reviewer, follow it up with a request a peer review.
Check this doc for the current peer review roster.
After the peer and tech reviewer approve your PR, the PR is ready for merging and cherry-picking by a gatekeeper.
Check this doc for the current gatekeeper roster.
As you work on your contribution to this repo, use labels to show the status of your PR and to request reviews:
-
draft:
do-not-merge/work-in-progress -
ready for peer and technical reviews:
do-not-merge/review-in-progress -
request for a tech review:
technical-review-needed -
completed tech review:
technical-review-done -
request for a peer review:
peer-review-needed -
completed peer review:
peer-review-done -
ready for merging:
ready-to-merge
|
Note
|
Remember to remove labels as they become outdated.
For example, remove the |
This repo is the upstream mirror of the GitLab RHDH repo https://gitlab.cee.redhat.com/red-hat-developers-documentation/rhdh
Merged PRs are synced to GitLab for build with Pantheon.
For Plugin configuration guide, see upstream content in https://github.com/janus-idp/backstage-plugins/tree/main/plugins
-
link:https://spaces.redhat.com/spaces/RHDEVDOCS/pages/494635174/Content+creation+guidelines [RHDH content creation guidelines]