mirror of
https://github.com/tale/headplane.git
synced 2026-08-27 15:37:04 +00:00
feat: nix: docs: improve NixOS docs generations
This commit is contained in:
committed by
Aarnav Tale
parent
9192013bfe
commit
c98dc5ed1d
+4
-1
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
nixosOptionsDoc,
|
||||
runCommand,
|
||||
nodejs,
|
||||
...
|
||||
}: let
|
||||
eval = lib.evalModules {
|
||||
@@ -21,4 +22,6 @@
|
||||
inherit transformOptions;
|
||||
};
|
||||
in
|
||||
runCommand "headplane-nixos-docs.md" {} "cat ${optionsDoc.optionsCommonMark} > $out"
|
||||
runCommand "headplane-nixos-docs.json" {} ''
|
||||
${nodejs}/bin/node ${./docs.js} ${optionsDoc.optionsJSON}/share/doc/nixos/options.json > $out
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user