- Before You Begin
- General Information
- Raising an Issue
- Put in a Pull Request
- Updating Documentation
- Code of Conduct
You can contribute by:
- Raising an issue you find in the documentation
- Fixing issues by opening a pull request
- Improving documentation or code samples
All bugs, tasks or enhancements are tracked as GitHub issues. Use labels to indicate requirements and information related to the reported issue.
- Get started by installing and getting familiar with Git.
- Use AsciiDoc to contribute documentation to the repository. For details see the Updating Documentation section below.
- Refer to our style guide for guidance on formatting your documentation contributions.
Thank you for your contributions! Please follow this process to submit a patch:
-
Create an issue describing your proposed change to the repository.
-
The repository owners will triage and respond to your issue promptly.
-
Fork the repository and create a topic branch.
-
Submit a pull request with the proposed changes. The required format for the Git commit message is "Issue #<issue_message>".
GitHub issues can be used to report bugs or submit feature requests.
When reporting an issue, you can use the applicable issue reporting template. Please include the following information:
- The version of the project you are using (version number, git commit, etc.)
- Operating system you are using
- The exact, minimal, steps needed to reproduce the issue.
Make a pull request (PR) to add content to the repository. When making a PR, ensure you include:
- A description of what the PR fixes
- Associated issue# and issue title (if applicable)
- The version of the project you are using (version number, git commit, etc.)
- Operating system you are using
See here for more information on using Git and making pull requests.
The source documentation files are located in the version branches in the pipelines-docs/modules/ROOT/pages/
directory. To access them, checkout the op--master, for example op-0.8-master, and navigate to the pipelines-docs/modules/ROOT/pages/ directory.
This repository uses Antora to publish the documentation and we use asciidoc markup language.
The documentation follows the modular documentation guidelines.
There are four types of content:
- proc: Files appended with proc are Procedural modules
- con: Files appended with con are concept modules
- ref: Files appended with ref are reference modules
- Assembly: Files appended with assembly are master docs for a particular section. They are a collection of the modules in a section, and contain a list of
include files
that are a part of that assembly/section.
The index.adoc
file is the first landing page in the rendered version of the documentation.
The following sections describe how you can update existing content, verify, and publish your documentation. It also covers instructions on creating new Version branches.
You must:
- Fork and clone this repository.
- Install Antora.
- Install AsciiDoctor.
- Use AsciiDoc.
To update existing documentation:
-
Checkout the product version branch you want to update, for example:
git checkout op-<version>-master
-
Ensure that your forked repository is in sync with the openshift/pipelines-docs repository:
git fetch <openshift/pipelines-docs-remote> && git reset --hard <openshift/pipelines-docs-remote>/op-<version>-master
-
Checkout a new feature branch with a name relevant to the update you want to make, for example:
git checkout -b update_links
-
Make changes to the documentation.
-
To add a new module to the repository, add the module to the
/modules/ROOT/nav.adoc
file in the following format:* xref:<module_filename.adoc>[<heading_number> <heading>]
. The number of asterisks (*) represents the heading level. -
Push the changes to your fork's feature branch.
-
Submit a PR against
openshift/pipelines-docs/<branch-name>
. -
After the PR is merged, render and publish the documentation set in the master branch.
-
Checkout to the branch from which you are raisng the PR or with the source files for the documentation you want to preview.
-
To build the docs run:
antora local-site.yml && <your_favourite_browser> build/site/index.html
-
Checkout to the master branch
⚠️ If you created documentation for an unpublished version, in thesite.yml
file:- On the line
branches: [<branches>]
, add the name of the branch containing the new version of the documentation. - Edit the
<version>
in thestart_page: <version>@docs::index.adoc
to the latest version number.
- On the line
-
Run the
./docs_build.sh
script. -
Run
$<browser> index.html
to review the generated content. -
Submit a PR against openshift/pipelines-docs repository.
To create a new Version branch and publish it with updated documentation using the CLI:
-
In the fork, checkout to the branch with the documentation for the last version of OpenShift Pipelines, for example, for
op-0.8-master
, run:git fetch --all && git checkout op-0.8-master
-
Reset the branch to be in sync with the
openshift/pipelines-docs
repository.git reset --hard <openshift/pipelines-docs-remote>/op-<version>-master
-
Create a new Version branch for the new version of the documentation, naming the branch in the following format:
op-<version\>-master
.git checkout -B op-<version>-master
-
In the new version branch, edit the
version
inantora.yml
file. This file is specific to each branch and is not present in the Master. -
Push the changes to your fork and submit a PR to create an equivalent branch in the
openshift/pipelines-docs
repository. -
To verify that the new version of the documentation renders properly and publish. Ensure that you update the
site.yml
in themaster
branch as described in the steps. -
To modify the documentation continue from Step 3 in the Modifying existing documentation.
To create a branch using the GUI:
-
Select the latest version branch on which you want to base the new version from the Branch drop down on the top-left.
Note: Do not base your new version branch on the Master. Master does not have the Modules/Root folder that gives you access to the root docs.
-
Click the Branch drop down and type the name of the new version branch you want to create in the Find or Create a branch field, and click **Create branch: to create the branch. This automatically creates a Compare & Pull Request, ignore it.
Examples of behavior that contributes to creating a positive environment include:
- Using welcoming and inclusive language
- Focusing on what is best for the community
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
This Code of Conduct is adapted from the Contributor Covenant.