[nix] change .#docs to just start browser and use .#docsDev for local development
All checks were successful
Check flake syntax / flake-check (push) Successful in 4m16s

This commit is contained in:
2025-01-20 13:09:16 +01:00
parent b381173dad
commit a6b1994938

View File

@@ -206,6 +206,15 @@ in (utils.lib.eachSystem (builtins.filter filter_system utils.lib.defaultSystems
docs = { docs = {
type = "app"; type = "app";
program = builtins.toString (pkgs.writeShellScript "docs" '' program = builtins.toString (pkgs.writeShellScript "docs" ''
${pkgs.xdg-utils}/bin/xdg-open "${self.packages.${system}.docs}/share/doc/index.html"
'');
};
docsDev = {
type = "app";
program = builtins.toString (pkgs.writeShellScript "docs" ''
echo "needs to run from infrastuctre root folder"
${pkgs.mdbook}/bin/mdbook serve --open ./doc ${pkgs.mdbook}/bin/mdbook serve --open ./doc
''); '');
}; };