docs: generate api docs

This commit is contained in:
Johannes Kirschbauer
2024-04-16 19:06:45 +02:00
parent da486ae9ec
commit 805fd18251
10 changed files with 308 additions and 166 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, module-docs, ... }:
pkgs.stdenv.mkDerivation {
name = "clan-documentation";
@@ -10,6 +10,11 @@ pkgs.stdenv.mkDerivation {
mkdocs
mkdocs-material
]);
configurePhase = ''
mkdir -p ./site/reference
cp -af ${module-docs}/* ./site/reference/
'';
buildPhase = ''
mkdocs build --strict