From dd4db1ef0db4997010ff42987c3f1fbd9fda37f3 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sun, 19 Jan 2025 15:51:15 +0100 Subject: [PATCH] Extend deprecation/removal note that collections can be installed manually after removal. --- changelogs/fragments/371-removal-hint.yml | 2 ++ src/antsibull_docs/cli/doc_commands/_build.py | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100644 changelogs/fragments/371-removal-hint.yml diff --git a/changelogs/fragments/371-removal-hint.yml b/changelogs/fragments/371-removal-hint.yml new file mode 100644 index 00000000..a5413d15 --- /dev/null +++ b/changelogs/fragments/371-removal-hint.yml @@ -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)." diff --git a/src/antsibull_docs/cli/doc_commands/_build.py b/src/antsibull_docs/cli/doc_commands/_build.py index afdcac9c..b2c617d9 100644 --- a/src/antsibull_docs/cli/doc_commands/_build.py +++ b/src/antsibull_docs/cli/doc_commands/_build.py @@ -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."