all repos — searchix @ 2f2d86922ba23c4b7f92b115f4e8d26e5058bd23

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

feat: link man pages like how NixOS does it

Alan Pearce
commit

2f2d86922ba23c4b7f92b115f4e8d26e5058bd23

parent

813e5a26b629d4c27b6ce0a8de2e3d04308ef535

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

changed files
M internal/config/structs.gointernal/config/structs.go
@@ -51,12 +51,18 @@ Timeout Duration `comment:"Abort import if it takes longer than this."`
OutputPath string `comment:"(Fetcher=channel) Path under ./result symlink to folder containing {options,packages}.json."` Repo Repository `comment:"Used to generate declaration/definition links"` Programs ProgramsDB `comment:"Used to enable searching for programs in multi-program packages"` + Manpages Manpages `comment:"Used to enable searching for manpages"` JSONDepth int `comment:"Depth at which packages/object object is to be found"` } type ProgramsDB struct { Enable bool `comment:"Enable searching for programs in multi-program packages"` Attribute string `comment:"Nix attribute name (i.e. nix-instantiate) that builds a programs.sqlite file"` +} + +type Manpages struct { + Enable bool `comment:"Enable searching for manpages"` + Path string `comment:"Path to the manpage-urls.json file from repository root"` } func (source *Source) String() string {