docs: self host documentation with mkDocs

This commit is contained in:
Johannes Kirschbauer
2024-04-12 15:22:20 +02:00
parent 2bfccbf948
commit a7e8500d99
18 changed files with 142 additions and 31 deletions

26
docs/default.nix Normal file
View File

@@ -0,0 +1,26 @@
{ pkgs, ... }:
pkgs.stdenv.mkDerivation {
name = "clan-documentation";
src = ./.;
nativeBuildInputs =
[ pkgs.python3 ]
++ (with pkgs.python3Packages; [
mkdocs
mkdocs-material
mkdocs-drawio-exporter
mkdocs-swagger-ui-tag
plantuml-markdown
]);
buildPhase = ''
mkdocs build --strict
ls -la .
'';
installPhase = ''
cp -a site/ $out/
'';
}