nixpkgs/nixos/lib/make-options-doc
Naïm Favier 6a117e2759 nixos/doc: render option values using lib.generators.toPretty
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`.
2022-12-08 17:52:52 +01:00
..
default.nix nixos/doc: render option values using lib.generators.toPretty 2022-12-08 17:52:52 +01:00
generateDoc.py nixos/make-options-doc: improve CommonMark formatting 2022-12-07 14:39:26 +00:00
mergeJSON.py nixosOptionsDoc: Report in which option an error occurs 2022-11-11 06:47:30 +01:00
options-to-docbook.xsl Merge pull request #194035 from Ma27/show-option-quoting 2022-10-18 11:31:54 +02:00
optionsJSONtoXML.nix
postprocess-option-descriptions.xsl
sortXML.py