feat: show top-level option set as a separate facet
1 file changed, 6 insertions(+), 0 deletions(-)
changed files
M internal/importer/options.go → internal/importer/options.go
@@ -177,6 +177,11 @@ if len(loc) > 1 { parents = strings.Join(loc[:len(loc)-1], ".") } + var optionSet string + if len(loc) >= 1 { + optionSet = loc[0] + } + // log.Debug("sending option", "name", kv.Key) if !yield(nix.Option{ Name: kv.Key,@@ -188,6 +193,7 @@ Example: exampleDocs, RelatedPackages: nixdocs.Markdown(relatedPackages), Loc: loc, Parents: parents, + OptionSet: optionSet, Type: optType, ImportedAt: time.Now(), }) {