add formatter, update readme, update site on change to the config #25

Merged
esy merged 17 commits from mkdocs-wiki into main 2024-08-26 19:43:36 +00:00
Showing only changes of commit 6e45b2a86b - Show all commits

View file

@ -6,29 +6,35 @@
alejandra.url = "github:kamadorueda/alejandra/3.0.0";
};
outputs = { self, nixpkgs, utils, alejandra}: utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
in {
packages.formatter = alejandra.defaultPackage.${system};
defaultPackage = pkgs.stdenv.mkDerivation {
name = "skynet-wiki";
src = self;
buildInputs = [
pkgs.python3Packages.mkdocs
pkgs.python3Packages.mkdocs-material
];
buildPhase = "mkdocs build";
installPhase = "mkdir -p $out; cp -R site/* $out;";
};
outputs = {
self,
nixpkgs,
utils,
alejandra,
}:
utils.lib.eachDefaultSystem (
system: let
pkgs = nixpkgs.legacyPackages."${system}";
in {
formatter = alejandra.defaultPackage.${system};
defaultPackage = pkgs.stdenv.mkDerivation {
name = "skynet-wiki";
src = self;
buildInputs = [
pkgs.python3Packages.mkdocs
pkgs.python3Packages.mkdocs-material
];
buildPhase = "mkdocs build";
installPhase = "mkdir -p $out; cp -R site/* $out;";
};
devShells.default = pkgs.mkShell {
name = "Skynet Wiki env";
packages = [
pkgs.python3Packages.mkdocs
pkgs.python3Packages.mkdocs-material
];
};
}
);
devShells.default = pkgs.mkShell {
name = "Skynet Wiki env";
packages = [
pkgs.python3Packages.mkdocs
pkgs.python3Packages.mkdocs-material
];
};
}
);
}