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.
1 parent 1952850 commit 9caeb51Copy full SHA for 9caeb51
docs/mdbook/default.nix
@@ -24,7 +24,19 @@ let
24
25
removeUnwanted =
26
attrs:
27
- builtins.removeAttrs attrs [
+ # FIXME: We incorrectly remove _freeformOptions here.
28
+ #
29
+ # However we can't fix the bug because we derive page names from attrnames;
30
+ # the correct behaviour would be to ignore attrnames and use option locs.
31
32
+ # As a workaround, merge the freeform options at the top of these attrs,
33
+ # however this can run into name conflicts 😢
34
35
+ # We should move this workaround to where we decide the page name and
36
+ # whether to nest into a sub-page, so that we can keep the original
37
+ # _freeformOptions attr as intended.
38
+ attrs._freeformOptions or { }
39
+ // builtins.removeAttrs attrs [
40
"_module"
41
"_freeformOptions"
42
"warnings"
0 commit comments