From d1095bd85514a93e44f6f9a2c9b2c9127ad1c1f9 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 29 May 2022 18:30:11 +0200 Subject: [PATCH] Add hercules-ci-effects doc --- dev/flake.lock | 6 +++--- site/flake-module.nix | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/dev/flake.lock b/dev/flake.lock index d95d808..c3d7fa4 100644 --- a/dev/flake.lock +++ b/dev/flake.lock @@ -20,11 +20,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1653740649, - "narHash": "sha256-3kZc+D03J+Uleftpdv5BuBogwkc45zvhDte/AI0BvaI=", + "lastModified": 1653841712, + "narHash": "sha256-XBF4i1MuIRAEbFpj3Z3fVaYxzNEsYapyENtw3vG+q1I=", "owner": "hercules-ci", "repo": "hercules-ci-effects", - "rev": "6d99ef9727b1327ec7eb6fa2055b74bd88ea4709", + "rev": "e14d2131b7c81acca3904b584ac45fb72da64dd2", "type": "github" }, "original": { diff --git a/site/flake-module.nix b/site/flake-module.nix index 26ace5f..38312f0 100644 --- a/site/flake-module.nix +++ b/site/flake-module.nix @@ -7,6 +7,7 @@ eval = libNix.evalFlakeModule { self = { inputs = { inherit (inputs) nixpkgs; }; }; } { imports = [ inputs.pre-commit-hooks-nix.flakeModule + inputs.hercules-ci-effects.flakeModule ]; }; opts = eval.options; @@ -72,6 +73,13 @@ baseUrl = "https://github.com/hercules-ci/pre-commit-hooks.nix/blob/flakeModule"; sourcePath = inputs.pre-commit-hooks-nix; }; + # TODO make this a dynamic input + hercules_ci_effectsOptions = optionsDoc { + title = "hercules-ci-effects"; + sourceName = "hercules-ci-effects"; + baseUrl = "https://github.com/hercules-ci/hercules-ci-effects/blob/master"; + sourcePath = inputs.hercules-ci-effects; + }; # pandoc htmlBefore = '' @@ -95,6 +103,7 @@ buildPhase = '' ( echo "$htmlBefore"; pandoc --verbose --from docbook --to html5 $coreOptions; + pandoc --verbose --from docbook --to html5 $hercules_ci_effectsOptions; pandoc --verbose --from docbook --to html5 $pre_commit_hooks_nixOptions; echo "$htmlAfter"; ) >options.html '';