From 8f58ee21fe9c0ad22e3f16e58c3837c1c97eb5e8 Mon Sep 17 00:00:00 2001 From: catvayor Date: Mon, 9 Dec 2024 17:38:39 +0100 Subject: [PATCH] feat: doc-maker.nix --- doc-maker.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc-maker.nix 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 +''