From 645fa542ee26c8e0151a8ceaa81b196ceff5eaa9 Mon Sep 17 00:00:00 2001 From: Sk7Str1p3 Date: Sun, 26 Jul 2026 18:31:29 +0000 Subject: [PATCH] refactor(docs): allow excluded directories overriding --- docs/docgen.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/docgen.nix b/docs/docgen.nix index 227bd56..9838327 100644 --- a/docs/docgen.nix +++ b/docs/docgen.nix @@ -3,6 +3,11 @@ mdbook, nixdoc, lib, + excluded ? [ + ".*flake\\.nix$" + + "^docs/.*" + ] }: stdenvNoCC.mkDerivation { name = "SkyOS-book"; @@ -13,12 +18,6 @@ stdenvNoCC.mkDerivation { ]; patchPhase = let - excluded = [ - ".*flake\\.nix$" - - "^docs/.*" - ]; - shouldExclude = relPath: lib.any (pattern: builtins.match pattern relPath != null) excluded; nixFiles =