feat: nix: docs: improve NixOS docs generations
This commit is contained in:
parent
9192013bfe
commit
c98dc5ed1d
3 changed files with 233 additions and 696 deletions
|
|
@ -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
|
||||
''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue