Skip to content

Conversation

aneta-petrova
Copy link
Member

@aneta-petrova aneta-petrova commented Sep 8, 2025

What changes are you introducing?

Why are you introducing these changes? (Explanation, links to references, issues, etc.)

The goal is to annotate the first paragraph of any module as an "abstract", which is supposed to be a short introduction summarizing the contents of the module. (jhradilek/asciidoctor-dita-vale#110 (comment))

The goal is not to ensure all abstracts are perfect. Only that the content is migrateable.

Follow up on #4189, #4178, and #4175.

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

I used this to extract the modules for each of the guides and this to add the element:

for file in *.adoc; do sed -i '/^= .*/{n;a\[role="_abstract"]
}' "$file"; done

The paragraphs annotated as "abstract" don't need to be perfect abstracts at this point. That's planned for later.

Contributor checklists

  • I am okay with my commits getting squashed when you merge this PR.
  • I am familiar with the contributing guidelines.

Please cherry-pick my commits into:

  • Foreman 3.16/Katello 4.18 (Satellite 6.18)
  • Foreman 3.15/Katello 4.17
  • Foreman 3.14/Katello 4.16 (Satellite 6.17; orcharhino 7.4)
  • Foreman 3.13/Katello 4.15 (EL9 only)
  • Foreman 3.12/Katello 4.14 (Satellite 6.16; orcharhino 7.2 on EL9 only; orcharhino 7.3)
  • Foreman 3.11/Katello 4.13 (orcharhino 6.11 on EL8 only; orcharhino 7.0 on EL8+EL9; orcharhino 7.1 with Leapp)
  • Foreman 3.10/Katello 4.12
  • Foreman 3.9/Katello 4.11 (Satellite 6.15; orcharhino 6.8/6.9/6.10)
  • We do not accept PRs for Foreman older than 3.9.

Review checklists

Tech review (performed by an Engineer who did not author the PR; can be skipped if tech review is unnecessary):

  • The PR documents a recommended, user-friendly path.
  • The PR removes steps that have been made unnecessary or obsolete.
  • Any steps introduced or updated in the PR have been tested to confirm that they lead to the documented end result.

Style review (by a Technical Writer who did not author the PR):

  • The PR conforms with the team's style guidelines.
  • The PR introduces documentation that describes a user story rather than a product feature.

@github-actions github-actions bot added Needs tech review Requires a review from the technical perspective Needs style review Requires a review from docs style/grammar perspective Needs testing Requires functional testing labels Sep 8, 2025
Copy link

github-actions bot commented Sep 8, 2025

The PR preview for 8ca6bc8 is available at theforeman-foreman-documentation-preview-pr-4221.surge.sh

The following output files are affected by this PR:

show diff

show diff as HTML

@aneta-petrova aneta-petrova marked this pull request as ready for review September 8, 2025 10:29
@aneta-petrova aneta-petrova removed Needs tech review Requires a review from the technical perspective Needs testing Requires functional testing labels Sep 8, 2025
@apinnick
Copy link
Contributor

apinnick commented Sep 8, 2025

Good to see the role being added. We will also need to review these paragraphs to ensure that they follow RHSSG guidelines for short descriptions.

Copy link
Contributor

@apinnick apinnick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per Tomas Capek's RHEL docs plan, we need to review the "abstract" sections to ensure that they comply with 'short description' guidelines for DITA migration.

A lead-in sentence followed by a bullet list, for example, cannot be converted to a DITA short description.

@pr-processor pr-processor bot added Waiting on contributor Requires an action from the author Needs re-review and removed Not yet reviewed Waiting on contributor Requires an action from the author labels Sep 8, 2025
@aneta-petrova
Copy link
Member Author

Thanks for the feedback, Avital! You're right that there will be more work required around short descriptions down the line. I created https://issues.redhat.com/browse/SAT-38120 to track this.

In the meantime, I decided to scale back this PR and focus solely on the core goal, which is to ensure a clean asciidoctor-dita-vale report per the specification in https://issues.redhat.com/browse/SAT-36254, https://issues.redhat.com/browse/SAT-36301, and https://issues.redhat.com/browse/SAT-36305.

@aneta-petrova
Copy link
Member Author

@maximiliankolb Can you please take a look here? Adding the [role] element won't break anything for you, will it?

@aneta-petrova
Copy link
Member Author

The direction from downstream says not to add [role] unless the associated descriptions can be reviewed. Closing for now.

@maximiliankolb
Copy link
Contributor

@aneta-petrova Should I check downstream if this works for me?

@aneta-petrova
Copy link
Member Author

@aneta-petrova Should I check downstream if this works for me?

Yes, please :) We just have a couple of things to figure out on our side first but then I (or someone else) will be back with this change.

@maximiliankolb
Copy link
Contributor

Yes, this change would work for me in downstream.

@aneta-petrova aneta-petrova reopened this Sep 15, 2025
@aneta-petrova
Copy link
Member Author

Per Tomas Capek's RHEL docs plan, we need to review the "abstract" sections to ensure that they comply with 'short description' guidelines for DITA migration.

Although both RHEL and Foreman documentation teams are aligning with downstream DITA migration requirements, RHEL documentation plans do not directly affect Foreman documentation upstream.

The purpose of this PR is to contribute to resolving issues reported by the Vale asciidoctor-dita-vale rule set (https://github.com/jhradilek/asciidoctor-dita-vale). We are tracking this effort in https://github.com/theforeman/foreman-documentation/milestone/8, having secured an agreement with the upstream documentation team about the effort in the past few months.

To move this PR, and by extension https://github.com/theforeman/foreman-documentation/milestone/8, forward, I will reopen this PR and continue adding the [role="_abstract"] asciidoc element on these grounds:

  • The preview builds for all affected guides show that adding the [role] element doesn't result in any visible changes in upstream documentation.
  • Maximilian confirmed that adding [role] doesn't break anything for ATIX.
  • The changes introduced here resolve the ShortDescription issue reported by https://github.com/jhradilek/asciidoctor-dita-vale.

I will extend the PR a little bit to account for introductory paragraphs (also called "abstracts" now) that would not be complete sentences or that do not end with a complete sentence. I'm also using this PR to communicate with the asciidoctor-dita-vale's developer to make sure Foreman's needs are met in a way that complies with the DITA migration plan. Subsequent PRs can then focus on improving the abstracts further, which will allow for a separate, focused upstream discussion on the matter.

@aneta-petrova
Copy link
Member Author

Switching to draft while I resolve how to best address our "prerequisites" and "next steps" modules.

@aneta-petrova aneta-petrova marked this pull request as draft September 15, 2025 10:26
@aneta-petrova aneta-petrova removed the Needs style review Requires a review from docs style/grammar perspective label Sep 15, 2025
@aneta-petrova aneta-petrova force-pushed the role-auth-puppet-security branch from b93a2ed to 60fa1d5 Compare September 18, 2025 06:23
@aneta-petrova aneta-petrova force-pushed the role-auth-puppet-security branch from 60fa1d5 to 8ca6bc8 Compare September 18, 2025 06:24
@aneta-petrova aneta-petrova marked this pull request as ready for review September 18, 2025 06:45
@aneta-petrova
Copy link
Member Author

I updated the PR's description with a new summary of changes and also the purpose of this PR.

With this PR, the goal is to ensure that the guides pass the asciidoctor-dita-vale check and that the paragraphs annotated by the abstract role are not incomplete (for example, that they don't end with a colon introducing a list). I'm not trying to make all abstracts perfect because that is planned for another time, another initiative, perhaps even another writer. Whoever works on reviewing the abstracts in the future should be the one to decide what an abstract needs to meet the (still not entirely defined) requirements.

Copy link
Contributor

@maximiliankolb maximiliankolb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

74/119.

Copy link
Contributor

@maximiliankolb maximiliankolb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

115/119. Overall LGTM. Just one issue with the new snippets.

@pr-processor pr-processor bot added the Waiting on contributor Requires an action from the author label Sep 18, 2025
@pr-processor pr-processor bot added Needs re-review and removed Waiting on contributor Requires an action from the author Needs re-review labels Sep 18, 2025
Copy link
Member Author

@aneta-petrova aneta-petrova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did my best to incorporate the results of our conversations @maximiliankolb. Can you please check?

Copy link
Contributor

@maximiliankolb maximiliankolb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Anet, LGTM!

@aneta-petrova aneta-petrova merged commit c268d27 into theforeman:master Sep 19, 2025
9 of 10 checks passed
@aneta-petrova aneta-petrova deleted the role-auth-puppet-security branch September 19, 2025 06:47
aneta-petrova added a commit that referenced this pull request Sep 19, 2025
* Add [role] to introductions in User Auth, Puppet, LB guides
* Add missing introductions
* Update intros that would be incomplete abstracts
* Remove files in LB unsuitable for an abstract

---------

Co-authored-by: Maximilian Kolb <[email protected]>
(cherry picked from commit c268d27)
@aneta-petrova
Copy link
Member Author

Merged to "master" and cherry-picked:

3802ab5..6978f52 3.16 -> 3.16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants