From 321fe5ee4caa62731b4a040bbc8f892e7143f4a7 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 7 Sep 2024 22:06:16 +0800 Subject: [PATCH] wrapper-manager-fds/docs: update website build step --- docs/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/default.nix b/docs/default.nix index 55d16fe..13266f5 100644 --- a/docs/default.nix +++ b/docs/default.nix @@ -66,6 +66,8 @@ let modules = [ ../modules/wrapper-manager ] ++ extraModules; includeModuleSystemOptions = true; }; + wmNixosDoc = evalDoc { modules = [ ../modules/env/nixos ]; }; + wmHmDoc = evalDoc { modules = [ ../modules/env/home-manager ]; }; gems = pkgs.bundlerEnv { name = "wrapper-manager-fds-gem-env"; @@ -134,6 +136,12 @@ in gems.wrappedRuby ]; + preBuild = '' + install -Dm0644 ${wmOptionsDoc.optionsAsciiDoc} ./content/en/wrapper-manager-env-options.adoc + install -Dm0644 ${wmNixosDoc.optionsAsciiDoc} ./content/en/wrapper-manager-nixos-module.adoc + install -Dm0644 ${wmHmDoc.optionsAsciiDoc} ./content/en/wrapper-manager-home-manager-module.adoc + ''; + meta = with lib; { description = "wrapper-manager-fds documentation"; homepage = "https://github.com/foo-dogsquared/wrapper-manager-fds"; @@ -145,9 +153,7 @@ in }; }; - inherit wmOptionsDoc; - wmNixosDoc = evalDoc { modules = [ ../modules/env/nixos ]; }; - wmHmDoc = evalDoc { modules = [ ../modules/env/home-manager ]; }; + inherit wmOptionsDoc wmHmDoc wmNixosDoc; inherit releaseConfig; outputs = {