Skip to content

[RHAcs] [Docs] [rhacs-docs-main] ROX-33164: Fixing DITA errors in cli/command-reference/roxctl-completion.adoc#111776

Open
agantony wants to merge 1 commit into
openshift:rhacs-docs-mainfrom
agantony:ROX33164-dita-rework-installing-roxctl-completion
Open

[RHAcs] [Docs] [rhacs-docs-main] ROX-33164: Fixing DITA errors in cli/command-reference/roxctl-completion.adoc#111776
agantony wants to merge 1 commit into
openshift:rhacs-docs-mainfrom
agantony:ROX33164-dita-rework-installing-roxctl-completion

Conversation

@agantony
Copy link
Copy Markdown
Contributor

Version(s):
4.9+

Issue:
https://redhat.atlassian.net/browse/ROX-33164

Link to docs preview:

SME review: NA

Additional information:

  • Cherrypick to:
    • rhacs-docs-4.10
    • rhacs-docs-4.9

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label May 16, 2026
@openshift-ci-robot
Copy link
Copy Markdown

openshift-ci-robot commented May 16, 2026

@agantony: This pull request references ROX-33164 which is a valid jira issue.

Details

In response to this:

Version(s):
4.9+

Issue:
https://redhat.atlassian.net/browse/ROX-33164

Link to docs preview:

SME review: NA

Additional information:

  • Cherrypick to:
    • rhacs-docs-4.10
    • rhacs-docs-4.9

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@agantony agantony added RHACS Label for RHACS related PRs that go in the rhacs-docs branch rhacs-docs-4.9 rhacs-docs-4.10 and removed jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. labels May 16, 2026
@openshift-ci openshift-ci Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 16, 2026
@ocpdocs-previewbot
Copy link
Copy Markdown

🤖 Sat May 16 10:38:35 - Prow CI generated the docs preview:
https://111776--ocpdocs-pr.netlify.app
Complete list of updated preview URLs: artifacts/updated_preview_urls.txt

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 16, 2026

@agantony: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@agantony
Copy link
Copy Markdown
Contributor Author

agantony commented May 16, 2026

📋 PR Review Summary

This PR fixes DITA compatibility errors in the roxctl completion CLI reference by extracting inline assembly content into proper modules.

Changes Overview

Files Changed: 5 (3 new, 2 modified) | +60/-22 lines

File Type Change
cli/command-reference/roxctl-completion.adoc Assembly Removed inline content, added module includes
modules/roxctl-completion-overview.adoc New CONCEPT Extracted parent module
modules/roxctl-completion-usage.adoc New REFERENCE Extracted usage syntax
modules/roxctl-completion-supported-shell-types.adoc New REFERENCE Extracted shell types table
modules/options-inherited-from-the-parent-command.adoc Modified Added [role="_abstract"]

🔍 Step-by-Step Review Guide

Main Assembly Page

📄 Preview: https://111776--ocpdocs-pr.netlify.app/openshift-acs/latest/cli/command-reference/roxctl-completion.html

Review checklist:

  • Assembly renders without errors
  • Improved abstract displays: "Use the `roxctl completion` command to generate shell completion scripts for Bash, Zsh, Fish, and PowerShell."
  • TOC shows hierarchy:
    • roxctl completion (H2)
      • roxctl completion usage (H3)
      • Supported shell types (H3)
    • Options inherited from parent command (H2)
  • No duplicate or missing content

Overview Module (Extracted)

📄 Preview: https://111776--ocpdocs-pr.netlify.app/openshift-acs/latest/cli/command-reference/roxctl-completion.html#roxctl-completion-overview_roxctl-completion

Review:

  • Renders as H2
  • Abstract: "Generate shell completion scripts."
  • Content matches original inline description
  • Module type: CONCEPT

Usage Module (Extracted)

📄 Preview: https://111776--ocpdocs-pr.netlify.app/openshift-acs/latest/cli/command-reference/roxctl-completion.html#roxctl-completion-usage_roxctl-completion

Review:

  • Renders as H3 under overview
  • Abstract: "Usage syntax for the `roxctl completion` command."
  • Code block displays: $ roxctl completion [bash|zsh|fish|powershell]
  • Module type: REFERENCE

Supported Shell Types Module (Extracted)

📄 Preview: https://111776--ocpdocs-pr.netlify.app/openshift-acs/latest/cli/command-reference/roxctl-completion.html#roxctl-completion-supported-shell-types_roxctl-completion

Review:

  • Renders as H3 under overview
  • Abstract: "Shell types supported by the `roxctl completion` command."
  • Table displays correctly with 4 rows (bash, zsh, fish, powershell)
  • Descriptions match original content
  • Module type: REFERENCE

Inherited Options Module (Modified)

📄 Preview: https://111776--ocpdocs-pr.netlify.app/openshift-acs/latest/cli/command-reference/roxctl-completion.html#options-inherited-from-the-parent-command_roxctl-completion

Review:

  • Renders as H2
  • [role="_abstract"] added to first paragraph
  • Abstract displays correctly
  • Options table renders correctly

✅ DITA Compliance Improvements

Before After
❌ Inline assembly description ✅ Extracted to overview module
❌ Inline Usage section ✅ Extracted to usage module
❌ Inline shell types table ✅ Extracted to reference module
❌ Generic assembly description Improved abstract (mentions all shell types)
⚠️ Missing abstract on shared module ✅ Abstract role added

Structure Before (Non-Modular)

Assembly
├── Inline description
├── Inline usage
└── Inline table

Structure After (Modular)

Assembly (with improved abstract)
├── Overview (CONCEPT, +1)
│   ├── Usage (REFERENCE, +2)
│   └── Supported shell types (REFERENCE, +2)
└── Options inherited (REFERENCE, +1)

🎯 Key Improvements

  1. Better assembly abstract:

    • Before: "Generate shell completion scripts."
    • After: "Use the `roxctl completion` command to generate shell completion scripts for Bash, Zsh, Fish, and PowerShell."
  2. Proper modularization: All inline content extracted to modules

  3. Consistent structure: Follows pattern from [RHACS] [Docs] [rhacs-docs-main] ROX-33164: Fixing DITA errors in cli/installing-the-roxctl-cli.adoc #111774 and [RHACS] [Docs] [rhacs-docs-main] ROX-33164: Fixing DITA errors in cli/command-reference/roxctl-declarative-config.adoc #111775

  4. Shared module improvement: Added abstract role to options-inherited module (benefits all roxctl commands)


🎯 Review Priority

High Priority

  • ✅ Assembly renders with proper hierarchy
  • ✅ 3 new modules created successfully
  • ✅ Content matches original (no loss)
  • ✅ Improved abstract is accurate

Medium Priority

  • ✅ Usage syntax displays correctly
  • ✅ Shell types table renders properly
  • ✅ Abstract roles present

📝 Full Review Guide

Comprehensive review guide with detailed checklists available at: /tmp/pr-111776-review-guide.md


✨ This PR is Clean!

Compared to related PRs:

This is the cleanest and simplest DITA refactoring PR in the series!


Related: #111774, #111775 (same pattern)
Ready for review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RHACS Label for RHACS related PRs that go in the rhacs-docs branch rhacs-docs-4.9 rhacs-docs-4.10 size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants