#21 Use mkdocs for wiki #22

Merged
silver merged 7 commits from esy/wiki:main into main 2024-08-19 22:08:48 +00:00
Showing only changes of commit 44f813ce15 - Show all commits

View file

@ -3,25 +3,28 @@
inputs = {
utils.url = "github:numtide/flake-utils";
bfom.url = "gitlab:silver_rust/bfom";
};
outputs = { self, nixpkgs, utils, bfom }: utils.lib.eachDefaultSystem (system:
outputs = { self, nixpkgs, utils, }: utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages."${system}";
in rec {
# `nix build`
in {
defaultPackage = pkgs.stdenv.mkDerivation {
name = "skynet-website-renew";
name = "skynet-wiki";
src = self;
buildPhase = "${bfom.defaultPackage."${system}"}/bin/cargo-bfom";
installPhase = "mkdir -p $out; cp -R build/* $out";
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 = [
bfom.defaultPackage."${system}"
pkgs.python3Packages.mkdocs
pkgs.python3Packages.mkdocs-material
];
};
}