We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Declared in
1 parent ce4ba80 commit 4dc96b6Copy full SHA for 4dc96b6
docs/docs.nix
@@ -64,6 +64,7 @@ with lib; let
64
];
65
codeBlock = code: "```\n${code}\n```";
66
fieldName = name: "<div class=\"fieldname\">${name}</div>\n";
67
+ modulePath = path: head (strings.match "/nix/store/[^/]+/(.*)" path);
68
renderOptionDoc = name: option: ''
69
### ${escapeXML name}
70
@@ -90,6 +91,14 @@ with lib; let
90
91
${renderCode option.example}
92
''}
93
94
+
95
+ ${fieldName "Declared in"}
96
+ ${flip concatMapStrings option.declarations (x: ''
97
98
+ <a href="https://github.com/${owner}/${repo}/blob/main/${modulePath x}" target="_blank">${modulePath x}</a>
99
100
+ '')}
101
102
</div>
103
'';
104
in (mapAttrs renderOptionDoc optionsDocParsed);
0 commit comments