[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
All checks were successful
Check flake syntax / flake-check (push) Successful in 4m16s
This commit is contained in:
@@ -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
|
||||||
'');
|
'');
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user