feat: doc-maker.nix
This commit is contained in:
parent
0b00cf91ff
commit
8f58ee21fe
1 changed files with 15 additions and 0 deletions
15
doc-maker.nix
Normal file
15
doc-maker.nix
Normal 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
|
||||
''
|
Loading…
Reference in a new issue