From ba06bdf8a32bcfa7f7510a50e36546e67181cb3c Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sat, 27 Jun 2026 07:29:12 +0200 Subject: [PATCH] fix: hidden family in dynamic family with a sub root --- src/rougail/output_doc/collect.py | 2 +- tests/root/00_file.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/rougail/output_doc/collect.py b/src/rougail/output_doc/collect.py index bc006a2da..3d9052816 100644 --- a/src/rougail/output_doc/collect.py +++ b/src/rougail/output_doc/collect.py @@ -440,7 +440,7 @@ class Collect(_ToString): path = family.path(uncalculated=True) informations = {} if not self._collect(family, informations, family_type=family_type): - return False, [] + return False if family_type == "sequence": informations.setdefault("help", []).append( _("This family contains lists of variable blocks") diff --git a/tests/root/00_file.yml b/tests/root/00_file.yml index 3eab595be..d78d9d054 100644 --- a/tests/root/00_file.yml +++ b/tests/root/00_file.yml @@ -46,4 +46,9 @@ a_dynamic_{{ identifier }}: - family4 a_variable: a_value # a variable + + an_hidden_family: + hidden: true + + an_hidden_variable: ...