Skip to content

Commit

Permalink
Extend deprecation/removal note that collections can be installed man…
Browse files Browse the repository at this point in the history
…ually after removal. (#371)
  • Loading branch information
felixfontein authored Jan 21, 2025
1 parent 5f80afb commit 237e176
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/371-removal-hint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- "Extend deprecation/removal note that collections can be installed manually after removal (https://github.com/ansible-community/antsibull-docs/pull/371)."
6 changes: 6 additions & 0 deletions src/antsibull_docs/cli/doc_commands/_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,12 @@ def _collect_removal_sentences(
if reason_text:
sentences.append(reason_text)

if reason not in ("renamed", "deprecated"):
sentences.append(
"Once removed, you can still install the collection manually"
f" with C(ansible-galaxy collection install {collection})."
)

if sentences and discussion:
sentences.append(
f"See the L(discussion thread, {discussion}) for more information."
Expand Down

0 comments on commit 237e176

Please sign in to comment.