generalize subvar handling

pull/72635/head
Brian Coca 4 years ago
parent cfb9817998
commit 9237c524e9

@ -165,7 +165,7 @@ def add_fragments(doc, filename, fragment_loader, is_module=False, section='DOCU
fragment_yaml = getattr(fragment_class, fragment_var, None)
if fragment_yaml is None:
if fragment_var != 'DOCUMENTATION':
if fragment_var not in FRAGMENTS:
# if it's asking for something specific that's missing, that's an error
unknown_fragments.append(fragment_slug)
continue

Loading…
Cancel
Save