From 41855418bbb01b4daccc5352678d5a3a28bd15ae Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Mon, 30 Jun 2025 20:16:22 +0200 Subject: [PATCH] CI: add checks for code block types in extra docs (#10280) * Add checks for code block types in extra docs. * Add 'ini' and 'text' to allowlist. --- antsibull-nox.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/antsibull-nox.toml b/antsibull-nox.toml index 76e8947a02..1d64a3c79a 100644 --- a/antsibull-nox.toml +++ b/antsibull-nox.toml @@ -16,6 +16,20 @@ [sessions.docs_check] validate_collection_refs="all" +codeblocks_restrict_types = [ + "ansible-output", + "console", + "ini", + "json", + "python", + "shell", + "yaml", + "yaml+jinja", + "text", +] +codeblocks_restrict_type_exact_case = true +codeblocks_allow_without_type = false +codeblocks_allow_literal_blocks = false [sessions.license_check]