docs: fix incorrect option rendering...

for first children of nested options.

thanks @yorickvP for reporting this in
https://github.com/nix-community/dream2nix/pull/987
This commit is contained in:
phaer 2024-07-04 10:17:01 +02:00
parent 1b5e01219a
commit 69d78dbcad

View File

@ -54,7 +54,7 @@ def preprocess_options(options, module_name):
cursor[part] = dict(**option, children={})
else:
cursor[part] = dict(children=dict())
cursor = cursor[part]
cursor = cursor[part]["children"]
else:
cursor = cursor[part]["children"]
return OrderedDict(sorted(tree.items(), key=lambda i: sort_options(i, module_name)))