http/docs: remote with lib, remove md
This commit is contained in:
parent
d1d06e192f
commit
307b1d26f3
|
@ -44,40 +44,39 @@ let
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
options = with lib; {
|
|
||||||
services.docs-to-host.enable = mkEnableOption (lib.mdDoc "docs-to-host");
|
|
||||||
services.docs-to-host.pagefind = {
|
|
||||||
enable = mkEnableOption (lib.mdDoc "pagefind default on index of docs");
|
|
||||||
package = mkPackageOptionMD pkgs.unstable "pagefind" { };
|
|
||||||
};
|
|
||||||
services.docs-to-host.docs = mkOption {
|
|
||||||
type = types.listOf (types.submodule {
|
|
||||||
options = {
|
options = {
|
||||||
dirname = mkOption {
|
services.docs-to-host.enable = lib.mkEnableOption "docs-to-host";
|
||||||
type = types.str;
|
services.docs-to-host.pagefind = {
|
||||||
example = "linux-doc";
|
enable = lib.mkEnableOption "pagefind default on index of docs";
|
||||||
description = lib.mdDoc "The relative dirname at which the documentation will be linked";
|
package = lib.mkPackageOption pkgs "pagefind" { };
|
||||||
};
|
};
|
||||||
basename = mkOption {
|
services.docs-to-host.docs = lib.mkOption {
|
||||||
type = types.str;
|
type = lib.types.listOf (lib.types.submodule {
|
||||||
|
options = {
|
||||||
|
dirname = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
example = "linux-doc";
|
||||||
|
description = "The relative dirname at which the documentation will be linked";
|
||||||
|
};
|
||||||
|
basename = lib.mkOption {
|
||||||
|
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'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue