2024-04-16 17:06:45 +00:00
|
|
|
{ pkgs, module-docs, ... }:
|
2024-04-24 12:44:43 +00:00
|
|
|
let
|
|
|
|
uml-c4 = pkgs.python3Packages.plantuml-markdown.override { plantuml = pkgs.plantuml-c4; };
|
|
|
|
in
|
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 =
|
2024-04-24 12:44:43 +00:00
|
|
|
[
|
|
|
|
pkgs.python3
|
|
|
|
uml-c4
|
|
|
|
]
|
2024-04-12 13:22:20 +00:00
|
|
|
++ (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
|
|
|
'';
|
|
|
|
}
|