11.stylix/doc
Daniel Thwaites d73d8f6a48
treewide: use mkEnableTargetWith for dynamic autoEnable conditions (#1244)
Use the new `mkEnableTargetWith` function for dynamic `autoEnable`
conditions to prevent the evaluation of dynamic conditions during
documentation rendering.

The "same as `stylix.autoEnable`" `defaultText` is replaced with
`stylix.autoEnable` or `stylix.autoEnable && ${autoEnableExpr}`,
depending on whether `autoEnableExpr` is provided. For readability,
`autoEnable` expressions containing Nix operators of lower precedence
than `&&` are automatically wrapped in parentheses, unless
`autoWrapExpr` is disabled.

Closes: https://github.com/nix-community/stylix/issues/98
Link: https://github.com/nix-community/stylix/pull/1244

Reviewed-by: awwpotato <awwpotato@voidq.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
2025-06-09 16:11:02 +01:00
..
src stylix: allow specifying autoEnableExpr in mkEnableTargetWith 2025-06-04 15:48:13 +01:00
book.toml doc: enable hash-files 2025-05-27 11:05:00 -07:00
default.nix stylix: drop unnecessary use of self in meta.nix 2025-05-28 19:32:15 +01:00
redirects.js doc: add redirect for 'Standalone Nixvim' 2025-05-27 11:05:00 -07:00
server.nix flake: rename packages.«system».docspackages.«system».doc 2025-06-04 16:10:53 +01:00
settings.nix doc: move to doc directory (#1272) 2025-05-20 10:26:52 +01:00