Files
clan-core/lib/modules/eval-docs.nix
Jörg Thalheim 8d4099d13d refactor: move docs transformOptions to clanLib to reduce rebuilds
- Add clanLib.docs.stripStorePathsFromDeclarations to deduplicate code
- Update all documentation generation to use the shared function
- This strips store paths from option declarations to prevent options.json
  from rebuilding when only store paths change but content remains the same
- Reduces unnecessary documentation rebuilds when making unrelated changes
2025-07-09 16:59:58 +02:00

23 lines
377 B
Nix

{
pkgs,
lib,
clan-core,
}:
let
eval = lib.evalModules {
modules = [
clan-core.modules.clan.default
];
};
evalDocs = pkgs.nixosOptionsDoc {
options = eval.options;
warningsAreErrors = false;
transformOptions = clan-core.clanLib.docs.stripStorePathsFromDeclarations;
};
in
{
inherit (evalDocs) optionsJSON optionsNix;
inherit eval;
}