Skip to content

Commit 6e5c68b

Browse files
MattSturgeonfricklerhandwerk
authored andcommitted
treefmt: improve how doc-comments render in the manual
1. Use internal links for other manual sections 2. Fix definition-list syntax Currently, `:doc` doesn't support rendering clickable links anyway, so we don't loose much by having relative links.
1 parent 4c638c2 commit 6e5c68b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

pkgs/by-name/tr/treefmt/lib.nix

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
1616
# Inputs
1717
18-
: A treefmt module. See [options reference].
19-
20-
[options reference]: https://nixos.org/manual/nixpkgs/unstable#sec-treefmt-options-reference
18+
`module`
19+
: A treefmt module. See [options reference](#sec-treefmt-options-reference).
2120
*/
2221
evalConfig =
2322
module:
@@ -49,9 +48,8 @@
4948
5049
# Inputs
5150
52-
: A treefmt module. See [options reference].
53-
54-
[options reference]: https://nixos.org/manual/nixpkgs/unstable#sec-treefmt-options-reference
51+
`module`
52+
: A treefmt module. See [options reference](#sec-treefmt-options-reference).
5553
*/
5654
withConfig =
5755
module:
@@ -75,7 +73,8 @@
7573
# Inputs
7674
7775
`settings`
78-
: A settings module, used to build a treefmt config file
76+
: A settings module, used to build a treefmt config file.
77+
See [`settings` option reference](#opt-treefmt-settings).
7978
*/
8079
buildConfig =
8180
module:

0 commit comments

Comments
 (0)