cli-docs: add automatic markdown cli docs

This commit is contained in:
Johannes Kirschbauer
2024-05-07 13:23:03 +02:00
parent 7c1852507e
commit d7f3b6a1e0
7 changed files with 173 additions and 35 deletions

View File

@@ -1,4 +1,9 @@
{ pkgs, module-docs, ... }:
{
pkgs,
module-docs,
clan-cli-docs,
...
}:
let
uml-c4 = pkgs.python3Packages.plantuml-markdown.override { plantuml = pkgs.plantuml-c4; };
in
@@ -17,9 +22,9 @@ pkgs.stdenv.mkDerivation {
mkdocs-material
]);
configurePhase = ''
mkdir -p ./site/reference
mkdir -p ./site/reference/cli
cp -af ${module-docs}/* ./site/reference/
cp -af ${clan-cli-docs}/* ./site/reference/cli/
'';
buildPhase = ''