From 6b5d0b988d23550e6e48d785934b4e28cfc8b2a4 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 4 Mar 2019 00:37:49 +0100 Subject: [PATCH] doc/manual: Hide internals by default --- doc/manual/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/manual/default.nix b/doc/manual/default.nix index afecf52..0e7fcba 100644 --- a/doc/manual/default.nix +++ b/doc/manual/default.nix @@ -34,9 +34,6 @@ let ''; }; -in - -recurseIntoAttrs rec { compositionOptions = options { moduleType = "composition"; description = "List of Arion composition-level options in JSON format"; @@ -52,6 +49,7 @@ recurseIntoAttrs rec { in map fixPaths (lib.filter (opt: opt.visible && !opt.internal) (lib.optionAttrSetToDocList composition.options)) ''; }; + serviceOptions = options { moduleType = "service"; description = "List of Arion service-level options in JSON format"; @@ -67,11 +65,13 @@ recurseIntoAttrs rec { in map fixPaths (lib.filter (opt: opt.visible && !opt.internal) (lib.optionAttrSetToDocList composition.options)) ''; }; + generatedDocBook = runCommand "generated-docbook" {} '' mkdir $out ln -s ${compositionOptions.optionsDocBook} $out/options-composition.xml ln -s ${serviceOptions.optionsDocBook} $out/options-service.xml ''; + manual = stdenv.mkDerivation { src = lib.sourceByRegex ./. [ "Makefile$" @@ -116,5 +116,9 @@ recurseIntoAttrs rec { done } ''; + passthru = { + inherit generatedDocBook; + }; }; -} +in + manual