forked from mirrors/nixpkgs
lib/options: remove literalDocBook
no longer supported. warning when used would not be appropriate, and docbook has been on the way out for long enough that throwing an error should not be necessary either.
This commit is contained in:
parent
0997ae1903
commit
7542a1aa8f
|
@ -138,7 +138,7 @@ let
|
||||||
mergeDefaultOption mergeOneOption mergeEqualOption mergeUniqueOption
|
mergeDefaultOption mergeOneOption mergeEqualOption mergeUniqueOption
|
||||||
getValues getFiles
|
getValues getFiles
|
||||||
optionAttrSetToDocList optionAttrSetToDocList'
|
optionAttrSetToDocList optionAttrSetToDocList'
|
||||||
scrubOptionValue literalExpression literalExample literalDocBook
|
scrubOptionValue literalExpression literalExample
|
||||||
showOption showOptionWithDefLocs showFiles
|
showOption showOptionWithDefLocs showFiles
|
||||||
unknownModule mkOption mkPackageOption mkPackageOptionMD
|
unknownModule mkOption mkPackageOption mkPackageOptionMD
|
||||||
mdDoc literalMD;
|
mdDoc literalMD;
|
||||||
|
|
|
@ -344,19 +344,7 @@ rec {
|
||||||
if ! isString text then throw "literalExpression expects a string."
|
if ! isString text then throw "literalExpression expects a string."
|
||||||
else { _type = "literalExpression"; inherit text; };
|
else { _type = "literalExpression"; inherit text; };
|
||||||
|
|
||||||
literalExample = lib.warn "literalExample is deprecated, use literalExpression instead, or use literalDocBook for a non-Nix description." literalExpression;
|
literalExample = lib.warn "literalExample is deprecated, use literalExpression instead, or use literalMD for a non-Nix description." literalExpression;
|
||||||
|
|
||||||
|
|
||||||
/* For use in the `defaultText` and `example` option attributes. Causes the
|
|
||||||
given DocBook text to be inserted verbatim in the documentation, for when
|
|
||||||
a `literalExpression` would be too hard to read.
|
|
||||||
*/
|
|
||||||
literalDocBook = text:
|
|
||||||
if ! isString text then throw "literalDocBook expects a string."
|
|
||||||
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
|
/* Transition marker for documentation that's already migrated to markdown
|
||||||
syntax.
|
syntax.
|
||||||
|
|
Loading…
Reference in a new issue