Skip to content

Commit baf5825

Browse files
authored
Merge branch 'theforeman:master' into ansible-diff-mode-doc
2 parents 99ec6d6 + 84a3b59 commit baf5825

File tree

1,742 files changed

+15073
-9073
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,742 files changed

+15073
-9073
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Report issue
3+
about: Report issues in upstream Foreman/Katello documentation
4+
title: ''
5+
labels: direct user feedback
6+
assignees: ''
7+
8+
---
9+
10+
#### URL of the document
11+
12+
#### Optional: Copy-paste the text you are reading
13+
14+
#### Describe the issue
15+
16+
#### Anything else to add? (context, suggestions for a fix, etc.)

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,32 @@
44

55
#### Anything else to add? (Considerations, potential downsides, alternative solutions you have explored, etc.)
66

7-
#### Checklists
7+
#### Contributor checklists
88

99
* [x] I am okay with my commits getting squashed when you merge this PR.
1010
* [ ] I am familiar with the [contributing](https://github.com/theforeman/foreman-documentation/blob/master/CONTRIBUTING.md) guidelines.
1111

1212
Please cherry-pick my commits into:
1313

14-
* [ ] Foreman 3.14/Katello 4.16
14+
* [ ] Foreman 3.16/Katello 4.18 (Satellite 6.18)
15+
* [ ] Foreman 3.15/Katello 4.17
16+
* [ ] Foreman 3.14/Katello 4.16 (Satellite 6.17)
1517
* [ ] Foreman 3.13/Katello 4.15 (EL9 only)
16-
* [ ] Foreman 3.12/Katello 4.14 (Satellite 6.16)
18+
* [ ] Foreman 3.12/Katello 4.14 (Satellite 6.16; orcharhino 7.2 on EL9 only; orcharhino 7.3)
1719
* [ ] Foreman 3.11/Katello 4.13 (orcharhino 6.11 on EL8 only; orcharhino 7.0 on EL8+EL9; orcharhino 7.1 with Leapp)
1820
* [ ] Foreman 3.10/Katello 4.12
1921
* [ ] Foreman 3.9/Katello 4.11 (Satellite 6.15; orcharhino 6.8/6.9/6.10)
20-
* [ ] Foreman 3.8/Katello 4.10
21-
* [ ] Foreman 3.7/Katello 4.9 (Satellite 6.14)
22-
* We do not accept PRs for Foreman older than 3.7.
22+
* We do not accept PRs for Foreman older than 3.9.
23+
24+
#### Review checklists
25+
26+
Tech review (performed by an Engineer who did not author the PR; can be skipped if tech review is unnecessary):
27+
28+
* [ ] The PR documents a recommended, user-friendly path.
29+
* [ ] The PR removes steps that have been made unnecessary or obsolete.
30+
* [ ] Any steps introduced or updated in the PR have been tested to confirm that they lead to the documented end result.
31+
32+
Style review (by a Technical Writer who did not author the PR):
33+
34+
* [ ] The PR conforms with the team's style guidelines.
35+
* [ ] The PR introduces documentation that describes a user story rather than a product feature.

.github/workflows/deploy.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
image: quay.io/ivanhorvath/ccutil:amazing
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v5
2626

2727
- name: Compile html-single
2828
run: make -C guides ccutil -j ${{ env.MAKE_J }}
@@ -45,7 +45,7 @@ jobs:
4545
working-directory: .
4646

4747
- name: Checkout
48-
uses: actions/checkout@v4
48+
uses: actions/checkout@v5
4949

5050
- name: Setup Ruby
5151
uses: ruby/setup-ruby@v1
@@ -102,7 +102,7 @@ jobs:
102102
working-directory: guides
103103
steps:
104104
- name: Checkout
105-
uses: actions/checkout@v4
105+
uses: actions/checkout@v5
106106
with:
107107
ref: ${{ github.base_ref }}
108108

@@ -130,11 +130,16 @@ jobs:
130130
build-web:
131131
runs-on: ubuntu-24.04
132132
steps:
133-
- name: Checkout
134-
uses: actions/checkout@v4
133+
- name: Checkout master
134+
if: github.event_name != 'pull_request' || github.base_ref != 'master'
135+
uses: actions/checkout@v5
135136
with:
136137
ref: master
137138

139+
- name: Checkout PR
140+
if: github.event_name == 'pull_request' && github.base_ref == 'master'
141+
uses: actions/checkout@v5
142+
138143
- name: Setup Ruby
139144
uses: ruby/setup-ruby@v1
140145
with:
@@ -180,13 +185,13 @@ jobs:
180185

181186
- name: Download web (only for master)
182187
if: github.ref == 'refs/heads/master'
183-
uses: actions/download-artifact@v4
188+
uses: actions/download-artifact@v5
184189
with:
185190
name: foreman-docs-web-${{ env.BRANCH_NAME }}
186191
path: public
187192

188193
- name: Download HTML
189-
uses: actions/download-artifact@v4
194+
uses: actions/download-artifact@v5
190195
with:
191196
name: foreman-docs-html-${{ env.BRANCH_NAME }}
192197
path: public/${{ env.BRANCH_NAME }}

.github/workflows/linkchecker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
working-directory: guides
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2424

2525
- name: Setup Ruby
2626
uses: ruby/setup-ruby@v1

.github/workflows/preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion != 'success'
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616

1717
- name: Download metadata artifact
1818
run: gh run download '${{ github.event.workflow_run.id }}' -n pr
@@ -32,7 +32,7 @@ jobs:
3232
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
3333
runs-on: ubuntu-latest
3434
steps:
35-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v5
3636

3737
- name: Download metadata artifact
3838
run: gh run download '${{ github.event.workflow_run.id }}' -n pr

.github/workflows/unused.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Unused modules
3+
on:
4+
pull_request:
5+
paths:
6+
- 'guides/**.adoc'
7+
- '.github/workflows/unused.yml'
8+
9+
jobs:
10+
vale:
11+
name: Unused modules
12+
runs-on: ubuntu-24.04
13+
steps:
14+
- uses: actions/checkout@v5
15+
- name: Install Asciidoctor
16+
run: sudo apt-get install -y asciidoctor
17+
- name: Find unused modules
18+
run: ./guides/scripts/find_unused_modules

.github/workflows/vale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: linter
1414
runs-on: ubuntu-24.04
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
1717
- name: Install Asciidoctor
1818
run: sudo apt-get install -y asciidoctor
1919
- uses: errata-ai/vale-action@v2

CONTRIBUTING.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ We respect each others time and energy spent on Foreman documentation.
1212
* help less experienced community members with git, Github, PRs, asciidoc, and asciidoctor.
1313
* expect a basic effort in contributions, including the [pull request template](PULL_REQUEST_TEMPLATE.md) being filled out.
1414
* only merge PRs if the Github Actions are green.
15-
* only merge PRs that have the `style review done` and `tech review done` labels set, indicating that a technical author has provided editorial review and a subject matter expert (SME) has provided technical review.
1615
For an overview of what to expect from editorial review, see [Red Hat peer review guide for technical documentation](https://redhat-documentation.github.io/peer-review/#checklist).
1716
* read the proposed change and make friendly and helpful comments.
1817
* ping community members with more experience if they are unsure about specific details.
1918
* try to review PRs in a timely manner.
20-
* keep non-trivial PRs open for at least 24 hours to allow for input from the community.
19+
* keep non-trivial PRs open for at least 24 hours (72 hours if over the weekend) to allow for input from the community.
20+
Examples of trivial PRs: Fixing a typo, fixing markup, or fixing links.
21+
Non-trivial PRs might not only benefit from additional review but they also represent an opportunity for community members to ask questions and learn.
2122

2223
## Contributors
2324

@@ -46,6 +47,7 @@ See [LICENSE](LICENSE).
4647
* [ ] When creating my PR, I select all branches I want my change to get cherry-picked to.
4748
* [ ] I am familiar to proper capitalization for project-specific terminology.
4849
See [Capitalization](#Capitalization).
50+
* [ ] The first line of the file contains the modular docs content type attribute, for example, `:_mod-docs-content-type: ASSEMBLY` for assemblies.
4951

5052
## Capitalization
5153

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
SHELL := /bin/bash
22
DEST := result
33
PORT := 5000
4-
VERSION_LINKS := 3.14 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0 2.5 2.4
4+
VERSION_LINKS := 3.16 3.15 3.14 3.13 3.12 3.11 3.10 3.9 3.8 3.7 3.6 3.5 3.4 3.3 3.2 3.1 3.0 2.5 2.4
55

66
.PHONY: all clean html web compile serve prep FORCE toc
77

README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Foreman documentation
22

3-
This git repository contains the following documentation:
3+
This Git repository contains the following documentation:
44

55
* Official documentation for the Katello project
66
* PoC of improving documentation for the Foreman project. See [this milestone](https://github.com/theforeman/foreman-documentation/milestone/3) to check the progress.
@@ -16,32 +16,35 @@ Please, familiarize yourself with [CONTRIBUTING](CONTRIBUTING.md) and [Contribut
1616

1717
### Foreman guides
1818

19-
This is a tree of documentation based on Red Hat Satellite 6 official books.
20-
See [README in the `guides/` subdirectory](guides/README.md) for more information.
19+
For information on working with the Foreman guides, see the [README in the `guides/` subdirectory](guides/README.md).
2120

2221
### Static site
2322

2423
The landing page for [docs.theforeman.org](https://docs.theforeman.org) is available as a generated static site.
2524
The static content is always built from the `master` branch.
2625
See [README in the `web/` subdirectory](web/README.md) for more information.
2726

28-
## Testing locally
27+
## Testing the site locally
2928

30-
To build both static site and guides for easy local testing, there is the global `Makefile` in the root directory with the following targets:
29+
To build both the static site and the guides for easy local testing, a global `Makefile` is provided in the root directory with the following targets:
3130

3231
* `html`: builds HTML guides with all contexts (`foreman-el`, `foreman-deb`, `katello`, `satellite`, and `orcharhino`)
3332
* `web`: builds static site using the `nanoc` tool
3433
* `compile`: compiles all content into a single directory `./result`
3534
* `serve`: serves the result directory via a python web server (the default target)
3635

37-
To test the whole site locally, perform `make serve` command and open up `http://localhost:5000`.
36+
To use the `Makefile`, you must first install the `gcc`, `gcc-c++`, and `ruby-devel` packages.
37+
Then, to test the entire site locally, perform `make serve` command and open up `http://localhost:5000`.
3838
Use `PORT=5008` to change the web server port (5000 by default).
39-
It builds all contexts so the initial build can be slow, make sure to use `-j` option for faster builds on modern multi-core machines.
40-
Stable versions are symlink to the nightly (current) version, this can cause issues for deleted (or renamed) guides.
39+
This builds all contexts, so the initial build might be slow.
40+
For faster builds on modern multi-core machines, use the `-j` option.
41+
Stable versions are symlinks to the nightly (current) version, which can cause issues for deleted (or renamed) guides.
42+
43+
For instructions on locally building only the guides, see [Building locally](https://github.com/theforeman/foreman-documentation/blob/master/guides/README.md#building-locally).
4144

4245
## Deployment
4346

44-
Github actions perform HTML (with link validation) and WEB artifact creation and if succeeded and branch is master or stable, artifacts are downloaded, extracted and deployed (commited into gh-pages). Deployment does not delete files, in order to remove some unwanted content, manual deletion and push into gh-pages must be performed.
47+
GitHub actions perform HTML (with link validation) and WEB artifact creation and if succeeded and branch is master or stable, artifacts are downloaded, extracted and deployed (commited into gh-pages). Deployment does not delete files, in order to remove some unwanted content, manual deletion and push into gh-pages must be performed.
4548

4649
When a commit is pushed into `master`:
4750

@@ -55,14 +58,14 @@ When a commit is pushed into `X.Y`:
5558
* HTML artifact is downloaded and copied into `/X.Y`.
5659
* Changes are pushed into `gh-pages` branch.
5760

58-
## Branching new release
61+
## Branching a new release
5962

6063
* On `master`, pull the latest changes and create a new `X.Y` branch.
61-
* On `X.Y`:
64+
* On the `X.Y` branch:
6265
* Update `guides/common/attributes.adoc`.
63-
* Set `DocState` to `unsupported`.
66+
* Set `DocState` to `RC`.
6467
* Set `ProjectVersion` to `X.Y` and set the matching `KatelloVersion`.
65-
* Push into `X.Y` branch.
68+
* Push into the `X.Y` branch.
6669
* Notify the Doc team on the [TheForeman Doc chat](https://matrix.to/#/#theforeman-doc:matrix.org) Matrix channel.
6770
* On `master`:
6871
* Update `ProjectVersionPrevious` to `X.Y` in `guides/common/attributes.adoc`.
@@ -71,7 +74,6 @@ When a commit is pushed into `X.Y`:
7174
* Change `katello` to the right version.
7275
* Change `Nightly` in titles to the appropriate version.
7376
* Remove guides which aren't ready for stable branches.
74-
* Create a copy of [/web/releases/nightly.adoc](https://github.com/theforeman/foreman-documentation/tree/master/web/releases/nightly.adoc) as `X.Y.adoc` and edit it accordingly. Remove guides which aren't ready for stable branches.
7577
* Test the changes by following the instructions in [/web/README.md](https://github.com/theforeman/foreman-documentation/tree/master/web/README.md) to deploy the website locally.
7678
* Add the new Foreman version to [/.github/PULL_REQUEST_TEMPLATE.md](https://github.com/theforeman/foreman-documentation/blob/master/.github/PULL_REQUEST_TEMPLATE.md).
7779
* Update `VERSION_LINKS` in the root `Makefile`.
@@ -80,4 +82,4 @@ When a commit is pushed into `X.Y`:
8082

8183
## License
8284

83-
See LICENSE files in individual subdirectories.
85+
See LICENSE files in the respective subdirectories.

0 commit comments

Comments
 (0)