all repos — searchix @ ab21d46e298bcf5caf5ef50a12127df89f8caa5f

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: add 'parents' facet to options

Alan Pearce
commit

ab21d46e298bcf5caf5ef50a12127df89f8caa5f

parent

82cfb98df7f9e38f295d3ea1d46b343914947307

1 file changed, 2 insertions(+), 0 deletions(-)

changed files
M internal/importer/options.gointernal/importer/options.go
@@ -4,6 +4,7 @@ import (
"context" "io" "reflect" + "strings" "time" "alin.ovh/x/log"
@@ -180,6 +181,7 @@ Description: nix.Markdown(i.optJSON.Description),
Example: i.convertDocsValue(i.optJSON.Example), RelatedPackages: nix.Markdown(i.optJSON.RelatedPackages), Loc: i.optJSON.Loc, + Parents: strings.Join(i.optJSON.Loc[:len(i.optJSON.Loc)-1], "."), Type: i.optJSON.Type, ImportedAt: time.Now(), }