refactor(docs): allow excluded directories overriding
This commit is contained in:
parent
703ff26742
commit
645fa542ee
1 changed files with 5 additions and 6 deletions
|
|
@ -3,6 +3,11 @@
|
||||||
mdbook,
|
mdbook,
|
||||||
nixdoc,
|
nixdoc,
|
||||||
lib,
|
lib,
|
||||||
|
excluded ? [
|
||||||
|
".*flake\\.nix$"
|
||||||
|
|
||||||
|
"^docs/.*"
|
||||||
|
]
|
||||||
}:
|
}:
|
||||||
stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
name = "SkyOS-book";
|
name = "SkyOS-book";
|
||||||
|
|
@ -13,12 +18,6 @@ stdenvNoCC.mkDerivation {
|
||||||
];
|
];
|
||||||
patchPhase =
|
patchPhase =
|
||||||
let
|
let
|
||||||
excluded = [
|
|
||||||
".*flake\\.nix$"
|
|
||||||
|
|
||||||
"^docs/.*"
|
|
||||||
];
|
|
||||||
|
|
||||||
shouldExclude = relPath: lib.any (pattern: builtins.match pattern relPath != null) excluded;
|
shouldExclude = relPath: lib.any (pattern: builtins.match pattern relPath != null) excluded;
|
||||||
|
|
||||||
nixFiles =
|
nixFiles =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue