From 69b0c363819a1f258b11c939497baef250313b1f Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Tue, 16 Sep 2025 15:46:11 +0200 Subject: [PATCH] docs: use `manifest.readme` instead of path manipulation --- docs/nix/options/flake-module.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/nix/options/flake-module.nix b/docs/nix/options/flake-module.nix index bcedec830..d78a971ab 100644 --- a/docs/nix/options/flake-module.nix +++ b/docs/nix/options/flake-module.nix @@ -40,8 +40,6 @@ prefix = [ ]; }).config.manifest; - loadFile = file: if builtins.pathExists file then builtins.readFile file else ""; - settingsModules = module: mapAttrs (_roleName: roleConfig: roleConfig.interface) (getRoles module); # Map each letter to its capitalized version @@ -97,7 +95,7 @@ **${manifest.description}** - ${loadFile (module._file + "/../README.md")} + ${lib.optionalString (manifest ? readme) manifest.readme} ${ if manifest.categories != [ ] then