2024-04-16 17:06:45 +00:00
|
|
|
{ pkgs, module-docs, ... }:
|
2024-04-12 13:22:20 +00:00
|
|
|
pkgs.stdenv.mkDerivation {
|
|
|
|
name = "clan-documentation";
|
|
|
|
|
2024-04-13 12:42:37 +00:00
|
|
|
src = ../.;
|
2024-04-12 13:22:20 +00:00
|
|
|
|
|
|
|
nativeBuildInputs =
|
|
|
|
[ pkgs.python3 ]
|
|
|
|
++ (with pkgs.python3Packages; [
|
|
|
|
mkdocs
|
|
|
|
mkdocs-material
|
|
|
|
]);
|
2024-04-16 17:06:45 +00:00
|
|
|
configurePhase = ''
|
|
|
|
mkdir -p ./site/reference
|
|
|
|
cp -af ${module-docs}/* ./site/reference/
|
|
|
|
|
|
|
|
'';
|
2024-04-12 13:22:20 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
mkdocs build --strict
|
|
|
|
ls -la .
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2024-04-13 17:39:11 +00:00
|
|
|
cp -a out/ $out/
|
2024-04-12 13:22:20 +00:00
|
|
|
'';
|
|
|
|
}
|