From daaf5de4710f729456412e9446137a4d1e0c4460 Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sun, 25 Aug 2024 23:22:03 +0200 Subject: [PATCH] Remove superfluous dot. --- changelogs/fragments/318-plugin-filename.yml | 3 +++ src/antsibull_docs/cli/doc_commands/plugin.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/318-plugin-filename.yml diff --git a/changelogs/fragments/318-plugin-filename.yml b/changelogs/fragments/318-plugin-filename.yml new file mode 100644 index 00000000..84f56308 --- /dev/null +++ b/changelogs/fragments/318-plugin-filename.yml @@ -0,0 +1,3 @@ +bugfixes: + - "The output filename used by the ``plugin`` subcommand contained two dots before the ``rst`` extension + (https://github.com/ansible-community/antsibull-docs/issues/317, https://github.com/ansible-community/antsibull-docs/pull/318)." diff --git a/src/antsibull_docs/cli/doc_commands/plugin.py b/src/antsibull_docs/cli/doc_commands/plugin.py index 0096daf1..fd9c159c 100644 --- a/src/antsibull_docs/cli/doc_commands/plugin.py +++ b/src/antsibull_docs/cli/doc_commands/plugin.py @@ -183,7 +183,7 @@ def generate_docs() -> int: collection_name, plugin, output_dir=app_ctx.extra["dest_dir"], - output_filename=f"{plugin_name}_{plugin_type}.{output_format.output_extension}", + output_filename=f"{plugin_name}_{plugin_type}{output_format.output_extension}", output_format=output_format, filename_generator=filename_generator, add_antsibull_docs_version=app_ctx.add_antsibull_docs_version,