6a117e2759
Render un`_type`d defaults and examples as `literalExpression`s using `lib.generators.toPretty` so that consumers don't have to reinvent Nix pretty-printing. `renderOptionValue` is kept internal for now intentionally. Make `toPretty` print floats as valid Nix values (without a tilde). Get rid of the now-obsolete `substSpecial` function. Move towards disallowing evaluation of packages in the manual by raising a warning on `pkgs.foo.{outPath,drvPath}`; later, this should throw an error. Instead, module authors should use `literalExpression` and `mkPackageOption`. |
||
---|---|---|
.. | ||
default.nix | ||
generateDoc.py | ||
mergeJSON.py | ||
options-to-docbook.xsl | ||
optionsJSONtoXML.nix | ||
postprocess-option-descriptions.xsl | ||
sortXML.py |