It is expected that you will use the GitHub flow for contributing to this repository.
-
Fork the repository into your own GitHub account.
-
Clone the
rh-mobb/documentation
repo locally and configure it to push to your fork, but pull from the upstream repo.git clone https://github.com/rh-mobb/documentation.git mobb-docs cd mobb-docs git remote set-url --push origin [email protected]:<username>/documentation.git
-
Create a feature branch
git checkout -b my-feature-branch
-
Work on the Code
-
Commit and push
git add . git commit -sm 'fix typo in /index.md' git push origin my-feature-branch
-
Create a Pull request at https://github.com/rh-mobb/documentation
The docs in this repo follow the structure of /content/docs/[Section]/[Topic]/index.md
.
For example /content/docs/aro/add-infra-nodes/index.md
.
This becomes the URL of your page, so keep the Section and Topic descriptive but short.
Docs that follow this structure will be automatically added to the content menu (left side of the rendered website) based on their title (set in front matter).
These fields are recommended and are used to auto-generate portions of the content body. They belong at the top of each article that you publish.
- Date - The original date of content creation, in YYYY-MM-DD format
- Title - This will be displayed page title
- Tags - The tags associated with your page, they will display alphabetically atop of the page regardless of the order definied in the front amtter
- Authors - Anyone who has edited this page
Example:
---
date: '2022-08-17'
title: Adding infrastructure nodes to an ARO cluster
tags: ["ARO", "Azure"]
authors:
- Paul Czarkowski
---
-
Create a new feature branch in your forked copy of the repository.
-
Create your dir structure (
/content/docs/[Section]/[Topic]/index.md
) -
Write your Doc with the proper front matter (Title, Date, Tags)
---
date: "2023-01-01"
title: "Creating s3 buckets in ROSA using ACK"
tags: ["rosa","s3", "ack"]
authors:
- My Name
---
-
Update
/content/docs/_index.md
to include your new document. -
Update
/content/docs/[Section]/_index.md
to include your new document. -
To verify your changes you can run
make preview
to preview the site locally at http://localhost:1313/ -
Submit PR
Note: Most documents will fit inside an existing Section, if you feel like you need to create a new one, speak to your team leads first.
In order to create a landing page for your new section you will need to create a /docs/[Section]/_index.md
which is a chapter page in our useage. This page will create the section in the drop down menu as well as display as a landing page for the new section. The front matter for the chapter pages should follow the format below
---
date: "2023-01-01"
title: "DevSecFinOps"
tags: ["devops", "finops", "devsecops"]
authors:
- My Name
---
Note: you can add a weight
field to override the default alphabetical sorting for menu items on the site's navigation pane.
- Create the Directory structure (
/content/docs/<highlevel_topic>/_index.md
<subject_dir>/index.md) - Create your chapter page (_index.md)
- Create your doc page (index.md)
- Add your doc to the home page (/content/docs/_index.md) creating a new section on the page for your new topic
- submit PR
The strategy here is to keep our taxonomy simple and helpful for traversing the site and finding docs relevant to a product or topic. Feel free as we expand our docs to create new tags by simply adding them to the front matter of your page. However please keep in mind simplicity.
- ACM
- ACS
- ARO
- AWS
- Azure
- Cost
- GCP
- GitOps
- GPU
- Observability
- OCP
- OSD
- PrivateLink
- Quickstarts
- ROSA
- STS