Skip to content

Commit

Permalink
maint: Don't use literalDocBook
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Jun 19, 2023
1 parent 39f2e2c commit a63f715
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ in
Nixpkgs to use in the pre-commit [`settings`](#opt-perSystem.pre-commit.settings).
'';
default = pkgs;
defaultText = lib.literalDocBook "<literal>pkgs</literal> (module argument)";
defaultText = lib.literalMD "`pkgs` (module argument)";
};
settings = mkOption {
type = types.submoduleWith {
Expand All @@ -52,7 +52,7 @@ in
type = types.str;
description = lib.mdDoc "A bash fragment that sets up [pre-commit](https://pre-commit.com/).";
default = cfg.settings.installationScript;
defaultText = lib.literalDocBook "bash statements";
defaultText = lib.literalMD "bash statements";
readOnly = true;
};
devShell = mkOption {
Expand Down
2 changes: 1 addition & 1 deletion modules/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ let
mkOption {
type = types.str;
default = name;
defaultText = lib.literalDocBook or literalExample "internal name, same as id";
defaultText = lib.literalMD "internal name, same as `id`";
description = lib.mdDoc
''
The name of the hook - shown during hook execution.
Expand Down

0 comments on commit a63f715

Please sign in to comment.