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, 35 insertions(+), 0 deletions(-)

changed files
M defaults.tomldefaults.toml
@@ -114,6 +114,13 @@ Enable = false
# Nix attribute name (i.e. nix-instantiate) that builds a programs.sqlite file Attribute = '' +# Used to enable searching for manpages +[Importer.Sources.darwin.Manpages] +# Enable searching for manpages +Enable = false +# Path to the manpage-urls.json file from repository root +Path = '' + [Importer.Sources.home-manager] # Human-readable name of source for generating links Name = 'Home Manager'
@@ -156,6 +163,13 @@ Enable = false
# Nix attribute name (i.e. nix-instantiate) that builds a programs.sqlite file Attribute = '' +# Used to enable searching for manpages +[Importer.Sources.home-manager.Manpages] +# Enable searching for manpages +Enable = false +# Path to the manpage-urls.json file from repository root +Path = '' + [Importer.Sources.nixos] # Human-readable name of source for generating links Name = 'NixOS'
@@ -198,6 +212,13 @@ Enable = false
# Nix attribute name (i.e. nix-instantiate) that builds a programs.sqlite file Attribute = '' +# Used to enable searching for manpages +[Importer.Sources.nixos.Manpages] +# Enable searching for manpages +Enable = false +# Path to the manpage-urls.json file from repository root +Path = '' + [Importer.Sources.nixpkgs] # Human-readable name of source for generating links Name = 'Nix Packages'
@@ -240,6 +261,13 @@ Enable = true
# Nix attribute name (i.e. nix-instantiate) that builds a programs.sqlite file Attribute = 'programs.sqlite' +# Used to enable searching for manpages +[Importer.Sources.nixpkgs.Manpages] +# Enable searching for manpages +Enable = true +# Path to the manpage-urls.json file from repository root +Path = '/doc/manpage-urls.json' + [Importer.Sources.nur] # Human-readable name of source for generating links Name = 'NUR'
@@ -281,3 +309,10 @@ # Enable searching for programs in multi-program packages
Enable = false # Nix attribute name (i.e. nix-instantiate) that builds a programs.sqlite file Attribute = '' + +# Used to enable searching for manpages +[Importer.Sources.nur.Manpages] +# Enable searching for manpages +Enable = false +# Path to the manpage-urls.json file from repository root +Path = ''