mirror of
https://github.com/foo-dogsquared/nix-module-wrapper-manager-fds.git
synced 2025-01-31 04:58:17 +00:00
wrapper-manager-fds/docs: update Nix module options data generation
This commit is contained in:
parent
1631a81f71
commit
699c547947
2
docs/.gitignore
vendored
2
docs/.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
# All of the generated assets.
|
||||
/content/*/nix-module-options/*/content.json
|
||||
|
||||
### Hugo ###
|
||||
# Generated files by hugo
|
||||
|
@ -41,7 +41,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
patchPhase = ''
|
||||
runHook prePatch
|
||||
cp "${optionsDoc.optionsJSON}" > "${finalAttrs.src}/content/"
|
||||
install -Dm0644 "${optionsDoc.optionsJSON}/share/doc/nixos/options.json" "${finalAttrs.src}/content/en-US/nix-module-options/module-environment/content.json"
|
||||
runHook postPatch
|
||||
'';
|
||||
|
||||
|
@ -4,7 +4,12 @@ in
|
||||
{ pkgs ? import sources.nixos-unstable { } }:
|
||||
|
||||
let
|
||||
inherit (pkgs) nixosOptionsDoc;
|
||||
websitePkg = import ./. { inherit pkgs; };
|
||||
wrapperManagerLib = import ../lib/env.nix;
|
||||
|
||||
wrapperManagerEval = wrapperManagerLib.eval { inherit pkgs; };
|
||||
optionsDoc = nixosOptionsDoc { inherit (wrapperManagerEval) options; };
|
||||
in
|
||||
with pkgs; mkShell {
|
||||
inputsFrom = [ websitePkg ];
|
||||
@ -13,4 +18,8 @@ with pkgs; mkShell {
|
||||
nodePackages.prettier
|
||||
vscode-langservers-extracted
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
install -Dm0644 ${optionsDoc.optionsJSON}/share/doc/nixos/options.json ./content/en-US/nix-module-options/module-environment/content.json
|
||||
'';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user