aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/generate-xp-features.nix
blob: db1ba60926e6ed692827f3644d753ff4506be0b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
with builtins;
with import ./utils.nix;

let
  showExperimentalFeature = name: doc:
    squash ''
      - <span id="xp-feature-${name}">[`${name}`](#xp-feature-${name})</span>

      ${indent "  " doc}
    '';
in xps: indent "  " (concatStringsSep "\n" (attrValues (mapAttrs showExperimentalFeature xps)))