Warp docs in a mkdocs website

This commit is contained in:
clerie 2023-09-15 18:00:18 +02:00
parent cc43776e6d
commit da0df6bab4
10 changed files with 174 additions and 37 deletions

View file

@ -103,6 +103,26 @@
yate = pkgs.yate.overrideAttrs (old: {
configureFlags = [ "--with-libpq=${pkgs.postgresql.withPackages (ps: [ ])}" ];
});
docs = pkgs.stdenv.mkDerivation {
pname = "fieldpoc-docs";
version = "0.0.1";
src = ./.;
buildInputs = [
pkgs.python3.pkgs.mkdocs-material
];
buildPhase = ''
python3 -m mkdocs build
'';
installPhase = ''
mkdir -p $out
cp -r ./site/* $out/
'';
};
};
nixosModules = {