diff --git a/doc-maker.nix b/doc-maker.nix new file mode 100644 index 0000000..b72d184 --- /dev/null +++ b/doc-maker.nix @@ -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 +''