Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixos/wpa_supplicant: use literalExample
For various reasons, big Nix attrsets look ugly in the generated manual page[1]. Use literalExample to fix it. [1] Quotes around attribute names are lost, newlines inside multi-line strings are shown as '\n' and attrs written on multiple lines are joined into one.
- Loading branch information
6b7a937
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@edolstra, @nbp: Would it make sense / be possible to pretty print Nix attrsets differently in the manual? It seems a bit pointless to make fixes like I just did here :-)
6b7a937
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bjornfor Have a look at https://github.com/NixOS/nixos-homepage/blob/4f601ba09e5f229529e6b1c5a570d53528c761f4/nixos/options.tt#L147
If I recall correctly I wrote this code during the 2nd Lubljana meetup:
https://github.com/qknight/nixos-search-options/blame/master/index.html#L170
So I guess I might be the right person to ask for review too.