[PR #10280/41855418 backport][stable-11] CI: add checks for code block types in extra docs (#10314)

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.

(cherry picked from commit 41855418bb)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot] 2025-06-30 20:25:49 +02:00 committed by GitHub
commit a4a1f1240e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]