mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-27 14:15:54 +02:00
docs: enable on darwin
Now that sandbox issue has been fixed in nix. We can compile and serve docs.
This commit is contained in:
parent
175b7a47de
commit
708c601e0d
1 changed files with 26 additions and 33 deletions
|
@ -100,41 +100,34 @@ let
|
||||||
}).optionsJSON;
|
}).optionsJSON;
|
||||||
|
|
||||||
in
|
in
|
||||||
lib.fix (
|
lib.fix (self: {
|
||||||
self:
|
inherit options-json;
|
||||||
{
|
inherit (pkgs) nixos-render-docs;
|
||||||
|
|
||||||
|
gfm-alerts-to-admonitions = pkgs.python3.pkgs.callPackage ./gfm-alerts-to-admonitions { };
|
||||||
|
|
||||||
|
man-docs = pkgs.callPackage ./man {
|
||||||
inherit options-json;
|
inherit options-json;
|
||||||
inherit (pkgs) nixos-render-docs;
|
inherit (self) lib-docs;
|
||||||
|
};
|
||||||
|
|
||||||
gfm-alerts-to-admonitions = pkgs.python3.pkgs.callPackage ./gfm-alerts-to-admonitions { };
|
lib-docs = pkgs.callPackage ./lib {
|
||||||
|
inherit nixvim lib;
|
||||||
|
};
|
||||||
|
|
||||||
man-docs = pkgs.callPackage ./man {
|
search = nuschtosSearch.packages.mkSearch {
|
||||||
inherit options-json;
|
optionsJSON = options-json + "/share/doc/nixos/options.json";
|
||||||
inherit (self) lib-docs;
|
urlPrefix = "https://github.com/nix-community/nixvim/tree/main";
|
||||||
};
|
title = "Nixvim options search";
|
||||||
|
baseHref = "/";
|
||||||
|
};
|
||||||
|
|
||||||
lib-docs = pkgs.callPackage ./lib {
|
docs = pkgs.callPackage ./mdbook {
|
||||||
inherit nixvim lib;
|
inherit evaledModules transformOptions;
|
||||||
};
|
inherit (self) search lib-docs;
|
||||||
}
|
};
|
||||||
// lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
|
|
||||||
# NuschtOS/search does not seem to work on darwin
|
|
||||||
search = nuschtosSearch.packages.mkSearch {
|
|
||||||
optionsJSON = options-json + "/share/doc/nixos/options.json";
|
|
||||||
urlPrefix = "https://github.com/nix-community/nixvim/tree/main";
|
|
||||||
title = "Nixvim options search";
|
|
||||||
baseHref = "/";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Do not check if documentation builds fine on darwin as it fails:
|
serve-docs = pkgs.callPackage ./server {
|
||||||
# > sandbox-exec: pattern serialization length 69298 exceeds maximum (65535)
|
inherit (self) docs;
|
||||||
docs = pkgs.callPackage ./mdbook {
|
};
|
||||||
inherit evaledModules transformOptions;
|
})
|
||||||
inherit (self) search lib-docs;
|
|
||||||
};
|
|
||||||
|
|
||||||
serve-docs = pkgs.callPackage ./server {
|
|
||||||
inherit (self) docs;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue