nix-super/doc/manual
Andrew Marshall 51a12b38bd Fix stackoverflow during doc generation
On some systems, previous usage of `match` may cause a stackoverflow
(presumably due to the large size of the match result). Avoid this by
(ab)using `replaceStrings` to test for containment without using
regexes, thereby avoiding the issue. The causal configuration seems to
be the stack size hard limit, which e.g. Amazon Linux sets, whereas most
Linux distros leave unlimited.

Match the fn name to similar fn in nixpkgs.lib, but different
implementation that does not use `match`. This impl gives perhaps
unexpected results when the needle is `""`, but the scope of this is
narrow and that case is a bit odd anyway.

This makes for some duplication-of-work as we do a different
`replaceStrings` if this one is true, but this only runs during doc
generation at build time so has no runtime impact.

See https://github.com/NixOS/nix/issues/11085 for details.
2024-07-12 10:59:40 -04:00
..
rl-next nix-shell: look up shell.nix when argument is a directory (#11057) 2024-07-08 14:36:36 +02:00
src docs: merge builtin-constants into builtins 2024-07-07 15:57:23 -04:00
theme doc/manual: don't need to copy highlight.js manually 2021-08-04 19:47:05 -07:00
anchors.jq doc: Port anchors preprocessor to jq script 2022-05-26 18:17:21 +02:00
book.toml Revert "manual: fold sidebar sections" (#10698) 2024-05-14 19:23:29 +00:00
custom.css show Nix logo in the manual (#9870) 2024-04-03 14:22:47 +00:00
generate-builtins.nix docs: merge builtin-constants into builtins 2024-07-07 15:57:23 -04:00
generate-manpage.nix Fix stackoverflow during doc generation 2024-07-12 10:59:40 -04:00
generate-settings.nix document fetchTree (#9258) 2023-12-10 05:16:32 +00:00
generate-store-info.nix document fetchTree (#9258) 2023-12-10 05:16:32 +00:00
generate-store-types.nix Document each store type on its own page 2023-12-01 01:27:52 +01:00
generate-xp-features-shortlist.nix use lookup paths in helper expressions consistently 2023-11-30 21:53:31 +01:00
generate-xp-features.nix Document each store type on its own page 2023-12-01 01:27:52 +01:00
local.mk docs: merge builtin-constants into builtins 2024-07-07 15:57:23 -04:00
quote-literals.xsl Generate release notes again 2014-03-12 14:24:29 +01:00
redirects.js docs: split types from syntax (#11013) 2024-07-03 09:03:41 +02:00
utils.nix Document each store type on its own page 2023-12-01 01:27:52 +01:00