Docs/frontmatter: init automatic reference for frontmatter

This commit is contained in:
Johannes Kirschbauer
2024-11-19 10:35:13 +01:00
parent 2ac2cc2aff
commit cfe9dbf117
8 changed files with 123 additions and 77 deletions

View File

@@ -20,17 +20,16 @@ let
];
};
frontmatterDocsOptions =
lib.optionAttrSetToDocList
(lib.evalModules {
specialArgs = {
moduleName = "{moduleName}";
allRoles = [ "{roleName}" ];
};
modules = [
./interface.nix
];
}).options;
frontmatterOptions =
(lib.evalModules {
specialArgs = {
moduleName = "{moduleName}";
allRoles = [ "{roleName}" ];
};
modules = [
./interface.nix
];
}).options;
getRoles =
serviceName:
@@ -91,7 +90,7 @@ in
{
inherit
evalFrontmatter
frontmatterDocsOptions
frontmatterOptions
getFrontmatter
getReadme