summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/options.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/options.nix b/lib/options.nix
index a56e579ab84d..dea85f0db04c 100644
--- a/lib/options.nix
+++ b/lib/options.nix
@@ -284,7 +284,10 @@ rec {
*/
literalDocBook = text:
if ! isString text then throw "literalDocBook expects a string."
- else { _type = "literalDocBook"; inherit text; };
+ else
+ lib.warnIf (lib.isInOldestRelease 2211)
+ "literalDocBook is deprecated, use literalMD instead"
+ { _type = "literalDocBook"; inherit text; };
/* Transition marker for documentation that's already migrated to markdown
syntax.