feat: doc-maker.nix

This commit is contained in:
catvayor 2024-12-09 17:38:39 +01:00
parent 0b00cf91ff
commit 8f58ee21fe
Signed by: lbailly
GPG key ID: CE3E645251AC63F3

15
doc-maker.nix Normal file
View file

@ -0,0 +1,15 @@
{
lib,
runCommand,
nixosOptionsDoc,
...
}:
let
eval = lib.evalModules { modules = [ ./junos ./dgn-module.nix ]; };
optionsDoc = nixosOptionsDoc {
inherit (eval) options;
};
in
runCommand "options-doc.md" { } ''
cat ${optionsDoc.optionsCommonMark} >> $out
''