http/docs: remote with lib, remove md

This commit is contained in:
Peder Bergebakken Sundt 2024-10-04 03:17:33 +02:00
parent d1d06e192f
commit 307b1d26f3
1 changed files with 19 additions and 20 deletions

View File

@ -44,40 +44,39 @@ let
in in
{ {
options = with lib; { options = {
services.docs-to-host.enable = mkEnableOption (lib.mdDoc "docs-to-host"); services.docs-to-host.enable = lib.mkEnableOption "docs-to-host";
services.docs-to-host.pagefind = { services.docs-to-host.pagefind = {
enable = mkEnableOption (lib.mdDoc "pagefind default on index of docs"); enable = lib.mkEnableOption "pagefind default on index of docs";
package = mkPackageOptionMD pkgs.unstable "pagefind" { }; package = lib.mkPackageOption pkgs "pagefind" { };
}; };
services.docs-to-host.docs = mkOption { services.docs-to-host.docs = lib.mkOption {
type = types.listOf (types.submodule { type = lib.types.listOf (lib.types.submodule {
options = { options = {
dirname = mkOption { dirname = lib.mkOption {
type = types.str; type = lib.types.str;
example = "linux-doc"; 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 { basename = lib.mkOption {
type = types.str; type = lib.types.str;
example = "foobar.html"; example = "foobar.html";
default = ""; 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 { path = lib.mkOption {
type = types.path; type = lib.types.path;
example = lib.literalExpression "pkgs.fetchzip {...}"; example = lib.literalExpression "pkgs.fetchzip {...}";
description = lib.mdDoc "The static html documentation to host"; description = "The static html documentation to host";
}; };
desc = mkOption { desc = lib.mkOption {
type = types.str; type = lib.types.str;
#description = "A short decription about the hosted documentation in markdown."; description = "A short decription about the hosted documentation";
description = "A short decription about the hosted documentation.";
}; };
}; };
}); });
default = [ ]; default = [ ];
#description = lib.mdDoc ''TODO''; #description = ''TODO'';
}; };
}; };