lib: remove all uses of lib.mdDoc

this change is otherwise a no-op, as lib.mdDoc is already defined to be
the identity function.
This commit is contained in:
stuebinm 2024-04-13 15:03:46 +02:00 committed by Jonathan Ringer
parent 170e005a92
commit 46456a929b
2 changed files with 5 additions and 5 deletions

View File

@ -146,7 +146,7 @@ let
scrubOptionValue literalExpression literalExample scrubOptionValue literalExpression literalExample
showOption showOptionWithDefLocs showFiles showOption showOptionWithDefLocs showFiles
unknownModule mkOption mkPackageOption mkPackageOptionMD unknownModule mkOption mkPackageOption mkPackageOptionMD
mdDoc literalMD; literalMD;
inherit (self.types) isType setType defaultTypeMerge defaultFunctor inherit (self.types) isType setType defaultTypeMerge defaultFunctor
isOptionType mkOptionType; isOptionType mkOptionType;
inherit (self.asserts) inherit (self.asserts)

View File

@ -136,7 +136,7 @@ let
# TODO: Change the type of this option to a submodule with a # TODO: Change the type of this option to a submodule with a
# freeformType, so that individual arguments can be documented # freeformType, so that individual arguments can be documented
# separately # separately
description = lib.mdDoc '' description = ''
Additional arguments passed to each module in addition to ones Additional arguments passed to each module in addition to ones
like `lib`, `config`, like `lib`, `config`,
and `pkgs`, `modulesPath`. and `pkgs`, `modulesPath`.
@ -187,14 +187,14 @@ let
type = types.bool; type = types.bool;
internal = true; internal = true;
default = true; default = true;
description = lib.mdDoc "Whether to check whether all option definitions have matching declarations."; description = "Whether to check whether all option definitions have matching declarations.";
}; };
_module.freeformType = mkOption { _module.freeformType = mkOption {
type = types.nullOr types.optionType; type = types.nullOr types.optionType;
internal = true; internal = true;
default = null; default = null;
description = lib.mdDoc '' description = ''
If set, merge all definitions that don't have an associated option If set, merge all definitions that don't have an associated option
together using this type. The result then gets combined with the together using this type. The result then gets combined with the
values of all declared options to produce the final ` values of all declared options to produce the final `
@ -209,7 +209,7 @@ let
_module.specialArgs = mkOption { _module.specialArgs = mkOption {
readOnly = true; readOnly = true;
internal = true; internal = true;
description = lib.mdDoc '' description = ''
Externally provided module arguments that can't be modified from Externally provided module arguments that can't be modified from
within a configuration, but can be used in module imports. within a configuration, but can be used in module imports.
''; '';