diff --git a/profiles/http/docs/default.nix b/profiles/http/docs/default.nix index 65b57cb..e1c910c 100644 --- a/profiles/http/docs/default.nix +++ b/profiles/http/docs/default.nix @@ -44,40 +44,39 @@ let in { - options = with lib; { - services.docs-to-host.enable = mkEnableOption (lib.mdDoc "docs-to-host"); + options = { + services.docs-to-host.enable = lib.mkEnableOption "docs-to-host"; services.docs-to-host.pagefind = { - enable = mkEnableOption (lib.mdDoc "pagefind default on index of docs"); - package = mkPackageOptionMD pkgs.unstable "pagefind" { }; + enable = lib.mkEnableOption "pagefind default on index of docs"; + package = lib.mkPackageOption pkgs "pagefind" { }; }; - services.docs-to-host.docs = mkOption { - type = types.listOf (types.submodule { + services.docs-to-host.docs = lib.mkOption { + type = lib.types.listOf (lib.types.submodule { options = { - dirname = mkOption { - type = types.str; + dirname = lib.mkOption { + type = lib.types.str; example = "linux-doc"; - description = lib.mdDoc "The relative dirname at which the documentation will be linked"; + description = "The relative dirname at which the documentation will be linked"; }; - basename = mkOption { - type = types.str; + basename = lib.mkOption { + type = lib.types.str; example = "foobar.html"; default = ""; - description = lib.mdDoc "The basename to which the documentation entry will be linked. Not needed if index.html exists."; + description = "The basename to which the documentation entry will be linked. Not needed if index.html exists"; }; - path = mkOption { - type = types.path; + path = lib.mkOption { + type = lib.types.path; example = lib.literalExpression "pkgs.fetchzip {...}"; - description = lib.mdDoc "The static html documentation to host"; + description = "The static html documentation to host"; }; - desc = mkOption { - type = types.str; - #description = "A short decription about the hosted documentation in markdown."; - description = "A short decription about the hosted documentation."; + desc = lib.mkOption { + type = lib.types.str; + description = "A short decription about the hosted documentation"; }; }; }); default = [ ]; - #description = lib.mdDoc ''TODO''; + #description = ''TODO''; }; };