From 26b202828f5227b1d06f6cc7ba723011679ff69e Mon Sep 17 00:00:00 2001 From: wolbyte Date: Wed, 30 Aug 2023 17:03:14 +0330 Subject: [PATCH] docs: remove whitespaces from filepaths if any --- docs/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/default.nix b/docs/default.nix index 23dcb5d4..5ea1d832 100644 --- a/docs/default.nix +++ b/docs/default.nix @@ -74,7 +74,7 @@ with lib; let if isOpt then opts else filterAttrs (_: component: component.isOption && (isVisible component)) opts; - path = concatStringsSep "/" path; + path = removeWhitespace (concatStringsSep "/" path); }; components = @@ -147,7 +147,14 @@ with lib; let components = optionalAttrs (!isOpt) { ${name} = recursiveUpdate opts { - index.path = removeWhitespace (concatStringsSep "/" ((optional (group != "none") group) ++ [opts.index.path])); + index.path = + removeWhitespace + ( + concatStringsSep "/" + ( + (optional (group != "none") group) ++ [opts.index.path] + ) + ); hasComponents = true; }; };